Help setting up elcipse for development

Hello all,

I have been following the SGS development for awhile and have decided I would like to get in there and try a few things out. I have used eclipse to write simple programs in the past and I have used it to write some J2ME applications. But I do not know the steps I need to do in order to develop a game for the SGS. If anyone has a link or the steps to setup the environment to develop, build, and run the SwordWorld example it would be a great help.

Thank you in advance for any help you can offer a newb.

  • Jarlax

I believe ther ehas already been a post on this topic. try
http://www.java-gaming.org/forums/index.php?topic=14033.0

Thank you for the link Jeff. I actually found that and was looking through it before I saw your post. Using that and the sword world example I have been able to get my eclipse environment setup so that I can make changes to the code with debugging support and when I click on run my server starts up and loads sword world. I have to delete the persistant store each time but that is not a big deal. Very exciting…

At this time I am trying to figure out how to also make it run the sword world client so that I can code/debug the client and the server at the same time. Anyone done this that could help me out???

I really appreciate the support.

Just run the swordworld client from Eclipse… in Eclipse, specify the project and main class where SwordWorldClient.java lives, and the working directory. You may want to change the code so it points to a hardcoded discovery.xml location, then you won’t have to supply any arguments.

hi i actually do not understand how to set up this paragraph

Create a new run configuration for the SGS. Enter your project as the project of the run configuration, and enter the class “com.sun.gi.SGS” as the main class (you have to check the checkbox “include libraries when searching for a main class” to choose this). Then go to the “arguments” tab and enter -I file:SGS-apps.conf under “program arguments”.

thank you

In eclipse, pul down the Run combo box and chose RunAs

When the dialogue comes up, either click the “new” icon at the top (the peice of paper with a plus sign next to it) and tell it you want a Java Application run configuration type OR just double click on the “java Application” categor header in the tree on the left side of the dialogue.

In either case the right side will chnage to the new Java run configuration where you do what that paragraph says.

You might want to post further questions like this in “Newless CLubies” for faster response as theya rent really SGS specific but general “how do I write Java code” questions.

oh right thanks!