i have created a java project in NetBeans. now i want to make an executable file out of it.that can be executed (run) in other computers that have JDK or JRE installed but don't have NetBeans or any other Java IDE installed.how can i do such thing using NetBeans???
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Do you mean compile it to JAR? Netbeans does that automatically, just do
clean and build
(hammer sybol) and look in thedist
subdirectory of your project. There will be the JAR withlib
folder containing the required libraries. These JAR + lib are enough to run the application.Maby you unchecked an option:
Project Properties -> Build -> Packaging -> Build JAR after compiling
(but this is enabled by default)
you mean executable jar file. which can be executed using $java -jar myJar.jar . So you need to change manifest file inside jar. Second if you want a mouse double click execution then for Linux create .sh and for windows create .bat file containing the above specified $java -jar .
JVM installation is required to do so on whichever machine you want to execute.
Click Me :-)
You have to build your project. Just click on the hammer in the toolbar. After that there should be a folder in your project called "dist".
In it is the *.jar File, which you can deploy to anybody who has Java installed.