aspose file tools*
The moose likes Java in General and the fly likes Frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Frames" Watch "Frames" New topic
Author

Frames

Patrick Mugabe
Ranch Hand

Joined: Jan 08, 2002
Posts: 132
I have a simple screen developed using Frames.
I want to place an icon on the desktop so that I can just click on it and the screen appears.
Can someone take me through on how I can do this.
Please help.
Wayne L Johnson
Ranch Hand

Joined: Sep 03, 2003
Posts: 399
If you are on windows, then create a batch file (start-my-app.bat, or whatever) that starts your program and create a shortcut to that batch file. The batch file would look like:
java -cp "..." mypkg.MyApp -parms
Your PATH environment variable should contain the directory where Java is installed. You can override/augment the classpath if necessary. The "mypkg.MyApp" will be the full classname of your application (main) class. And the "-parms" represent any parameters that get passed to your class.
In other words, it should look just like whatever you type on the command line to get your class running.
It's a similar process on Linux/Unix.
 
wood burning stoves
 
subject: Frames
 
Similar Threads
Multiple Form Handling in JSP and Servlets for File Uploading
Frames
Can you give sample code to draw rectangle etc., etc.,?
JInternalFrame iconifying position issue
Redirect browser location using servlets!