Compile error (strange)

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
gameblond
Posts: 53
Joined: Wed Jun 23, 2010 11:56 am

Compile error (strange)

Post by gameblond »

Hello,

I can compile GF, Epilogue, freya on my pc without any problem but on H5 i got this errors:

I Have 2 GB ram on the first PC and 3 GB ram on the second pc i tried. (same error both)

Code: Select all

  [javac] The system is out of resources.    [javac] Consult the following stack trace for details.    [javac] java.lang.OutOfMemoryError: Java heap space    [javac]     at com.sun.tools.javac.util.Log.useSource(Log.java:211)    [javac]     at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:959)    [javac]     at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)    [javac]     at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758)    [javac]     at com.sun.tools.javac.comp.Enter.complete(Enter.java:451)    [javac]     at com.sun.tools.javac.comp.Enter.main(Enter.java:429)    [javac]     at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819)    [javac]     at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:353)    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:279)    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:270)    [javac]     at com.sun.tools.javac.Main.compile(Main.java:69)    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    [javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    [javac]     at java.lang.reflect.Method.invoke(Method.java:597)    [javac]     at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56)    [javac]     at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065)    [javac]     at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)    [javac]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)    [javac]     at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)    [javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    [javac]     at java.lang.reflect.Method.invoke(Method.java:597)    [javac]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)    [javac]     at org.apache.tools.ant.Task.perform(Task.java:348)    [javac]     at org.apache.tools.ant.Target.execute(Target.java:357)    [javac]     at org.apache.tools.ant.Target.performTasks(Target.java:385)    [javac]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)    [javac]     at org.apache.tools.ant.Project.executeTarget(Project.java:1306)    [javac]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)    [javac]     at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)    [javac]     at org.apache.tools.ant.Project.executeTargets(Project.java:1189) BUILD FAILED
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Compile error (strange)

Post by jurchiks »

Well, you need resources for mysql and client aswell, and yes, h5 uses more memory, though often wastefully.
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.
gameblond
Posts: 53
Joined: Wed Jun 23, 2010 11:56 am

Re: Compile error (strange)

Post by gameblond »

jurchiks wrote:Well, you need resources for mysql and client aswell, and yes, h5 uses more memory, though often wastefully.
Can i change any settings in order to fix it?

For example set custom Xmx Xms?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Compile error (strange)

Post by jurchiks »

Of course you can, just edit startGameServer.bat/sh
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.
gameblond
Posts: 53
Joined: Wed Jun 23, 2010 11:56 am

Re: Compile error (strange)

Post by gameblond »

I added into VM arguments -Xms512m -Xmx1024m

The system out of resources problem resolved but now build failed for another reason:


[javac] found : java.lang.Enum<capture#512 of ?>
[javac] required: gameserver.templates.item.L2WeaponType
[javac] return (L2WeaponType) super._type;
[javac] ^
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Compile error (strange)

Post by jurchiks »

Custom code?
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