| | |
how do i make executable
![]() |
You can't, period.
There are some tools that will create exe-wrappers but they effectively just pack an entire JVM in with the classfiles.
Create an executable Jar instead, that can then be run on any computer that has a JVM installed by either double clicking on it (if the machine is so configured) or by using the java -jar <somejar.jar> command.
There are some tools that will create exe-wrappers but they effectively just pack an entire JVM in with the classfiles.
Create an executable Jar instead, that can then be run on any computer that has a JVM installed by either double clicking on it (if the machine is so configured) or by using the java -jar <somejar.jar> command.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
•
•
Originally quoted by jwenting
Create an executable Jar instead, that can then be run on any computer that has a JVM installed by either double clicking on it
Don't know how to do it from Netbeans. Should be mentioned in the documentation somewhere if it's possible.
If not check the JDK documentation for the jar command which tells you how to do it by hand (which you should learn to do anyway, you won't always have netbeans available).
If not check the JDK documentation for the jar command which tells you how to do it by hand (which you should learn to do anyway, you won't always have netbeans available).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
Join Date: May 2005
Posts: 55
Reputation:
Solved Threads: 1
You could create a batch file (.bat). This answer is for Windows computers. It is not an executable but it is very simple to make.
Suppose you main method is in the class MyTest. Then create a file called MyJavaRun.bat. (The name is arbitrary)
Inside the file write:
The first line runs the JVM giving it the main class and the second command prevents the window from closing all of a sudden when the program exits.
Then just double click the .bat file and it will run the Java program.
For more help, www.NeedProgrammingHelp.com
Suppose you main method is in the class MyTest. Then create a file called MyJavaRun.bat. (The name is arbitrary)
Inside the file write:
Java Syntax (Toggle Plain Text)
java MyTest pause
Then just double click the .bat file and it will run the Java program.
For more help, www.NeedProgrammingHelp.com I still cannot do thuis. I follow the instructions but I create a java.content file. not a jar executealbe file? Why is this so hard. Surely someone has netbeans and has created a jar file.
:cry:
I'm trying to keep this as simple as poss... using sams teach meself java 2 in 24 minutes.
I have create a folder wit two files. one with SalutonFrame.java and one with the class properties.
How do i manifest, is tat the word, this folder and create a jar executalbe in NETBEANS
god bless
:cry:
I'm trying to keep this as simple as poss... using sams teach meself java 2 in 24 minutes.
Java Syntax (Toggle Plain Text)
import javax.swing.*; public class SalutonFrame extends JFrame { public SalutonFrame() { super ("Salut la monde"); setSize(350,100); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); } public static void main(String[] args) { SalutonFrame sal = new SalutonFrame(); } }
I have create a folder wit two files. one with SalutonFrame.java and one with the class properties.
How do i manifest, is tat the word, this folder and create a jar executalbe in NETBEANS
god bless
•
•
•
•
Originally quoted by server_crash
Do you know how to create one via the commandline?
You will have to explain it step by step. Like how to set the command prompt to the right directory. And stuff. I is very stupid. sorrie
If this works I owe you one
•
•
Join Date: Jun 2004
Posts: 609
Reputation:
Solved Threads: 7
Hi everyone,
Read the below thread carefully. There are links there that teach you specifically how to make an executable jar step by step
Here is the link
http://www.wizardsolutionsusa.com/fo...read.php?t=100
Yours Sincerely
Richard West
•
•
•
•
Originally Posted by iamthwee
can you show me
Here is the link
http://www.wizardsolutionsusa.com/fo...read.php?t=100
Yours Sincerely
Richard West
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
He doesn't even know how to compile his sources... Read carefully.
Another victim of the IDE. Learns the tool, not the language, and gets stuck when there's no nice shiny "run" button for something.
Another victim of the IDE. Learns the tool, not the language, and gets stuck when there's no nice shiny "run" button for something.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
![]() |
Similar Threads
- Make Exe Into A Service In Windows (Visual Basic 4 / 5 / 6)
- Python Executable (Py2Exe) (Python)
- Java Executable? (Java)
Other Threads in the Java Forum
- Previous Thread: creating a Trie
- Next Thread: about static variable
| Thread Tools | Search this Thread |
account android api applet application array arrays automation bidirectional binary birt bluetooth class classes client code columns component constructor database designadrawingapplicationusingjavajslider draw eclipse error errors exception expand fractal game givemetehcodez graphics gui guidancer homework html ide image inetaddress inheritance integer intellij j2me java javamicroeditionuseofmotionsensor javaprojects jlabel jme jni jpanel jtextfield jtree julia linux list loop map method methods midlethttpconnection mobile mobiledevelopmentcreatejar monitoring myaggfun netbeans newbie nullpointerexception open-source oracle plazmic print problem program project property recursion ria scanner search server set sharepoint smart sms smsspam sort sourcelabs splash sql sqlite static string subclass support swing testautomation threads tree unlimited webservices windows






