If I've written something fun and/or useful how to I package it so an computer beginner can run it? This kind of person won't want to install & confige the jdk and probably couldn't handle the command line anyway. Isn't there something like a windows shortcut?
Hi Elouise, Have you ever heard of a batch file? It's Windows (actually it comes from the days of DOS) version of a UNIX shell script. You may be familiar with a file in the root of the Windows host drive named "Autoexec.bat", which is a batch file that runs at boot time. You can set variables (like CLASSPATH), make flow-of-control choices and execute programs (like java.) Anyway you probably should package your program in a jar file which can be made executable. That way you could start your program with a dialog to capture what you have set up as command line parameters. Then the user can simply double-click the jar file just like any other program. Hope this helps Michael Morris SCJP
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
I prefer using jar files. Most users can double click on them to start your program. They do require that the user downloads the JRE. There is a tutorial on how to use jar files at: http://java.sun.com/docs/books/tutorial/jar/ If you want to see an example, you can use a game I wrote that is packaged in a jar file: http://ostermiller.org/ladder/ Another way would be to write an applet. An applet can be run in a web browser and most web browsers have some sort of Java installed. Java Webstart can also be used for this purpose. Be aware that such programs run in a security sandbox. Also there are commercial installers that will package your java application along with a runtime environment. Makes it easy on the user but takes the download up several megabytes and can be expensive.