Meaningless Drivel is fun!
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Frames" Watch "Frames" New topic


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.
I agree. Here's the link:
subject: Frames
It's not a secret anymore!