Unable to access Images inside executable jar
I am using Eclipse IDE for development .
I am trying to make a executable jar and give it to others so that they can run it in their machine.
I have followed the below documentation to access the image files inside the jar
String clazz = "testAPI.Test";
String imgFolder = "/imgs";
String img = "test.png";
String inJarFolder = clazz + imgFolder;
ImagePath.
)
With the above steps mentioned in the doc , the executable jar works fine and is able to access the image files inside the executable jar , when it is executed from my computer( the computer where the code was developed ) .
when the same jar is executed in a different machine , it doesn't work.
But the same code when run in eclipse IDE in a different machine works well and is able to identify images.
I want this jar to be working in other machines too . How can we resolve this ?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Prathima Lydia
- Solved:
- Last query:
- Last reply: