Compile from Local files

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Feldan
Posts: 25
Joined: Thu Jul 28, 2005 2:54 am

Compile from Local files

Post by Feldan »

Hello all,

I need to know how to compile the L2J source files without downloading them from the svn. I already have the latest source from a friend but am having troubles to compile them locally without checking them out from the svn. Been a very longtime since i used eclipse :P
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: Compile from Local files

Post by SolidSnake »

There are two options:

Download nightlies
Download l2jserver svn with eclipse

I recommend the second because it's easy and give you all the codes :) You can tell us your eclipse problems !
Image
Feldan
Posts: 25
Joined: Thu Jul 28, 2005 2:54 am

Re: Compile from Local files

Post by Feldan »

I don't want nightlies and i don't want to download from the svn. I have the latest source but I need to compile it from local files not svn.
hope
Posts: 1160
Joined: Thu Aug 30, 2007 5:17 pm

Re: Compile from Local files

Post by hope »

only way to compile it is from eclipse connecting to the svn
Feldan
Posts: 25
Joined: Thu Jul 28, 2005 2:54 am

Re: Compile from Local files

Post by Feldan »

Kinda what i figured after hours of messing around so i created my own svn...what a pain in the ass :/
Akz
Posts: 13
Joined: Thu Mar 26, 2009 8:39 pm

Re: Compile from Local files

Post by Akz »

Just import the source in Eclipse and compile it.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Compile from Local files

Post by jurchiks »

what do you mean - compile from svn?
you can only compile the local copy, it doesn't need to be connected to the svn to do it...
just download it from svn and compile via build.xml
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
hope
Posts: 1160
Joined: Thu Aug 30, 2007 5:17 pm

Re: Compile from Local files

Post by hope »

jurchiks wrote:what do you mean - compile from svn?
you can only compile the local copy, it doesn't need to be connected to the svn to do it...
just download it from svn and compile via build.xml
What I meant just said it that way as it was late
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: Compile from Local files

Post by SolidSnake »

Guys stop spam, all know that:
If someone wants to download a pre-compiled server can use the nightlies
If wants to compile a server, he must download/checkout the svns with eclipse

Feldan if a friend gave you the files, do this:

Open your eclipse, click on Window -> Show View -> Package Explorer
Click right in Package Explorer's window -> New -> Java Project
Now don't 'use default location' and click on Browse, so search your l2jserver project folder

If you'll do this, you'll have your l2jserver project showed in eclipse

Change what do you want and compile it via build.xml, good luck

P.S. I hope I get your problem
Image
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Compile from Local files

Post by jurchiks »

he can just import it - File>Import >general>existing projects into workspace
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: Compile from Local files

Post by SolidSnake »

For me don't work because eclipse don't see the folder as an existing project
Image
Feldan
Posts: 25
Joined: Thu Jul 28, 2005 2:54 am

Re: Compile from Local files

Post by Feldan »

Thank You Solid Snake that solved it for me :)
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Compile from Local files

Post by jurchiks »

l2j's svn contains .project file, so smth must be missing in your end if it doesn't find it.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: Compile from Local files

Post by SolidSnake »

In fact this is the problem jurchiks :D Feldan received the files by a friend, so he didn't have the .project file

Anyway this topic can be closed
Image
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Compile from Local files

Post by jurchiks »

actually he didn't say anything about failing to import it/missing .project file...
but yeah, problem solved - lock
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Post Reply