[josm-dev] javac: bootstrap class path not set
Dirk Brünig
dirk at bruenig.de
Wed Nov 13 23:21:05 UTC 2013
Hi
I get this solved.
I forgot to activate the jdk in each project.
But now I have another error.
If I now compile JOSM I get
javacc:
[exec] java.lang.NoClassDefFoundError: javacc
[exec] Caused by: java.lang.ClassNotFoundException: javacc
[exec] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[exec] at java.security.AccessController.doPrivileged(Native Method)
[exec] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[exec] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[exec] Could not find the main class: javacc. Program will exit.
[exec] Exception in thread "main"
[exec] Result: 1
compile:
create-revision:
[exec] Result: 1
[xmlproperty] [Fatal Error] REVISION.XML:1:1: Content is not allowed in
prolog.
BUILD FAILED
C:\Users\...\workspace\josm\build.xml:49: Failed to load
C:\Users\...\workspace\josm\REVISION.XML
Ant also shows an error in Line 339
taskdef class edu.umd.cs.findbugs.anttask.FindBugsTask cannot be found
using the classloader AntClassLoader[]
339 <taskdef name="findbugs"
classname="edu.umd.cs.findbugs.anttask.FindBugsTask"
classpath="tools/findbugs/findbugs-ant.jar"/>
So I can't compile JOSM.
To compile the plugin I download the josm-tested.jar.
While compile the plugin I get this
compile:
[echo] compiling sources for ../../dist/Tracer2.jar ...
[javac] Compiling 17 source files to
C:\Users\...\workspace\editors\josm\plugins\tracer2\build
[javac] warning: java\lang\Object.class(java\lang:Object.class):
major version 51 is newer than 50, the highest major version supported
by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning:
java\awt\geom\Point2D.class(java\awt\geom:Point2D.class): major version
51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: java\util\HashMap.class(java\util:HashMap.class):
major version 51 is newer than 50, the highest major version supported
by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning:
java\util\LinkedList.class(java\util:LinkedList.class): major version 51
is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: java\util\List.class(java\util:List.class): major
version 51 is newer than 50, the highest major version supported by this
compiler.
.
.
.
[javac] Note: Some input files additionally use unchecked or unsafe
operations.
[javac] 100 warnings
revision:
dist:
[echo] creating Tracer2.jar ...
setup-dist:
setup-dist-default:
[copy] Copying 1 file to
C:\Users\...\workspace\editors\josm\plugins\tracer2\build\resources
[copy] Copying 3 files to
C:\Users\...\workspace\editors\josm\plugins\tracer2\build\images
[copy] Copying 3 files to
C:\Users\...\workspace\editors\josm\plugins\tracer2\build
check-manifest-attribute:
add-manifest-attribute:
check-manifest-attribute:
add-manifest-attribute:
check-manifest-attribute:
add-manifest-attribute:
check-manifest-attribute:
add-manifest-attribute:
check-manifest-attribute:
add-manifest-attribute:
additional-manifest:
[jar] Building jar:
C:\Users\...\workspace\editors\josm\dist\Tracer2.jar
[delete] Deleting:
C:\Users\...\workspace\editors\josm\plugins\tracer2\MANIFEST
post-dist:
BUILD SUCCESSFUL
It looks like the JDK I have is newer the the compiler. I have installed
the actual sdk java_ee_sdk-6u4-jdk-windows.exe from oracle.
Is it save to use this jar file.
Can some one help me to solve this.
Regards Dirk
More information about the josm-dev
mailing list