0
votes

I would like to edit this cn1lib.

Once I have cloned the project in Eclipse, how do I update the cn1lib file to use it in my own project ?

[EDIT]: I cloned CodenameOne project and tried to build it using the ant build.xml file but then i got the following errors:

[javac] Compiling 505 source files to path\workspace\CodenameOne\CodenameOne\build\classes [javac] Fatal Error: Unable to find package java.lang in classpath or bootclasspath

BUILD FAILED path\workspace\CodenameOne\CodenameOne\nbproject\build-impl.xml:938: The following error occurred while executing this line: path\workspace\CodenameOne\CodenameOne\nbproject\build-impl.xml:270: Compile failed; see the compiler error output for details.

I also get some package dependencies error when I try to build the cn1lib project.

What am I doing wrong ?

Cheers

1

1 Answers

1
votes

You need to edit this file, notice it includes many local paths which get automatically flagged in NetBeans if you open the project but Eclipse is oblivious to them.

E.g. /Volumes/Windows VMS/NetbeansProjects/CodenameOneJS/build/classes might be problematic but also lib/CLDC11.jar etc. would be a problem. You can just copy the lib directory from a regular Codename One project to fix the latter.