Sign in to follow this  

Compiling Java src with JDOM

Recommended Posts

idlevelocity    122
I just downloaded JDOM (for Java), and tried it out, but it's giving me this weird error: > javac -classpath $CLASSPATH;jdom.jar *.java javac: no source files jdom.jar: PK^C^D: execute permission denied jdom.jar: syntax error at line 2: `)' unexpected I rebuilt it, copied over the .jar file to the directory with my source file, and still got this error. Am I doing something wrong here? Google nor JDOM's website could help me :(

Share this post

Link to post
Share on other sites
Antheus    2409
Is this linux by any chance? If so, then you need to use : instead of ;

; is used to chain statement, so you're actually executing:

> javac -classpath $CLASSPATH
> jdom.jar *.java

Which produces the expected output.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this