java program compilation problem

I am compiling a java file in linux box

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

I get two erros :

package <name of package from JAR> does not exist


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

How do I fix it ?
Who is Participating?
CPColinSenior Java ArchitectCommented:
Try using a colon in the classpath, instead of a semicolon. Linux and Windows disagree on that subject.
cofactorAuthor Commented:

It worked.   Thanks
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.