Extension support requires tools.jar indeed. The path that scomp.cmd uses is
%JAVA_HOME%\lib\tools.jar

Radu

-----Original Message-----
From: Harald Meyer [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 05, 2005 9:34 AM
To: [EMAIL PROTECTED]
Subject: tools.jar not on classpath when compiling with extensions?


Hi,

as this worked on my other machine (a Mac instead of Windows) I am not sure
whether this is just a configuration problem. When running XMLBeans to
generate source code with extensions enabled I get the following stack
trace:

    [java] java.lang.NoClassDefFoundError: com/sun/javadoc/Type
    [java]      at
org.apache.xmlbeans.impl.jam.provider.JamServiceFactoryImpl.createSourceBuil
der(JamServiceFactoryImpl.java:205)
    [java]      at
org.apache.xmlbeans.impl.jam.provider.JamServiceFactoryImpl.createBuilder(Ja
mServiceFactoryImpl.java:158)
    [java]      at
org.apache.xmlbeans.impl.jam.provider.JamServiceFactoryImpl.createClassLoade
r(JamServiceFactoryImpl.java:137)
    [java]      at
org.apache.xmlbeans.impl.jam.provider.JamServiceFactoryImpl.createService(Ja
mServiceFactoryImpl.java:78)
    [java]      at
org.apache.xmlbeans.impl.config.BindingConfigImpl.getJamLoader(BindingConfig
Impl.java:373)
    [java]      at
org.apache.xmlbeans.impl.config.BindingConfigImpl.<init>(BindingConfigImpl.j
ava:74)
    [java]      at
org.apache.xmlbeans.impl.config.BindingConfigImpl.forConfigDocuments(Binding
ConfigImpl.java:69)
    [java]      at
org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.j
ava:939)
    [java]      at
org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:106
7)
    [java]      at
org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:367)
    [java] Exception in thread "main"

If I compile the schema without the extensions everything works. It also
works if I manually add tools.jar to my classpath. But I do not think this
is the optimal solution. Is this just a configuration error (I tried adding
tools.jar to my CLASSPATH environment variable; but this did not have any
impact)?

Best regards,
Harald Meyer 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to