Hi All,
I'm trying to get the example to run in JDK 6 and am having no luck. If I switch over to 5 I'm ok.
java: 1.6.0-b105
ant: 1.6.5
annogen: 0.1.0
stack:
/home/raymond/Desktop/annogen-
0.1.0/examples/stored_override/build.xml:43: org.codehaus.jam.internal.javadoc.JavadocClassloadingException: An error has occurred while invoking javadoc to inspect your source
files. This may be due to the fact that $JAVA_HOME/lib/tools.jar does
not seem to be in your system classloader. One common case in which
this happens is when using the 'ant' tool, which uses a special
context classloader to load classes from tools.jar.
This situation elicits what is believed to a javadoc bug in the initial
release of JDK 1.5. Javadoc attempts to use its own context classloader
tools.jar but ignores one that may have already been set, which leads
to some classes being loaded into two different classloaders. The
telltale sign of this problem is a javadoc error message saying that
'languageVersion() must return LanguageVersion - you might see this
message in your process' output.
This will hopefully be fixed in a later release of JDK
1.5; if a new
version of 1.5 has become available, you might be able to solve this
by simply upgrading to the latest JDK.
Alternatively, you can work around it by simply including
$JAVA_HOME/lib/tools.jar in the java -classpath
parameter. If you are running ant, you will need to modify the standard
ant script to include tools.jar in the -classpath.
at org.apache.tools.ant.Task.perform(Task.java:373)
at org.apache.tools.ant.Target.execute
(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget
(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild
(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java
:67)
Caused by: org.codehaus.jam.internal.javadoc.JavadocClassloadingException: An error has occurred while invoking javadoc to inspect your source
files. This may be due to the fact that $JAVA_HOME/lib/tools.jar does
not seem to be in your system classloader. One common case in which
this happens is when using the 'ant' tool, which uses a special
context classloader to load classes from tools.jar.
This situation elicits what is believed to a javadoc bug in the initial
release of JDK 1.5. Javadoc attempts to use its own context classloader
tools.jar but ignores one that may have already been set, which leads
to some classes being loaded into two different classloaders. The
telltale sign of this problem is a javadoc error message saying that
'languageVersion() must return LanguageVersion - you might see this
message in your process' output.
This will hopefully be fixed in a later release of JDK
1.5; if a new
version of 1.5 has become available, you might be able to solve this
by simply upgrading to the latest JDK.
Alternatively, you can work around it by simply including
$JAVA_HOME/lib/tools.jar in the java -classpath
parameter. If you are running ant, you will need to modify the standard
ant script to include tools.jar in the -classpath.
at org.codehaus.jam.internal.javadoc.JavadocRunner.run(JavadocRunner.java:147)
at org.codehaus.jam.internal.javadoc.JavadocClassBuilder.initJavadoc(JavadocClassBuilder.java:236)
at org.codehaus.jam.internal.javadoc.JavadocClassBuilder.init(JavadocClassBuilder.java:87)
at
org.codehaus.jam.provider.CompositeJamClassBuilder.init(CompositeJamClassBuilder.java:45)
at org.codehaus.jam.provider.JamServiceFactoryImpl.createBuilder(JamServiceFactoryImpl.java:178)
at org.codehaus.jam.provider.JamServiceFactoryImpl.createClassLoader
(JamServiceFactoryImpl.java:137)
at org.codehaus.jam.provider.JamServiceFactoryImpl.createService(JamServiceFactoryImpl.java:78)
at org.codehaus.annogen.generate.AnnogenTask.execute(AnnogenTask.java:146)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
... 10 more
--- Nested Exception ---
org.codehaus.jam.internal.javadoc.JavadocClassloadingException
: An error has occurred while invoking javadoc to inspect your source
files. This may be due to the fact that $JAVA_HOME/lib/tools.jar does
not seem to be in your system classloader. One common case in which
this happens is when using the 'ant' tool, which uses a special
context classloader to load classes from tools.jar.
This situation elicits what is believed to a javadoc bug in the initial
release of JDK 1.5. Javadoc attempts to use its own context classloader
tools.jar
but ignores one that may have already been set, which leads
to some classes being loaded into two different classloaders. The
telltale sign of this problem is a javadoc error message saying that
'languageVersion() must return LanguageVersion - you might see this
message in your process' output.
This will hopefully be fixed in a later release of JDK 1.5; if a new
version of 1.5 has become available, you might be able to solve this
by simply upgrading to the latest JDK.
Alternatively, you can work around it by simply including
$JAVA_HOME/lib/tools.jar in the java -classpath
parameter. If you are running ant, you will need to modify the standard
ant script to include tools.jar
in the -classpath.
at org.codehaus.jam.internal.javadoc.JavadocRunner.run(JavadocRunner.java:147)
at org.codehaus.jam.internal.javadoc.JavadocClassBuilder.initJavadoc(JavadocClassBuilder.java:236)
at org.codehaus.jam.internal.javadoc.JavadocClassBuilder.init(JavadocClassBuilder.java:87)
at org.codehaus.jam.provider.CompositeJamClassBuilder.init(CompositeJamClassBuilder.java:45)
at
org.codehaus.jam.provider.JamServiceFactoryImpl.createBuilder(JamServiceFactoryImpl.java:178)
at org.codehaus.jam.provider.JamServiceFactoryImpl.createClassLoader(JamServiceFactoryImpl.java:137)
at org.codehaus.jam.provider.JamServiceFactoryImpl.createService
(JamServiceFactoryImpl.java:78)
at org.codehaus.annogen.generate.AnnogenTask.execute(AnnogenTask.java:146)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform
(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java
:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets
(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Total time: 3 seconds
--
---------------------------------------------------------
Raymond Kroeker