|
-
Jan 28th, 2006, 04:33 AM
#1
Thread Starter
Lively Member
How to launch java application
I have a java file(hello.java). Then i used javac hello.java to compile it to bytecode. Everytime i must use java hello to run this application. I want to know how can i run it like other windows application by double click it.
-
Jan 28th, 2006, 06:56 AM
#2
Re: How to launch java application
1) You can create a .bat file that contains the command to launch it.
2) You can create a small .exe that launches it. (I think there are tools that do that.)
3) You can pack it into an executable JAR. With the right file associations, you can just double-click it.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 28th, 2006, 01:06 PM
#3
Re: How to launch java application
You can use JBuilder (I do) to compile to native languages (windows, dos, unix, mac)
or you can use "NetBeans" it free from sun website, it compiles to exe if you download the windows version
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jan 29th, 2006, 08:08 AM
#4
Frenzied Member
Re: How to launch java application
Executable jar, no contest. run the command and then make sure you have the mainfest set up correctly.
-
Feb 7th, 2006, 11:37 PM
#5
Thread Starter
Lively Member
Re: How to launch java application
How can i know whether the computer have Java Virtual Machine installed or not? It is Java Virtual Machine installed when we installed J2SDK? If i only want to installed Java Virtual Machine to run *.class class, how to install?
-
Feb 8th, 2006, 07:56 AM
#6
Re: How to launch java application
Install the JRE to run .class files it's also associated with the JDK
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Feb 8th, 2006, 11:48 PM
#7
Thread Starter
Lively Member
Re: How to launch java application
What is JRE? So it means that after i installed JRE, i can use command java. What can i do after i installed JRE?
-
Feb 9th, 2006, 03:48 AM
#8
Re: How to launch java application
JRE is the Java Runtime Environment - everything an end user needs to run Java programs.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|