How, or perhaps, execute a java application from an unpacked jar
How, is it possible to execute a java application from an unpacked jar. I unpacked the jar file using 7zip. I found the MANIFEST.MF file and made a note of the Main-Class path: "com.uwsoft.editor.LevelEditor". Now I am trying to execute the unpacked java application by going to the directory in the console containing the "LevelEditor.class" file and running the "java LevelEditor" command in the console. I get the error "Error: Unable to find or load the main LevelEditor class". I can successfully execute the jar file from the console and I can even repackage the jar file and execute it. I hope I can so that I can execute the application without repackaging it. Please excuse the noob question, I am a .net developer for java.
source to share
You need to navigate up three folders, so
cd ..\..\..\
to the folder containing com
. Then
java -cp . com.uwsoft.editor.LevelEditor
As java packages correspond to folders in the filesystem. To quote What is a package?
Conceptually, you can think of packages as being different folders on your computer.
source to share