Jump to content
  • Advertisement
Sign in to follow this  
idlevelocity

Compiling Java src with JDOM

This topic is 3713 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!