Title: No class def found error when running pretty printer
actually what i found was that in all the scripts it checks for the existence of XMLBEANS_HOME\build\ar\xbean.jar OR XMLBEANS_HOME\lib\xbean.jar.  I had the lib\xbean.jar, but both if branches set the cp to equal the same path to build\ar\xbean.jar and not the lib\xbean.jar.   that is definitely a copy/paste error in apache that should be fixed and re-distributed.
Jason


From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 29, 2005 8:42 PM
To: dev@xmlbeans.apache.org
Subject: RE: No class def found error when running pretty printer

Probably a bug in the “xpretty” script. Looking at your “XMLBEANS_HOME” variable though, it seems that you are using JDK 1.3. XmlBeans is really targeted at JDK 1.4 and above, so support for 1.3-related issues is scarce.

 

If anyone using JDK1.3 has a fix for this problem, we’d appreciate sharing it with us.

 

Thanks,

Radu

 

-----Original Message-----
From: Green, Jason M. [mailto:[EMAIL PROTECTED]
Sent: Friday, September 16, 2005 6:40 AM
To: dev@xmlbeans.apache.org
Subject: No class def found error when running pretty printer

 

Hey all,
   I'm, of course, new to xmlbeans.  I have run through the setup with all the environment variables with no problem.  When I run the first little command to view the schema, I get this:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xmlbeans/impl/tool/PrettyPrinter

I know that I have my class paths set correctly, but I will display them, and I also know that the prettyprinter is in the xbean.jar.  Needless to say, I'm out of ideas.  Anyway, here are my environment variables:

CLASSPATH:    C:\xmlbeans-1.0.4-jdk1.3\lib\xbean.jar  (I have tried it at the beginning and end of the classpath
Path:  %XMLBEANS_HOME%\bin  (system variable)
PATH:  %XMLBEANS_HOME%\bin  (user variable)
XMLBEANS_HOME:   C:\xmlbeans-1.0.4-jdk1.3

I have tried moving all these around so that they are in the front, and not the back, etc.
Please Help,
Jason

Reply via email to