wei-spring / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Build fails in Hello World demo project #1294

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After installing Eclipse, CN1, Java, etc. I started the Hello World 
project.Everything worked great until I tried to do a build for Android. At 
that point I got the following build error: 

BUILD FAILED
C:\Users\craig_000\workspace\HiWorld\build.xml:155: Class not found: javac1.8

I am running on Eclipse with the CN1 version I downloaded early last week. 
Here are the version numbers from Eclipse Help|About: 
CN1 Version = 1.0.0.201409151325    
eclipse.buildId = 4.3.2.M20140221-1700

I am running Windows 8.1. with Java JDK version 1.8.0.25
(note switched Java versions - see below)

----------------------------------------
Here is the full output from the build:

Buildfile: C:/Users/craig_000/workspace/HiWorld\build.xml

copy-android-override:

copy-libs:

testNoPath:

goBlankNoPath:

javacExe:

goExe:

javacBlank:

goBlank:

testFail:

setupJavac:

jar:
     [echo] Compile is forcing compliance to the supported API's/features for maximum device compatibility. This allows smaller
     [echo]             code size and wider device support
     [copy] Copying 1 file to C:\Users\craig_000\workspace\HiWorld\build\tmp
    [javac] C:\Users\craig_000\workspace\HiWorld\build.xml:131: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 3 source files to C:\Users\craig_000\workspace\HiWorld\build\tmp
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] 3 warnings
      [jar] Building jar: C:\Users\craig_000\workspace\HiWorld\dist\HiWorld.jar
    [javac] C:\Users\craig_000\workspace\HiWorld\build.xml:155: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

BUILD FAILED
C:\Users\craig_000\workspace\HiWorld\build.xml:155: Class not found: javac1.8

Total time: 2 seconds
----------------------------------------

Since I had seen on several forums that it might be a problem with JDK version 
1.8, I downloaded Java JDK version 1.7.0_71 
I changed the JAVA_HOME=C:\Program Files\Java\jdk1.7.0_71 and got the same 
results

I tried (I think) the solutions described in several of the forums, such as 
adjusting the Ant path, changing the JAVA_HOME variable, etc. I still get the 
identical error.

Attaching my eclipse settings.
Not sure what I'm doing wrong, but it seems like I'm missing something in my 
setup, or similar.

Thanks,
 -Craig Lang
  craig@craigrlang.com

Original issue reported on code.google.com by craigrl...@gmail.com on 18 Jan 2015 at 1:23

GoogleCodeExporter commented 9 years ago
You should ask questions in the discussion forum first. You need to use Java 7 
with Eclipse.

Original comment by shai.almog on 20 Jan 2015 at 5:31