Hi, and thanks for your response, and pardon my ignorance.
I am now able to compile SaveAsJPEG.java to SaveAsJAVA.class with no errors using jdk1.3.1 from my command prompt I try: java SaveAsJPEG generatedsvg.svg i get... Exception in thread "main" java.lang.NoClassDefFoundError: SaveAsJPEG java -cp c:\Progra~1\Allaire\JRun\lib\ext\jaxp.jar;c:\xml-batik\resources SaveAsJPEG generatedsvg.svg I get... Exception in thread "main" java.lang.NoClassDefFoundError: SaveAsJPEG I don't understand what classpath has to be when I run it, I am guessing that it has to be the same as used when compiling SaveAsJPEG.java. please help, and thank you very much in advance. will -----Original Message----- From: Thomas E Deweese [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 4:41 PM To: Batik Users Subject: RE: Error Running Compiled SaveAsJPEG, please help >>>>> "WC" == Carter, Will <[EMAIL PROTECTED]> writes: WC> I appreciate your help very much. I am very new at this and am WC> stumbling through this. WC> when you say... >> It seems you have forgotten to add the resources directory to your WC> classpath WC> do you mean I have forgotten to add the resources directory to my WC> classpath when I compile SaveAsJPEG.java? No he means when you run it: java -cp classes:resources:lib/js.jar:lib/crimson-parser.jar ... If you are building a jar file and running that (by double clicking in windows or something) then you need to include the contents of the resources directory in your JAR file (you should _NOT_ see 'resources/org/...' if you jar-tvf the jar file you should see 'org/...') WC> like this...(the contents of batik-src-1.1.1.zip is in my WC> c:\xml-batik directory) WC> javac -sourcepath c:\xml-batik\sources -classpath WC> c:\xml-batik\resources SaveAsJPEG.java WC> when I run this from my command line, I get these errors. Any WC> help would be greatly appreciated. Well, uhh, we certainly don't get these errors :) Are you perhaps using JDK 1.4? It looks like it from some of the errors. I think for right now you will need to compile with JDK 1.3.1 Good luck. --------------------------------------------------------------------- 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]
