Re: Help - Image icon
In JAR file, you can't use file name because only file available
is the JAR file itself. There are no other files unlsess you
deliberately provide them along with the JAR file.
Use getResource() method of Class class instead.
.
Relevant Pages
- Re: finding the directory a .jar file was launched from
... > what is the best way via code to find the directory a jar file was ... user.dir will contain the current working directory of the program (the ... directory from which relative paths will be resolved), ... Prev by Date: ... (comp.lang.java.programmer) - Re: Starting java with -jar option precludes *.class files on CLASSPATH ?
... What "application classes" are not loaded from the JAR file? ... Kind regards, ... Peter Kriens ... Prev by Date: ... (comp.lang.java.programmer) - Re: Howto find out path to jar...
... >How can I find out full path to to that jar file in application wich I ... http://mindprod.com Again taking new Java programming contracts. ... Prev by Date: ... (comp.lang.java.help) - Re: applets wont appear
... > my .jar file is going up now, ... and Andrew has already kicked you into the right direction to solve that ... good luck ... Prev by Date: ... (comp.lang.java.gui) - Re: Creating a Win32 exe from a Java project?
... You have your java classes (preferrably bundled into a jar file) and can ... Any ideas and/or instructions? ... Prev by Date: ... (comp.lang.java.programmer) |
|