I coded up 4 .java files. The thing is that I can only execute my .java files from my IDE, how do I execute the .class files like an application? I study at uni, and I was told that Java is platform independent. Any tutorial/book recommendations would be highly appreciated.
Thanks
The basic idea (to give you some things to search for) is:
You might find your IDE already creates this when you run a 'clean build'. Netbeans puts this into a 'dist' folder.
Modern JREs will allow you to run the jar by double clicking it etc.
You can also go a bit further by wrapping the jar in a native executable using a tool such as JSmooth.
Look at executable jar. Here is the precise one, without any details, Creating executable jar files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With