We help IT Professionals succeed at work.

java program compilation problem

cofactor
cofactor asked
on
I am compiling a java file in linux box

javac -cp ".;absolute_path/jar_name.jar"  Test.java


I get two erros :

package <name of package from JAR> does not exist

AND

 <name of class in JAR > error: cannot find symbol


How do I fix it ?
Comment
Watch Question

Senior Java Architect
Commented:
Try using a colon in the classpath, instead of a semicolon. Linux and Windows disagree on that subject.

Author

Commented:
brilliant.

It worked.   Thanks