Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 14th Oct 2012, 07:21 AM   #1
Warrior Member
 
Join Date: 2012
Posts: 16
Thanks: 33
Thanked 0 Times in 0 Posts
Post
How to use my java application as a normal software?
Share on: 
fb share twitter share gplus share more share

May be this is some thing interesting-or may be stupid, I don't know.
This is what, I just created a very small java application(using javax.swing.*) and this is what it does, it asks two number inputs from the user and when the user press enter after that, it returns the sum of them on a default small window.
But I code this with notepad and saved as somename.java and I compiled this in cmd.
So this is my question, how can I run this application as a normal software like that we click on the notepad icon on the desktop and opens it.
Can I run this by creating something like an icon and click it to open my simple user interface.
I don't know much about java. So please explain me this. Thanks all.
forme is offline  
Unread 14th Oct 2012, 10:17 AM   #2
CNJ
Infinitas
 
Join Date: 2012
Location: UK
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: How to use my java application as a normal software?
Share on: 
fb share twitter share gplus share more share

You should read the documentation and find how to package your application into a JAR file.

Assuming the user has java installed, they can then double click your JAR file and run it like you would with any other executable.
CNJ is offline  
The Following User Says Thank You to CNJ For This Useful Post:
Unread 14th Oct 2012, 01:03 PM   #3
Warrior Member
 
Join Date: 2010
Posts: 11
Thanks: 0
Thanked 2 Times in 2 Posts
Default
Re: How to use my java application as a normal software?
Share on: 
fb share twitter share gplus share more share

you need to use a java to exe compiler
crivion is offline  
The Following User Says Thank You to crivion For This Useful Post:
Unread 29th Oct 2012, 12:29 PM   #4
Warrior Member
 
Join Date: 2012
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: How to use my java application as a normal software?
Share on: 
fb share twitter share gplus share more share

Make it installable? Is what you want? Then there is a solution.

Go to Excelsior Jet, download it, it is free for open source applications. Download it and use it.

First keep your java file in a jar file. For this,

jar cf myjar.jar YourClass.class
Then, in Excelsior Jet add this file to the classpath and thereafter everything is what you know
gowthamgutha is offline  
Closed Thread


Bookmarks

Tags
application, java, normal, software


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 11:41 AM.