[Tools] Compiling with NetBeans [Odin]

Joined
Nov 30, 2007
Messages
299
Reaction score
9
Post any bugs, problems, or issues HERE!
[ame=http://forum.ragezone.com/showthread.php?t=406087]Innovative's Guide Library![/ame]

Okay, in order to modify some commands and for example the scrolling header, you need to know how to compile your server files.

Downloads:
NetBeans IDE :

Download the "All" bundle.

Step One -
Open up NetBeans.
It might take a while, so be patient.

Step Two -
Once it has opened and finished initialising.
Go to:
File > New Project

Under "Categories" select "Java"
Under "Projects" select "Java Project with Existing Sources"
And press "Next"
Innovative - [Tools] Compiling with NetBeans [Odin] - RaGEZONE Forums


Have your project name as "odinms" as it cuts down troubles later on after compiling.
In the field "Project Folder" browse to your server files folder.
Press Next
Innovative - [Tools] Compiling with NetBeans [Odin] - RaGEZONE Forums


Click "Add" in the "Source Package Folders" section and locate your "src" directory within your server files.
Innovative - [Tools] Compiling with NetBeans [Odin] - RaGEZONE Forums


Press Finish

Step Three -
Now Build your project! [Press F11] Or go to:
Build > Build Main Project

Woah! 100 Errors!
Innovative - [Tools] Compiling with NetBeans [Odin] - RaGEZONE Forums


Not to worry - Keep reading.

Step Four -
Okay, you have you 100 errors, how are you going to fix it?
Right click "Libraries" in the Projects window and select "Add Jar/Folder"
Browse to your "dist" folder within your server files and add all the .jar's except for "odinms.jar"
Innovative - [Tools] Compiling with NetBeans [Odin] - RaGEZONE Forums


Step Five -
Now build it again, and your errors should have all gone away!
If you get warnings, dont worry about it.

Step Six -
After a successful build, navigate to your project folder and you should see a "dist" folder.
Inside should be "odinms.jar" copy this into your other "dist" folder deeper into your folder.
Innovative - [Tools] Compiling with NetBeans [Odin] - RaGEZONE Forums


That is how you compile with NetBeans!
 
Last edited by a moderator:
Re: [Guide] Compiling with NetBeans [Odin]

wow thx alot. it helps...

EDIT: when i choose my odinmsfile ... its says Cannot place the project in a project folder that already contains the "dist" folder..
 
Last edited:
Re: [Guide] Compiling with NetBeans [Odin]

make a new folder "Yourservername" then put the server files "odinms revblahblah" into it their should be no problem and when i compile with it and start server no one can connect besides me.
 
Re: [Guide] Compiling with NetBeans [Odin]

remember this is for odin only, what did you do please list the steps.
 
Re: [Guide] Compiling with NetBeans [Odin]

Can any1 help me if to patch can i use TortoiseSVN? or must use netbeans?
 
Re: [Guide] Compiling with NetBeans [Odin]

When I set it to "C:\Documents and Settings\Admin\Desktop\PhoenixOdin\OdinMS.Rev947"

I get "Project folder cannot be created."
 
Re: [Guide] Compiling with NetBeans [Odin]

i have a problem in step 2 when i browse and target my Odinms folder it sais Error because i already have Dist folder in there... what can i do?
 
Re: [Guide] Compiling with NetBeans [Odin]

i have a problem in step 2 when i browse and target my Odinms folder it sais Error because i already have Dist folder in there... what can i do?
i also have that problem it would be nice if any1 can answer
 
Re: [Guide] Compiling with NetBeans [Odin]

Hey Innovative ,
I need some helps.
May i know how do i make a npc which allows me to max all first to 4th jobs skills?
 
Re: [Guide] Compiling with NetBeans [Odin]

THX Nice guide.
Though havent expected to find such a guide at Rz
Fixed my logger factory compile error thx
 
Re: [Guide] Compiling with NetBeans [Odin]

When I start netbeans, in the categories, it doesn't show any files...
 
Re: [Guide] Compiling with NetBeans [Odin]

I'm sorry if its a stupid question but I know little of java. I can't find a "dist" folder let alone any .jar files.

Wait let me correct myself, I find a "dist" folder inside the server package, but the only .jar file their IS the odinms.jar file you specified to leave out.

Any help?

Thanks in advance!

-DA
 
Back