1

Problems loading jar in CLASSPATH

view story
linux-howto

http://askubuntu.com – I have ubuntu 12.04.1 nad running java 6. I set the CLASSPATH to /usr/lib/jvm/java-6-openjdk-amd64/bin so that if I do $ echo $CLASSPATH I get /usr/lib/jvm/java-6-openjdk-amd64/bin In that folder I have a jar file called MarkDuplicates.jar, but when I try to run it with $ java -jar MarkDuplicates.jar I get Unable to access jarfile MarkDuplicates.jar I would like to use that folder to add more jar files so that they become easily accesible. If I run java -jar $CLASSPATH/MarkDuplicates.jar then the program DOES run, any help? (HowTos)