SunFlow on WinXP's Desktop

[quote=“fpsunflower”]

Ok. Just to double check, type:

java -server -version

and make sure it says something about the server vm.

Don’t change anything here, if the above works, you’re good to go.[/quote]

yeah, it says stuff about -server

K, nevermind. I’ll just forget about the desktop shortcut for now. I can get the thing started with -server through command prompt.

Since I had a rough time getting the shortcut to work I thought I would post how I did it. This is off memory so I hope I got it right.

  1. Install Java (I suggest the JDK over the JRE alone since the JDK allows the use of the -server option)
  2. Right click on “My Computer,” go to Properties, go to the Advanced tab, click on the Environmental Variables button.
  3. In the system variables section (bottom part) there are two variables that you need to do something to, ClassPath and Path.
  4. Assuming you put the Sunflow .jar files in C:\Sunflow, click on ClassPath and click edit. If this isn’t already there go to the very end of whatever text is there (do nothing to the text that is already there) and add a semi-colon (to separate this from the previous text) then the text C:\sunflow\sunflow.jar;c:\sunflow\janino.jar
  5. Hit okay.
  6. click on Path and click edit. If this isn’t already there, go to the very end of whatever text is there (do nothing to the text that is already there) and add a semi-colon then the text C:<your path to the Java JDK>\JRE\bin (make sure the bin folder has both a client and server folder).
  7. Restart you computer
  8. Go to a command prompt and type in “java -server -version” which should return the version you are running.
  9. Create a shortcut on your desktop (or whereever you want it) and in the target field put “javaw.exe -server SunflowGUI” in the Start In field put where your Sunflow .jar files are (for me it is C:\Sunflow)
  10. Double click and see Sunflow start up!
  11. Read Sunflow’s documentation for other command line options you can add to your shortcut.

Please correct me if I missed something or refine the instructions.

Just one thing to add, if there is a path to an existing version of java (say 1.4) make sure you either delete it or add the path to 1.5 before the other version, this first one in the path will be used.

Yes! I finally go this to work :slight_smile: I must have changed the variable name by accident.