I use eclipse for developing my applications.
I have 2 java files, one is main and one is class that is used by main.
In eclipse, I just execute as java program and it works. (default package).
Now I just want to run this program on linux and other windows.
How do I run it? if you can point to me a tutorial that also is fine.
I am not looking at jar file/mainfest at this point of time . all I am looking for is to run thr program
The easiest way for you will likely be to export a runnable jar.
Now a jar file should be saved which can be run by double clicking in a GUI or using the command line:
java -jar <your jar file>