This content has been marked as final. Show 3 replies
Do you have a CLASSPATH environment variable in Linux? If yes, what is it?
That was it -- no CLASSPATH had been set.
I just got Ubuuntu fully operational a couple weeks ago, and had its "Software Center" install the JRT and the IcedTea plugin. No JDK, and I have not done any development from the Linux side. The "java" command was in the executables' path and I did not think any further than that.
Also, it was not obvious to me that the location of properties files would be related to the CLASSPATH variable.
At any rate, thank you!
Oh, I set it to
This is similar to my Windows7 CLASSPATH. Would you suggest any modifications?
Good for you, but I am surprised a bit. I was expecting you to have a WRONG classpath in Linux. You see, in Windows I don't have a classpath at all. From all I know, if no classpath is specified by the environment variable or by the java command line, it defaults to the current directory. Looks like this is true in Windows, but not in Linux. Anyway, if you are unclear about how getResourceAsStream() locates resources, it uses the classpath, explicit or not, and not the file system for loading resources.
Edited by: baftos on Feb 16, 2013 10:18 PM