ON A PC:
To run a java program you need to download the Java Runtime Environment software from Sun Microsystems. This will give you the necessary files to allow you to r 24324p159y un the Java file I included with this tutorial.
You can download it at: https://java.sun.com/j2se/1.3/jre/
Once you have installed the JRE on your computer, you will be able to run the RunServer.bat batch file that I included to set your computer up and to run the program. The only thing you need to pay attention to is the location of the flashlogin.jar file that is included on the CD. If you leave the file there or decide to copy it to your desktop you must remember the path ex: "c:\windows\desktop" and edit the RunServer.bat file so that the path to the flashlogin.jar file is correct right after the semi-colon on the first line of text.
Once that is done, you can simply double click the RunServer.bat file from anywhere you want, and your Java server should be up and running.
Something to remember: The server will only run until you connect to it with your Flash movie and as soon as the Flash movie is closed, the server will quit, so if you want to try it again you'll have to double-click RunServer.bat again.
If you start up the Java server and decide for any reason not to connect to it with your Flash movie, you should remember to quit the Java program so it doesn't hold onto your port. To do that just hit CTRL-C at the dos prompt where the program is running.
ON A MAC:
There should be a Runtime Environment package for a Mac, but I'm not quite sure how it works, since rarely do people develop Java programs on a Mac. However, I'm sure there will be instructions with the Mac JRE, telling you how to execute a .jar file. Just look for those instructions. The same thing goes for other platforms as well.
|