I am trying to pack my program in a JAR file so that it can be used on multiple computers.
My program consists of start.java
, writer.java
and writer.java
.
A program written in Eclipse works fine on my computer. When exporting, it will work on my computer, but the following error will occur on other computers:
"Could not find the main class: start. Program will exit".
Again, my program works fine on my computer when I double-click on it.
I tried to create a JAR file through the command line, and my manifest file is correct. What's happening?
source share