You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by rgentry <rg...@yahoo.com> on 2006/02/03 18:37:50 UTC

noclassdeffound error -- tools.jar - resolver.jar

I downloaded  xmlbeans-2.1.0 and when I run scomp i
get -

Exception in thread "main"
java.lang.NoClassDefFoundError:
Files\Java\jdk1/5/0_05\\lib\tools/jar;C:\xmlbeans-2/1/0\lib\resolver/jar

I have my path and my classpath set,
I downloaded SAXON8.1.1,
I have set XMLBEANS_Home and XMLBEANS_LIB

I have tried this on three windows machines, XP Pro,
XP HOME, and 2000 Pro.

I fing it very odd that ANT can find tools.jar but
scomp cannot.


This acts very much like a classpath issue - nut I
have even ran xbeanenv.cmd and get the same results.

I have jdk1.5 _06 installed, xmlbeans-2.1, saxon8.1.1
on a windows xp Pro - I followed these instructions at

http://xmlbeans.apache.org/documentation/conInstallGuide.html

Windows Setup

On Windows, do the following:

   1. Right-click My Computer, then click Properties.
   2. On the Advanced tab, click Environment
Variables.
   3. Add an XMLBEANS_HOME variable whose value is the
XMLBeans location.

      For example, if you downloaded the XMLBeans
release to the root of your C drive, this might be
c:\xmlbeans-1.0.2.
   4. Edit the PATH variable so that it includes the
bin directory of your XMLBeans installation. For the
XMLBeans release, you could add %XMLBEANS_HOME%\bin.
   5. Edit the CLASSPATH variable to include the
xbean.jar included with XMLBeans.

      This is located in the lib directory. If you
built XMLBeans from source, you can also use the JAR
file in the build/ar or build/lib directories.

Note that you may also need to edit your PATH variable
so that the JDK is earlier in the path. For more
information, see the XMLBeans FAQ.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Re: noclassdeffound error -- tools.jar - resolver.jar

Posted by rgentry <rg...@yahoo.com>.
Ok - i enclosed My java_home variable in quotes and
scomp will then find the tools.jar and resolver.jar
(but this breaks ant) and now it fails with this:
C:\xmlbeans\schemas>scomp -out easypo.jar easypo.xsd
Time to build schema type system: 1.386 seconds
Time to generate code: 0.2 seconds
java.io.IOException: CreateProcess:
C:\xmlbeans\schemas\javac @c:\Temp\javac6481
1 error=2
null
java.io.IOException: CreateProcess:
C:\xmlbeans\schemas\javac @c:\Temp\javac6481
1 error=2
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(Unknown
Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        at java.lang.ProcessBuilder.start(Unknown
Source)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at
org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil
.java:231)
        at
org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j
ava:1126)
        at
org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java
:368)
BUILD FAILED


I have moved the java up and down in the classpath -
per the documentation - but it doesn't change anything



--- rgentry <rg...@yahoo.com> wrote:

> I downloaded  xmlbeans-2.1.0 and when I run scomp i
> get -
> 
> Exception in thread "main"
> java.lang.NoClassDefFoundError:
>
Files\Java\jdk1/5/0_05\\lib\tools/jar;C:\xmlbeans-2/1/0\lib\resolver/jar
> 
> I have my path and my classpath set,
> I downloaded SAXON8.1.1,
> I have set XMLBEANS_Home and XMLBEANS_LIB
> 
> I have tried this on three windows machines, XP Pro,
> XP HOME, and 2000 Pro.
> 
> I fing it very odd that ANT can find tools.jar but
> scomp cannot.
> 
> 
> This acts very much like a classpath issue - nut I
> have even ran xbeanenv.cmd and get the same results.
> 
> I have jdk1.5 _06 installed, xmlbeans-2.1,
> saxon8.1.1
> on a windows xp Pro - I followed these instructions
> at
> 
>
http://xmlbeans.apache.org/documentation/conInstallGuide.html
> 
> Windows Setup
> 
> On Windows, do the following:
> 
>    1. Right-click My Computer, then click
> Properties.
>    2. On the Advanced tab, click Environment
> Variables.
>    3. Add an XMLBEANS_HOME variable whose value is
> the
> XMLBeans location.
> 
>       For example, if you downloaded the XMLBeans
> release to the root of your C drive, this might be
> c:\xmlbeans-1.0.2.
>    4. Edit the PATH variable so that it includes the
> bin directory of your XMLBeans installation. For the
> XMLBeans release, you could add %XMLBEANS_HOME%\bin.
>    5. Edit the CLASSPATH variable to include the
> xbean.jar included with XMLBeans.
> 
>       This is located in the lib directory. If you
> built XMLBeans from source, you can also use the JAR
> file in the build/ar or build/lib directories.
> 
> Note that you may also need to edit your PATH
> variable
> so that the JDK is earlier in the path. For more
> information, see the XMLBeans FAQ.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail:
> user-help@xmlbeans.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org