Page 1 of 3

Can't compile Freya Core

Posted: Sat Oct 09, 2010 10:33 am
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.

Re: Compilation error

Posted: Sat Oct 09, 2010 11:22 am
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.

Re: Compilation error

Posted: Sat Oct 09, 2010 11:38 am
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 ...

Re: Can't compile Freya Core

Posted: Sat Oct 09, 2010 9:13 pm
by MELERIX
why you use "project explorer" window ?

use "navigator" window like in the guides ;)

Re: Can't compile Freya Core

Posted: Sat Oct 09, 2010 10:14 pm
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.

Re: Can't compile Freya Core

Posted: Sat Oct 09, 2010 10:23 pm
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.

Re: Can't compile Freya Core

Posted: Sun Oct 10, 2010 12:31 am
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

Re: Can't compile Freya Core

Posted: Sun Oct 10, 2010 8:27 am
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 :/.

Re: Can't compile Freya Core

Posted: Sun Oct 10, 2010 10:46 am
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?

Re: Can't compile Freya Core

Posted: Sun Oct 10, 2010 10:52 am
by BlackD3ath
@BlackD3ath - are there any logs in error log?
Any error, .metadata/.log is empty.

Re: Can't compile Freya Core

Posted: Sun Oct 10, 2010 10:55 am
by jurchiks
I meant that tab next to Console in eclipse...

Re: Can't compile Freya Core

Posted: Sun Oct 10, 2010 10:59 am
by BlackD3ath
Image
I took this screen after compilation (but my build folder is empty).

Re: Can't compile Freya Core

Posted: Sun Oct 10, 2010 11:01 am
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?

Re: Can't compile Freya Core

Posted: Sun Oct 10, 2010 11:05 am
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.

Re: Can't compile Freya Core

Posted: Sun Oct 10, 2010 11:08 am
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.