blog

21 July 2006

Java is ignoring me

by Anton Piatek

I spent a fair amount of time the other day, trying to figure out why java is ignoring all classpath options I had set (both command line and CLASSPATH var) when working with my Jar file. After getting at least one other person to have a look, google finally yielded someone with the same problem

Turns out that it is not a bug. It is in fact behaving correctly – yes accoding the the specs java is supposed to ignore all classpath options when you are using a Jar file. I guess I have never done any complex java and put it in a Jar (though most people I talk to didn’t realise this, or forgot about it)
The solution is of course to put a line in the manifest so that it knows what jar files it needs…

tags: