Compiling Java src with JDOM

Started by
1 comment, last by idlevelocity 16 years ago
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 :(
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.
I'm using a UNIX terminal.

I tried using ':' instead of ';', and I'm getting this error now:
Bad : modifier in $ (j).

Any ideas?

This topic is closed to new replies.

Advertisement