Project

Profile

Help

Installation help

Added by Anonymous almost 16 years ago

Legacy ID: #5105146 Legacy Poster: Krippers (krippers)

Hi, sorry about this but I'm incredibly new to this format of application (java). I've followed the instructions but I'm not sure I've done it correctly. The file was unzipped to my D drive and I placed (or think I have) a route to saxon9.jar in my CLASSPATH as shown: .;C:\Program Files\Java\jre1.6.0_06\lib\ext\QTJava.zip;D:\Saxon\saxon9.jar; When I try to run a transform from within the directory I placed it I get the following: D:\Saxon>java net.sf.saxon.Transform -s:snadbox_stripped.xml -xsl:TransformPPT.xslt -o:out.xml Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/saxon/Transform Caused by: java.lang.ClassNotFoundException: net.sf.saxon.Transform at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) D:\Saxon> any ideas would seriously be appreciated thanks.


Replies (3)

Please register to reply

RE: Installation help - Added by Anonymous almost 16 years ago

Legacy ID: #5105339 Legacy Poster: Michael Kay (mhkay)

There could be a problem with that space in one of the files on your classpath, I'm not sure. It's also possible that the CLASSPATH variable isn't being picked up. How did you set it up? Try the command echo %CLASSPATH% to make sure. Personally (partly because I'm always changing the classpath) I find it easier to enter the classpath as part of the command line itself: java -cp .;d:\saxon\saxon9.jar net.sf.saxon.Transform .... It makes for a long command line but you can always put it in a batch file. I'm puzzled by the QTJava.zip. It's not usual to have a .zip file on the classpath.

RE: Installation help - Added by Anonymous almost 16 years ago

Legacy ID: #5105505 Legacy Poster: Krippers (krippers)

Thanks I decided to work directly in the installation folder. I'm confused about the zip as well, took me by surprise when I first looked at CLASSPATH. I appreciate the help though, many thanks.

RE: Installation help - Added by Anonymous almost 16 years ago

Legacy ID: #5106729 Legacy Poster: Peter B. West (pbw)

Zip files are OK, as long as they have the right contents. A jar file is zip compressed. From the manual: -cp classpath Specify a list of directories, JAR archives, and ZIP archives to search for class files.

    (1-3/3)

    Please register to reply