java program compilation problem

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 ?
cofactorAsked:
Who is Participating?
 
CPColinSenior Java ArchitectCommented:
Try using a colon in the classpath, instead of a semicolon. Linux and Windows disagree on that subject.
0
 
cofactorAuthor Commented:
brilliant.

It worked.   Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.