Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Tool]How to Compile With Netbeans [Detailed]

Experienced Elementalist
Joined
Jul 8, 2008
Messages
297
Reaction score
126
Yes, I noticed that this thread has been created before. But over and over again, all the newbies are asking "How do we compile?" And then we tell them to search.
And then they can't find one, because we only have one guide AFAIK on Ragezone.
Hopefully, with this guide, we can easily redirect them to "How to compile".

Before you guys go like "This guide is stupid, how hard is it to compile >< *troll*", I've checked a lot of help threads and a lot of them can be answered by "Compile." So this is dedicated to those that do not know how to compile. If you are here to flame, please leave.

Step One:
Obviously, you should download Netbeans.
Here is the direct link:

Now download and install. Make sure you already have Java JDK (see "How to make a Maplestory Private Server" guides, they will have a link.)

Now let's open it.
You should get a screen like this:

Cyclone999 - [Tool]How to Compile With Netbeans [Detailed] - RaGEZONE Forums


Step 2:
Create a New Project by clicking the orange + button on the top left.

Cyclone999 - [Tool]How to Compile With Netbeans [Detailed] - RaGEZONE Forums


Step 3:
Then, click "Java with Existing Sources", then click Next:

Cyclone999 - [Tool]How to Compile With Netbeans [Detailed] - RaGEZONE Forums


Then name your project. Feel free to change it to anything else, depending on your source. Some might use odinms, some might use shootsource, etc.

To find out, right click your world.bat file and click Edit. Then look at the jar files. One of them would be 'different', eg. bubbles.jar, odinms.jar, etc.

For this sake, since I will demonstrate with MoopleDEV, I will use MoopleDEV because that's what the dist file says.

Cyclone999 - [Tool]How to Compile With Netbeans [Detailed] - RaGEZONE Forums


Then click Next.

Step 4:

Click the Add Folder button under "Source Packages".
Cyclone999 - [Tool]How to Compile With Netbeans [Detailed] - RaGEZONE Forums


Step 5:

Go to your source folder, and to the 'src' folder.

Cyclone999 - [Tool]How to Compile With Netbeans [Detailed] - RaGEZONE Forums


Step 6:

Click Open, and then click the "Add Test Packages". Click your entire folder (dist, scripts, sqls, etc.)- If you get an error, just add scripts, the rest is useless to add anyways, technically.
Cyclone999 - [Tool]How to Compile With Netbeans [Detailed] - RaGEZONE Forums

When you are finished, it should look like this:

Cyclone999 - [Tool]How to Compile With Netbeans [Detailed] - RaGEZONE Forums

Now click Finish.
Step 7:

Now click the the + button next to your package on the top left and right-click "Libraries" and click "Add Jar"

Cyclone999 - [Tool]How to Compile With Netbeans [Detailed] - RaGEZONE Forums


Step 8:

Go to your source folder (in my case, MoopleDEV) and go into the `dist` folder.
Press Ctrl and click all the dist files you see there:

Cyclone999 - [Tool]How to Compile With Netbeans [Detailed] - RaGEZONE Forums


Then click Open.

Step 9:

Press F11 to build. Or press this button:

Cyclone999 - [Tool]How to Compile With Netbeans [Detailed] - RaGEZONE Forums


Step 10:

Now go to My Documents -> NetBeanProjects -> MoopleDEV.

Open the dist folder in it.
Inside should be a MoopleDEV.jar file. Copy it, and paste it into your SOURCE'S DIST FOLDER.

Cyclone999 - [Tool]How to Compile With Netbeans [Detailed] - RaGEZONE Forums


Now restart your bat files and you're done.
You must open Netbeans everytime you want to edit the source files. You DO NOT have to recreate a new project, just use the one you JUST made and click F8 after editing. :thumbup:

As stated before, flamers can get out of here.
This might be useless for some people, useful for others.

Thank me if I helped :p:

Credits to kevintjuh93 for MoopleDEV.
And me for writing the guide.
 
Last edited by a moderator:
Initiate Mage
Joined
Oct 30, 2010
Messages
4
Reaction score
0
Re: How to Compile With Netbeans [Detailed]

i get 100 error's xD
Help?

Im Using OdinTeh
 
Experienced Elementalist
Joined
Jul 8, 2008
Messages
297
Reaction score
126
Re: How to Compile With Netbeans [Detailed]

Do Step 7: Right click, Add Jars.
 
Initiate Mage
Joined
Jan 16, 2010
Messages
4
Reaction score
0
Re: How to Compile With Netbeans [Detailed]

I get an error:

1 error
C:\Users\Mark\Desktop\Maple JCE\Build\nbproject\build-impl.xml:528: The following error occurred while executing this line:
C:\Users\Mark\Desktop\Maple JCE\Build\nbproject\build-impl.xml:261: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 2 seconds)

Know what's happening?
 
Newbie Spellweaver
Joined
Nov 8, 2010
Messages
40
Reaction score
2
Re: How to Compile With Netbeans [Detailed]

I have a v75 server atm. Im making a v83 one on the same computer. When I compile for the v83 I get no changes, but when I compile for my v75, changes happen.

Why? Ive often heard of conflicting jars.
 
Experienced Elementalist
Joined
Jul 8, 2008
Messages
297
Reaction score
126
Re: How to Compile With Netbeans [Detailed]

C:\Users\Mark\Desktop\Maple JCE\Build\nbproject\build-impl.xml:528: The following error occurred while executing this line:
C:\Users\Mark\Desktop\Maple JCE\Build\nbproject\build-impl.xml:261: Compile failed; see the compiler error output for details.

I'm pretty sure there's a line between because "Compile failed" doesn't execute...

@MidnightMS

I'm not understanding your question fully.
You have a v75 server, and you're making a v83 one.
Make two different projects, it's easier to handle.
Then compile for the v83 and see what happens (your "new" project)

If that's not right, sorry, but I'm not fully understanding what you're asking.
 
Initiate Mage
Joined
Nov 17, 2009
Messages
3
Reaction score
0
help i get this

C:\Documents and Settings\Eric\Desktop\MoopleDEV\src\constants\ServerConstants.java:30: possible loss of precision
found : int
required: byte
public static final byte DROP_RATE = 2690;
C:\Documents and Settings\Eric\Desktop\MoopleDEV\src\constants\ServerConstants.java:32: possible loss of precision
found : int
required: byte
public static final byte QUEST_EXP_RATE = 2690;
C:\Documents and Settings\Eric\Desktop\MoopleDEV\src\constants\ServerConstants.java:33: possible loss of precision
found : int
required: byte
public static final byte QUEST_MESO_RATE = 2690;
C:\Documents and Settings\Eric\Desktop\MoopleDEV\src\client\MapleCharacterUtil.java:10: getIdByName(java.lang.String) in client.MapleCharacter cannot be applied to (java.lang.String,int)
return isNameLegal(name) && MapleCharacter.getIdByName(name, world) < 0;
C:\Documents and Settings\Eric\Desktop\MoopleDEV\src\constants\ServerConstants.java:28: possible loss of precision
found : int
required: byte
public static byte EXP_RATE = 2690;
C:\Documents and Settings\Eric\Desktop\MoopleDEV\src\constants\ServerConstants.java:29: possible loss of precision
found : int
required: byte
public static byte MESO_RATE = 2690;
C:\Documents and Settings\Eric\Desktop\MoopleDEV\src\constants\ServerConstants.java:31: possible loss of precision
found : int
required: byte
public static final byte BOSS_DROP_RATE = 2690;
Note: C:\Documents and Settings\Eric\Desktop\MoopleDEV\src\tools\MonsterDropCreator.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 errors
C:\Documents and Settings\Eric\My Documents\NetBeansProjects\Moopledev\nbproject\build-impl.xml:528: The following error occurred while executing this line:
C:\Documents and Settings\Eric\My Documents\NetBeansProjects\Moopledev\nbproject\build-impl.xml:261: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 1 second)
 
Newbie Spellweaver
Joined
Nov 8, 2010
Messages
40
Reaction score
2
Re: How to Compile With Netbeans [Detailed]

I'm pretty sure there's a line between because "Compile failed" doesn't execute...

@MidnightMS

I'm not understanding your question fully.
You have a v75 server, and you're making a v83 one.
Make two different projects, it's easier to handle.
Then compile for the v83 and see what happens (your "new" project)

If that's not right, sorry, but I'm not fully understanding what you're asking.

No, no. I'll clarify it :). I own a v75 server atm, and I wanted to make a v83, so I downloaded MoopleDEV. I put it in a separate project, called MoopleDEV. When I add any changes to the commands whatsoever, it is updated, yet when I create new commands, they are not updated. I cannot find a command definitions area.

EDIT::
@qwgesm

Change the word "byte" to "int"
 
Last edited:
Initiate Mage
Joined
Nov 17, 2009
Messages
3
Reaction score
0
@MidnightMS

i got this problm help

C:\Documents and Settings\Eric\My Documents\NetBeansProjects\Moopledev\build\built-jar.properties
Compiling 431 source files to C:\Documents and Settings\Eric\My Documents\NetBeansProjects\Moopledev\build\classes
C:\Documents and Settings\Eric\Desktop\MoopleDEV\src\client\MapleCharacterUtil.java:10: getIdByName(java.lang.String) in client.MapleCharacter cannot be applied to (java.lang.String,int)
return isNameLegal(name) && MapleCharacter.getIdByName(name, world) < 0;
Note: C:\Documents and Settings\Eric\Desktop\MoopleDEV\src\tools\MonsterDropCreator.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
C:\Documents and Settings\Eric\My Documents\NetBeansProjects\Moopledev\nbproject\build-impl.xml:521: The following error occurred while executing this line:
C:\Documents and Settings\Eric\My Documents\NetBeansProjects\Moopledev\nbproject\build-impl.xml:258: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 9 seconds)

post at my profile for the solution plz
 
Experienced Elementalist
Joined
Jul 8, 2008
Messages
297
Reaction score
126
I did this on my mom's laptop, hence the name.
 
Initiate Mage
Joined
Jan 19, 2011
Messages
3
Reaction score
0
Problem

Mmmk, so I did all of this stuff exactly how you explained it, but I always get this error...
Code:
init:
deps-jar:
Created dir: C:\Users\bob\Desktop\MSPS v83\MoopleDEV\build
Updating property file: C:\Users\bob\Desktop\MSPS v83\MoopleDEV\build\built-jar.properties
Created dir: C:\Users\bob\Desktop\MSPS v83\MoopleDEV\build\classes
Created dir: C:\Users\bob\Desktop\MSPS v83\MoopleDEV\build\empty
Compiling 443 source files to C:\Users\bob\Desktop\MSPS v83\MoopleDEV\build\classes
C:\Users\bob\Desktop\MSPS v83\Moople\MoopleDEV\src\net\mina\MaplePacketDecoder.java:31: net.mina.MaplePacketDecoder is not abstract and does not override abstract method doDecode(org.apache.mina.common.IoSession,org.apache.mina.common.ByteBuffer,org.apache.mina.filter.codec.ProtocolDecoderOutput) in org.apache.mina.filter.codec.CumulativeProtocolDecoder
public class MaplePacketDecoder extends CumulativeProtocolDecoder {
C:\Users\bob\Desktop\MSPS v83\Moople\MoopleDEV\src\net\mina\MaplePacketDecoder.java:38: method does not override or implement a method from a supertype
    @Override
C:\Users\bob\Desktop\MSPS v83\Moople\MoopleDEV\src\net\mina\MaplePacketEncoder.java:31: net.mina.MaplePacketEncoder is not abstract and does not override abstract method dispose(org.apache.mina.common.IoSession) in org.apache.mina.filter.codec.ProtocolEncoder
public class MaplePacketEncoder implements ProtocolEncoder {
C:\Users\bob\Desktop\MSPS v83\Moople\MoopleDEV\src\net\mina\MaplePacketEncoder.java:46: write(org.apache.mina.common.ByteBuffer) in org.apache.mina.filter.codec.ProtocolEncoderOutput cannot be applied to (org.apache.mina.core.buffer.IoBuffer)
                out.write(out_buffer);
C:\Users\bob\Desktop\MSPS v83\Moople\MoopleDEV\src\net\mina\MaplePacketEncoder.java:50: write(org.apache.mina.common.ByteBuffer) in org.apache.mina.filter.codec.ProtocolEncoderOutput cannot be applied to (org.apache.mina.core.buffer.IoBuffer)
            out.write(IoBuffer.wrap(((MaplePacket) message).getBytes()));
Note: C:\Users\bob\Desktop\MSPS v83\Moople\MoopleDEV\src\tools\MonsterDropCreator.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors
C:\Users\bob\Desktop\MSPS v83\MoopleDEV\nbproject\build-impl.xml:538: The following error occurred while executing this line:
C:\Users\bob\Desktop\MSPS v83\MoopleDEV\nbproject\build-impl.xml:265: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 11 seconds)
Here's my Server Constants file...
Code:
/*
	This file is part of the OdinMS Maple Story Server
    Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
		       Matthias Butz <matze@odinms.de>
		       Jan Christian Meyer <vimes@odinms.de>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as
    published by the Free Software Foundation version 3 as published by
    the Free Software Foundation. You may not use, modify or distribute
    this program under any other version of the GNU Affero General Public
    License.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
package constants;

public class ServerConstants {
    public static short VERSION = 83;
    public static String SERVERNAME = "MoopleDEV";
    // Rate Configuration
    public static byte EXP_RATE = 20;
    public static byte MESO_RATE = 15;
    public static final byte DROP_RATE = 5;
    public static final byte BOSS_DROP_RATE = 2;
    public static final byte QUEST_EXP_RATE = 4;
    public static final byte QUEST_MESO_RATE = 3;
    public static final boolean GMS_LIKE = true;
    // Login Configuration
    public static final byte FLAG = 3;
    public static final int CHANNEL_NUMBER = 2;
    public static final int CHANNEL_LOAD = 50;
    public static final String EVENT_MESSAGE = "";
    public static final long RANKING_INTERVAL = 3600000;
    public static final boolean ENABLE_PIN = true;
    public static final boolean ENABLE_PIC = true;
    // Channel Configuration
    public static String SERVER_MESSAGE = "";
    public static String RECOMMEND_MESSAGE = "";
    public static final String EVENTS = "automsg KerningPQ Boats Subway";
    // IP Configuration
    public static final String HOST = "localhost";
}

ALSO after changing that to
Code:
/*
	This file is part of the OdinMS Maple Story Server
    Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
		       Matthias Butz <matze@odinms.de>
		       Jan Christian Meyer <vimes@odinms.de>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as
    published by the Free Software Foundation version 3 as published by
    the Free Software Foundation. You may not use, modify or distribute
    this program under any other version of the GNU Affero General Public
    License.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
package constants;

public class ServerConstants {
    public static short VERSION = 83;
    public static String SERVERNAME = "MoopleDEV";
    // Rate Configuration
    public static int EXP_RATE = 1337;
    public static int MESO_RATE = 1337;
    public static final int DROP_RATE = 1337;
    public static final int BOSS_DROP_RATE = 1337;
    public static final int QUEST_EXP_RATE = 13337;
    public static final int QUEST_MESO_RATE = 1;
    public static final boolean GMS_LIKE = false;
    // Login Configuration
    public static final int FLAG = 3;
    public static final int CHANNEL_NUMBER = 2;
    public static final int CHANNEL_LOAD = 50;
    public static final String EVENT_MESSAGE = "test event message";
    public static final long RANKING_INTERVAL = 3600000;
    public static final boolean ENABLE_PIN = false;
    public static final boolean ENABLE_PIC = false;
    // Channel Configuration
    public static String SERVER_MESSAGE = "test server message";
    public static String RECOMMEND_MESSAGE = "test recommend message";
    public static final String EVENTS = "automsg KerningPQ Boats Subway";
    // IP Configuration
    public static final String HOST = "my.IP*.adr.es";

it says...
Code:
init:
deps-clean:
Updating property file: C:\Users\bob\Desktop\MSPS v83\MoopleDEV\build\built-clean.properties
Deleting directory C:\Users\bob\Desktop\MSPS v83\MoopleDEV\build
clean:
init:
deps-jar:
Created dir: C:\Users\bob\Desktop\MSPS v83\MoopleDEV\build
Updating property file: C:\Users\bob\Desktop\MSPS v83\MoopleDEV\build\built-jar.properties
Created dir: C:\Users\bob\Desktop\MSPS v83\MoopleDEV\build\classes
Created dir: C:\Users\bob\Desktop\MSPS v83\MoopleDEV\build\empty
Compiling 443 source files to C:\Users\bob\Desktop\MSPS v83\MoopleDEV\build\classes
C:\Users\bob\Desktop\MSPS v83\Moople\MoopleDEV\src\net\mina\MaplePacketDecoder.java:31: net.mina.MaplePacketDecoder is not abstract and does not override abstract method doDecode(org.apache.mina.common.IoSession,org.apache.mina.common.ByteBuffer,org.apache.mina.filter.codec.ProtocolDecoderOutput) in org.apache.mina.filter.codec.CumulativeProtocolDecoder
public class MaplePacketDecoder extends CumulativeProtocolDecoder {
C:\Users\bob\Desktop\MSPS v83\Moople\MoopleDEV\src\net\mina\MaplePacketDecoder.java:38: method does not override or implement a method from a supertype
    @Override
C:\Users\bob\Desktop\MSPS v83\Moople\MoopleDEV\src\net\mina\MaplePacketEncoder.java:31: net.mina.MaplePacketEncoder is not abstract and does not override abstract method dispose(org.apache.mina.common.IoSession) in org.apache.mina.filter.codec.ProtocolEncoder
public class MaplePacketEncoder implements ProtocolEncoder {
C:\Users\bob\Desktop\MSPS v83\Moople\MoopleDEV\src\net\mina\MaplePacketEncoder.java:46: write(org.apache.mina.common.ByteBuffer) in org.apache.mina.filter.codec.ProtocolEncoderOutput cannot be applied to (org.apache.mina.core.buffer.IoBuffer)
                out.write(out_buffer);
C:\Users\bob\Desktop\MSPS v83\Moople\MoopleDEV\src\net\mina\MaplePacketEncoder.java:50: write(org.apache.mina.common.ByteBuffer) in org.apache.mina.filter.codec.ProtocolEncoderOutput cannot be applied to (org.apache.mina.core.buffer.IoBuffer)
            out.write(IoBuffer.wrap(((MaplePacket) message).getBytes()));
Note: C:\Users\bob\Desktop\MSPS v83\Moople\MoopleDEV\src\tools\MonsterDropCreator.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors
C:\Users\bob\Desktop\MSPS v83\MoopleDEV\nbproject\build-impl.xml:538: The following error occurred while executing this line:
C:\Users\bob\Desktop\MSPS v83\MoopleDEV\nbproject\build-impl.xml:265: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 8 seconds)
The problem appears to be here ._.

^ tags wont work D:
EDIT: I've tried this again (for the billionth time) and it seems [B]all[/B] of the net related files (net, net.channel, net.login, and net.mina) have a little ! next to them.
Within those the files that have !'s are
net- MapleServerHandler
net.channel- ChannelServer
net.login- LoginServer
net.mina- MaplePacketDecoder and MaplePacketEncoder
*I haven't even started compiling yet.

If this is solvable please post a solution on this thread. (As I am a noob with vBulletin sites and how their PM system work & it would help other people)
Also ask for clarification on this thread (for the above reason)



[COLOR="Red"]
*spoilers because of lots of text (might be irrelevant to the subject)
*the 2 errors might be the same but it's too time consuming to make sure. Though, I do know that they are very similar.[/COLOR]
 
Last edited:
Initiate Mage
Joined
Jan 27, 2011
Messages
4
Reaction score
0
i Liked this tutorial its very well detailed and easy to follow :D
 
Back
Top