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!

[Tut]Compiling with Eclipse [OdinMS]

Elite Diviner
Joined
May 25, 2008
Messages
454
Reaction score
0
Note: Before you download the followings, please make sure that you have WinZip, which can be dowload from here:

Why Eclpise?
Eclipse is easier to compile compared to NetBeans. It will not give you any symbol error, as it is in NetBeans. Also, Eclipse will also provide you with the solution and recommendation of what to do if you have any error when compiling. Eclpise is the best compiler for novice to start off with Java projects as the control panels are simple and easy-to-understand.


How to use Eclipse?
1. Go to

2. Click on the Download tab, and you can either download:
- Eclipse IDE for Java Developers (85 MB) - If you want to safe space.
- Eclipse Classic 3.4 (151 MB) - What I recommend the most, because this includes the plug-in etc.
- Eclipse IDE for Java EE Developers (163 MB) - Better, you can create web page that includes Java with this.

3. Wait for the download.

4. Extract the WinZip folder to your selected destination. I extract it to my C deive ->Programn files and Eclipse.

5. Run your Eclipse, and select a destination for your workspace. This does not really matter unless you are creating your own java programms.

6. On the selection tab, click file>New>Java Project.

7. Choose "Create project from existing source."

8. Give it a name (eg: OdinMS) In the "Directory", browse for your "scr" file (eg: C:\Documents and Settings\Xeylus\Desktop\Repack 1000\src). Leave the rest as default and click NEXT.

9. Under the "Libraries" tab, click "Add External JARs" and then browse for your dist folder (eg: C:\Documents and Settings\Xeylus\Desktop\Repack 1000\dist) and add all the .jar files in the dist folder:

Files are: exttools.jar, mina-core.jar, mysql-connector-java-bin.jar, odinms.jar, slf4j-api.jar and slf4j-jdk14.jar

10. Click Finish.

11. TOODLES!

- COMPILING -​
There are two way of compiling. If you are not those kind of novice and understand what I mean, go to Method A, however, if you are a first time compiler, I suggest you to use Method B.

Method A

A1. After you have done editing, right click on the project (Project, not package! Eg. If you use my above project name, you should right click on OdinMS, and not net.sf.odinms.client etc.) and click Build Project.

A2. Right click on the project name again and click Export. Select Java>jar file

A3. Select the export destination (Where you .jar file want to land) and name the file odinms.jar

A4. Click Finish

A5. Go to your export destination and put the odinms.jar into your dist folder (Remove or overwrite the previous odinms.jar)

A6. Profits!


Method B - Novice Guide.

B1. Right click on project name ->select Java->JAR File and click next.

B2. Select the export destination (Where you .jar file want to land) and name the file odinms.jar and click NEXT.

B3. Check these boxes:
- Export class files with compile warnings
- Export class files with compile errors
- Build project if not automatically build

B4. Click FINISH.

B5. More profits? (For novice =D)

NOTE:

1. When deleting a project, remember to choose "Do not delete content" or else your scr file will also get deleted.

2. If you have "Library not found" error, you have either did not add in the external jars or you have added the .jar files which is different in the repacks or revisions you use for your "scr" file.

3. Warning is different from error. You still can compile and run your server if you have warnings, but you won't be able to run your server is there are errors. (Compiling will be fine.)


Should you have any questions, feel free to post here.

-Adding pics?
 
Elite Diviner
Joined
May 25, 2008
Messages
454
Reaction score
0
Re: [Guide]Compiling with Eclipse [OdinMS]

Having some prob wit pictures....
 
Initiate Mage
Joined
Jul 22, 2008
Messages
16
Reaction score
0
Re: [Guide]Compiling with Eclipse [OdinMS]

Auto fix any problem of my source file?
So nice~Nice release!
 
om nom nom.
Member
Joined
Nov 30, 2007
Messages
299
Reaction score
9
Re: [Guide]Compiling with Eclipse [OdinMS]

Quote:
Why Eclpise?

You might want to fix that up :p

Overall, its a good alternative to NetBeans.
 
om nom nom.
Member
Joined
Nov 30, 2007
Messages
299
Reaction score
9
Re: [Guide]Compiling with Eclipse [OdinMS]

You spelt it wrong.
Lol
 
Skilled Illusionist
Joined
May 22, 2008
Messages
380
Reaction score
0
Re: [Guide]Compiling with Eclipse [OdinMS]

thanks i love this guide
 
Initiate Mage
Joined
Jun 16, 2008
Messages
27
Reaction score
0
Re: [Guide]Compiling with Eclipse [OdinMS]

Wats the point of compiling your server? and how do you save your accounts from getting wiped? Because I wanna update my server to PCMaple 2.1.
 
Banned
Banned
Joined
Nov 19, 2007
Messages
39
Reaction score
0
Re: [Guide]Compiling with Eclipse [OdinMS]

I get a 1kb odinms.jar .. why is it!?
 
Initiate Mage
Joined
May 23, 2008
Messages
9
Reaction score
0
Re: [Guide]Compiling with Eclipse [OdinMS]

good job, thx !
 
Elite Diviner
Joined
Apr 24, 2008
Messages
416
Reaction score
2
Re: [Guide]Compiling with Eclipse [OdinMS]

n1 lah frantier i was lookin 4 it last time odinms forum have but now their comp tiO confiscate ler=.=
 
Junior Spellweaver
Joined
Jul 29, 2008
Messages
111
Reaction score
0
Re: [Guide]Compiling with Eclipse [OdinMS]

Nothing wrong....



lol...hope this helps you XD

I no this is kinda old but does eclipse like give off less errors than netbeans or something? cause I get a lot of symbol errors while compiling. I'll try anyway though.
 
Initiate Mage
Joined
Jul 2, 2008
Messages
8
Reaction score
0
Re: [Guide]Compiling with Eclipse [OdinMS]

is there anyway to fix the errors or warnings?
 
Initiate Mage
Joined
Jul 2, 2008
Messages
8
Reaction score
0
Re: [Guide]Compiling with Eclipse [OdinMS]

cuz my server has that seanpack v5.8 at the channel notice
 
Senior
Member
Joined
Feb 8, 2008
Messages
1,873
Reaction score
42
Re: [Guide]Compiling with Eclipse [OdinMS]

good guide, but i prefer netbeans by a long shot
 
Initiate Mage
Joined
Jul 2, 2008
Messages
8
Reaction score
0
Re: [Guide]Compiling with Eclipse [OdinMS]

netbeans? i cant put in src
 
Initiate Mage
Joined
Sep 28, 2008
Messages
4
Reaction score
0
Re: [Guide]Compiling with Eclipse [OdinMS]

i suggest to use eclipse instead of netbean's if your new with Java, since eclipse is easier to understand ;)
 
Xephizion Development
Member
Joined
Apr 19, 2008
Messages
906
Reaction score
31
Re: [Guide]Compiling with Eclipse [OdinMS]

i'll use that
my problem is the download lol
my server gets killed whem i dl something big o_o

well im not planning on editing the .java files..so w/e
 
Back
Top