- Joined
- Nov 14, 2008
- Messages
- 1,025
- Reaction score
- 641
Since i quit maple development for game development, i switched to eclipse as it is more lightweight and used by professionals alot more than netbeans is and i thought i would share to the maple community how you can use eclipse too for maple development.
in this example, i am going to use moopledev has an example. You should be able to adapt it to any source though as the process is practically the same.
1 - Extract moople into a folder
2 - Assuming you have installed eclipse, make a new java project
3 - Give your project a name and untick use "Use default location" and press the browse button
4 - Navigate to the folder where you extracted your source and press Ok
5 - Don't touch anything else other than JRE (switch it to java 7 if needed (lithium etc))
6 - Press finish to create the project
7 - Right click on your newly created project and go to Run as > Run configurations...
8 - In the first tab, specify the main class to run (In moople's case, server.java)
9 - In the arguments tab next to the first tab, specify your JVM arguments from your default bat.
For moople:
10 - In the classpath tab, click on User entries, click the Add jars button, navigate to where your libs are located (Dist folder) and add each one of them. Press OK to confirm the jars.
11 - When you want to debug the server, press the button that looks like a bug. (What debugging mean is it will run the server like normal except when you make edits in the source while it is running and you save it, it will apply automatically in game. However, java hot swapping does not allow you to add new variables, methods etc without restarting the server, so you may only edit existing methods and such.
12 - If you wish to start the server normally without debugging, simply press the button right next to the debug button.
13 - simply open your client to get in-game!
--------
If you have any question regarding eclipse, just drop a post here.
in this example, i am going to use moopledev has an example. You should be able to adapt it to any source though as the process is practically the same.
1 - Extract moople into a folder
2 - Assuming you have installed eclipse, make a new java project
3 - Give your project a name and untick use "Use default location" and press the browse button
4 - Navigate to the folder where you extracted your source and press Ok
5 - Don't touch anything else other than JRE (switch it to java 7 if needed (lithium etc))
6 - Press finish to create the project
7 - Right click on your newly created project and go to Run as > Run configurations...
8 - In the first tab, specify the main class to run (In moople's case, server.java)
9 - In the arguments tab next to the first tab, specify your JVM arguments from your default bat.
For moople:
10 - In the classpath tab, click on User entries, click the Add jars button, navigate to where your libs are located (Dist folder) and add each one of them. Press OK to confirm the jars.
11 - When you want to debug the server, press the button that looks like a bug. (What debugging mean is it will run the server like normal except when you make edits in the source while it is running and you save it, it will apply automatically in game. However, java hot swapping does not allow you to add new variables, methods etc without restarting the server, so you may only edit existing methods and such.
12 - If you wish to start the server normally without debugging, simply press the button right next to the debug button.
13 - simply open your client to get in-game!
--------
If you have any question regarding eclipse, just drop a post here.
Last edited: