| | |
start java program from desktop or start menu
![]() |
•
•
Join Date: Aug 2007
Posts: 164
Reputation:
Solved Threads: 1
Hi
Can anyone please tell me whether I can write a java program and start it in a way other that involves the command line? And not applets either.
I want to start writting all of our company software in java, leaving behind c#. But the problem is I can only run java programs from the command line using the java command. End users will not like this.
Is there anyway to make java programs more user friendly By providing a shortcut on the desktop and adding it to the start menu.
Thanks in advance
Rav Wolf
Can anyone please tell me whether I can write a java program and start it in a way other that involves the command line? And not applets either.
I want to start writting all of our company software in java, leaving behind c#. But the problem is I can only run java programs from the command line using the java command. End users will not like this.
Is there anyway to make java programs more user friendly By providing a shortcut on the desktop and adding it to the start menu.
Thanks in advance
Rav Wolf
... what society overwhelmingly asks for is snake oil. Of course, the snake oil has the most impressive names —otherwise you would be selling nothing— like "Structured Analysis and Design", "Software Engineering", "Maturity Models", "IPSE", "MIS", "OO", "BPRE".... by Edsger W. Dijkstra
•
•
Join Date: Aug 2007
Posts: 164
Reputation:
Solved Threads: 1
I am not sure if you are right.
the javac command compiles it. the java command starts the virtual machine, load the specified class and invoke function main. in other words its the same as clicking a program icon on the start menu.
the javac command compiles it. the java command starts the virtual machine, load the specified class and invoke function main. in other words its the same as clicking a program icon on the start menu.
Last edited by Ravenous Wolf; Oct 27th, 2008 at 4:04 am.
... what society overwhelmingly asks for is snake oil. Of course, the snake oil has the most impressive names —otherwise you would be selling nothing— like "Structured Analysis and Design", "Software Engineering", "Maturity Models", "IPSE", "MIS", "OO", "BPRE".... by Edsger W. Dijkstra
•
•
Join Date: Aug 2007
Posts: 164
Reputation:
Solved Threads: 1
thanks. i'll go check it out. will get back to you hopefully soon. thanks again.
@acidburn.
thanks to you too. it seems you were on the right track.
cheers
@acidburn.
thanks to you too. it seems you were on the right track.
cheers
... what society overwhelmingly asks for is snake oil. Of course, the snake oil has the most impressive names —otherwise you would be selling nothing— like "Structured Analysis and Design", "Software Engineering", "Maturity Models", "IPSE", "MIS", "OO", "BPRE".... by Edsger W. Dijkstra
•
•
•
•
Hi Rav Wolf ,
when you compile your java code , a .jar file is created .. then you can use any of the progras that converts jar to exe such as "installJammer" , InstallJammer creats a .exe file from the .jar file ..
I hope i helped you ..
any question i'll be there .
thanks
best regards.
eng.Hosam
There is no reason you need to create an .exe from the jar file (and many reasons not to). Just read the tutorial on packaging applications as jar files: http://java.sun.com/docs/books/tutor...jar/index.html
For your shortcut, you can simply use the same syntax that you would to run it from the command line. If you don't want the command window to persist while it's running, use "javaw" instead of "java" . You can add any switches you might need.
If you want to provide an installer for the app, you might take a look at IzPack.
For your shortcut, you can simply use the same syntax that you would to run it from the command line. If you don't want the command window to persist while it's running, use "javaw" instead of "java"
Java Syntax (Toggle Plain Text)
javaw -jar MyApp.jar
If you want to provide an installer for the app, you might take a look at IzPack.
![]() |
Similar Threads
- Hijack This Log. Desktop & Start Menu Shortcuts won't work (Viruses, Spyware and other Nasties)
- Nothing Will Open On Desktop/Start Menu. Freezes. HELP! (Viruses, Spyware and other Nasties)
- Desktop won't load (Viruses, Spyware and other Nasties)
- start menu, desktop, and internet explorer not working (Viruses, Spyware and other Nasties)
- explorer, iexplore don't start (Viruses, Spyware and other Nasties)
- lost my desktop and start menu (Viruses, Spyware and other Nasties)
- IE explorer starts up very slowly (Viruses, Spyware and other Nasties)
- System32 folder at start up! (Viruses, Spyware and other Nasties)
Other Threads in the Java Forum
- Previous Thread: arrays
- Next Thread: Java pull-down menu
Views: 1251 | Replies: 8
| Thread Tools | Search this Thread |
Tag cloud for Java
actionlistener add android applet application arguments array arraylist arrays c# c++ chat class classes client code compile component convert coordinates data database desktop eclipse error event exception fast file forloop fractal givemetehcodez graphics gridlayout gui helpwithhomework homeworkassignment html ide image images input interface j2me java javafx jframe jpanel jtextarea lazy linked linked-list list loop looping main method methods mobile netbeans newbie node number object objects oracle output page pattern pixel print problem programming read recursion remove return robot scanner search server service set size sms socket software source sql string swing system text text-file time timer translate tree web windows






