Which obviously did not work correctly in L4J. After looking around, I saw suggestions using ClassLoader, but while I got that to work inside of Eclipse, the same code did not work after being run from the executable. The root of the exe seems to be the src folder of the project, which makes referencing a challenge. Can anyone help?
Related question: How do I print to the Launch4J console for debugging? I'm using the Lanuch4J 3.9 GUI.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Launch4j is using the ClassLoader for that purpose, have a look at Util.java or loadImage method in any net.sf.launch4j.from class. The load image takes a relative path: loadImage("images/open16.png"), try without 'src/'.
Grzegorz
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to wrap my first program with Launch4J. I am trying to access two images in my application.
I initially had it like this
Which obviously did not work correctly in L4J. After looking around, I saw suggestions using ClassLoader, but while I got that to work inside of Eclipse, the same code did not work after being run from the executable. The root of the exe seems to be the src folder of the project, which makes referencing a challenge. Can anyone help?
Related question: How do I print to the Launch4J console for debugging? I'm using the Lanuch4J 3.9 GUI.
Launch4j is using the ClassLoader for that purpose, have a look at Util.java or loadImage method in any net.sf.launch4j.from class. The load image takes a relative path: loadImage("images/open16.png"), try without 'src/'.
Grzegorz