Can't compile Freya Core

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
BlackD3ath
Posts: 12
Joined: Fri Jun 25, 2010 5:02 pm

Can't compile Freya Core

Post by BlackD3ath »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number: 4420
L2JDP Revision Number: 7668

Hi, when I tryed to compile my freya core I got this error:

Image

PS: My DP compilation was successful.
Last edited by BlackD3ath on Sat Oct 09, 2010 12:04 pm, edited 1 time in total.
User avatar
RiZe
Posts: 122
Joined: Mon Mar 24, 2008 12:44 am
Location: Czech Republic
Contact:

Re: Compilation error

Post by RiZe »

I can't see any error but the Eclipse is rebuilding your workspace, it takes some time depending on your computer specs so wait a moment till the workspace is built and then compile the core again.
BlackD3ath
Posts: 12
Joined: Fri Jun 25, 2010 5:02 pm

Re: Compilation error

Post by BlackD3ath »

Image

It's normal ?

You said Eclipse is rebuilding my workspace but when I run Build.xml Terminate button in the console turn off after 5~10s ...
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Can't compile Freya Core

Post by MELERIX »

why you use "project explorer" window ?

use "navigator" window like in the guides ;)
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Can't compile Freya Core

Post by jurchiks »

bah, the view doesn't matter.
the problem is that he's enabled auto workspace build in Eclipse, every time he makes a change it compiles that java file. It takes a lot of time if he's just downloaded the project, but it's not permanent.
You can disable it here:
Window>Preferences>General>Workspace>uncheck "Build automatically"
it's not needed for l2j anyway since l2j compiles in it's own way using the ant buildfile.
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.
BlackD3ath
Posts: 12
Joined: Fri Jun 25, 2010 5:02 pm

Re: Can't compile Freya Core

Post by BlackD3ath »

I cleaned my workspace, i did a backup of all my other source files and deleted all in my workspace.

I did two checkouts (first picture), one for the DP and another for the Core, I compiled the DP successfully but when I tryed to compile the Core i got this ... (second and third pictures)

Fist:

Image

Second:

Image

And after 5s ...

Third:

Image

I have any errors in my logs

PS: I tried jurchiks's way but i have the same problem.
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Can't compile Freya Core

Post by MELERIX »

jurchiks wrote:You can disable it here:
Window>Preferences>General>Workspace>uncheck "Build automatically"
it's not needed for l2j anyway since l2j compiles in it's own way using the ant buildfile.
NO! you shouldn't disable that because is needed to build "workspace" properly.

and "ant build" have nothing to do with workspace, ant build is to compile project
BlackD3ath
Posts: 12
Joined: Fri Jun 25, 2010 5:02 pm

Re: Can't compile Freya Core

Post by BlackD3ath »

Build automatically is now enable but i can't always compile the freya core, someone can check if the SVN core is clean ? I did the same things between core and datapack but i could build only my datapack :/.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Can't compile Freya Core

Post by jurchiks »

MELERIX wrote:NO! you shouldn't disable that because is needed to build "workspace" properly.

and "ant build" have nothing to do with workspace, ant build is to compile project
Does l2j use the /bin folder (which, by the way, contains the compiled classes)? No. So why would I need it? It only takes a lot of time to build all the workspace because of 1 file change, I don't need that.
Google is full of texts like "build workspace freezes at 0%", and I've yet to find why is it better to leave it that way.

@BlackD3ath - are there any logs in error log?
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.
BlackD3ath
Posts: 12
Joined: Fri Jun 25, 2010 5:02 pm

Re: Can't compile Freya Core

Post by BlackD3ath »

@BlackD3ath - are there any logs in error log?
Any error, .metadata/.log is empty.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Can't compile Freya Core

Post by jurchiks »

I meant that tab next to Console in eclipse...
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.
BlackD3ath
Posts: 12
Joined: Fri Jun 25, 2010 5:02 pm

Re: Can't compile Freya Core

Post by BlackD3ath »

Image
I took this screen after compilation (but my build folder is empty).
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Can't compile Freya Core

Post by jurchiks »

eclipse builds in bin folder, ant compiles in build

So basically you right-click on build.xml and choose run as...>ant build and it just does nothing?
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.
BlackD3ath
Posts: 12
Joined: Fri Jun 25, 2010 5:02 pm

Re: Can't compile Freya Core

Post by BlackD3ath »

Yes I right-click on build.xml => run as => 1 Ant Build.
During 3~5s i can see Terminate button on the console like this screen:
Image
but it does nothing.

Last times i got the same problem and it was because there were some errors on java files.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Can't compile Freya Core

Post by jurchiks »

the terminate button doesn't matter.
You have clean eclipse? How long have you waited? I remember I sometimes had to wait ~30 sec to 1 minute for the build to start, don't remember why though.
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