android - CodenameOne :"Path to javac not found" error -


i start working codenameone tool multiplatform mobile dev. when created "hello world" app , tried build .apk android file, received

 [echo]       error! path javac not found!   [echo]       make sure java_home enviroment variable pointing jdk   [echo]       or define javac path in build.xml manually! 

i added jre reference project, didn't solve issue. how can solve it?

codename 1 needs use actual javac compiler , not adt since of our server code has issues adt.

the jre doesn't contain javac, need install jdk (if don't have 1 already) make sure os defines java_home environment variable points @ root of jdk dir (not bin directory).

if doesn't work (you might need restart eclipse update environment within process), double click build.xml file , jdk. update path proper jdk path.


Comments