I have write a small Java program using SWT GUI which search a given word inside a given text file, but when I run the program in Eclipse it works well, and if I exported it as a runnable jar file, in my PC it works well, but when I run it in other PC’s then it doesn’t work (cannot run, dosen't luanch the frame)… and also the same Java JDK (1.7) is installed in both my and other PC’s. Before JDK1.7 when I execute the runnable jar file it works well in all other PC’s, but now any jar file cannot run in other PC’s, but only in my PC…. Now if someone knows what the problem is, please suggest me how to solve.
Note: I exported the jar file in three options, but the result for all was the same.
- Extract required libraries into generated JAR
- Package required libraries into generated JAR
- Copy required libraries into a sub-folder next to generated JAR
Thanks in advance!