Error when i try to compile

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
KadeL
Posts: 142
Joined: Sat Mar 15, 2008 11:04 pm
Location: Argentina
Contact:

Re: Error in eclipse

Post by KadeL »

SolidSnake wrote:Me too but it compile without problems don't worry
ok...

I use..
Eclipse IDE for Java Developers
and http://subclipse.tigris.org/update_1.6.x

now start the server in localhost and it works fine, no error :wink:
Sorry everyone for my very bad English, I speak Spanish
User avatar
ANTIKLAN
Posts: 7
Joined: Tue Jun 21, 2011 10:48 pm
Contact:

Problems with compile

Post by ANTIKLAN »

It was updated on July, 30th and assemblages beta in NetBeans 7.0 have ceased to be compiled gives out. Help please.

clean:
Deleting directory F:\NetBeansProjects\L2J_SERP\L2J_Server_BETA\build
verifyRequirements:
init:
Created dir: F:\NetBeansProjects\L2J_SERP\L2J_Server_BETA\build
Created dir: F:\NetBeansProjects\L2J_SERP\L2J_Server_BETA\build\classes
Created dir: F:\NetBeansProjects\L2J_SERP\L2J_Server_BETA\build\dist
Created dir: F:\NetBeansProjects\L2J_SERP\L2J_Server_BETA\build\dist\login
Created dir: F:\NetBeansProjects\L2J_SERP\L2J_Server_BETA\build\dist\gameserver
Created dir: F:\NetBeansProjects\L2J_SERP\L2J_Server_BETA\build\dist\tools
version:
F:\NetBeansProjects\L2J_SERP\L2J_Server_BETA\build.xml:285: Execute failed:
java.io.IOException: Cannot run program "svnversion" (in directory "F:\NetBeansProjects\L2J_SERP\L2J_Server_BETA"): CreateProcess error=2, Íå óäàåòñÿ íàéòè óêàçàííûé ôàéë
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:615)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154)
Caused by: java.io.IOException: CreateProcess error=2, Íå óäàåòñÿ íàéòè óêàçàííûé ôàéë
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:188)
at java.lang.ProcessImpl.start(ProcessImpl.java:132)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
... 22 more
ПОСТРОЕНИЕ ЗАВЕРШЕНО СО СБОЕМ (общее время: 0 секунд)

init:
version:
F:\NetBeansProjects\L2J_SERP\L2J_DataPack_BETA\build.xml:96: Execute failed:
java.io.IOException: Cannot run program "svnversion" (in directory "F:\NetBeansProjects\L2J_SERP\L2J_DataPack_BETA"): CreateProcess error=2, Íå óäàåòñÿ íàéòè óêàçàííûé ôàéë
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:615)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154)
Caused by: java.io.IOException: CreateProcess error=2, Íå óäàåòñÿ íàéòè óêàçàííûé ôàéë
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:188)
at java.lang.ProcessImpl.start(ProcessImpl.java:132)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
... 22 more
ПОСТРОЕНИЕ ЗАВЕРШЕНО СО СБОЕМ (общее время: 0 секунд)
Kane Hart
Posts: 16
Joined: Wed Oct 26, 2005 4:48 pm

Re: Problems with compile

Post by Kane Hart »

Can't help you there on netbeans on your language. But I can suggest if your using the trunk that it's now java 1.7 support needed.
MrPeterDrucker
Posts: 2
Joined: Sat Jul 30, 2011 4:28 pm

Re: Problems with compile

Post by MrPeterDrucker »

I can't help you. :? :? :?
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: Problems with compile

Post by tukune »

antiklan wrote:java.io.IOException: Cannot run program "svnversion" (in directory "F:\NetBeansProjects\L2J_SERP\L2J_Server_BETA"): CreateProcess error=2, Íå óäàåòñÿ íàéòè óêàçàííûé ôàéë
need install "SlikSVN"

see http://trac.l2jserver.com/wiki/Eclipse
User avatar
ANTIKLAN
Posts: 7
Joined: Tue Jun 21, 2011 10:48 pm
Contact:

Re: Problems with compile

Post by ANTIKLAN »

Simply at me the plug-in subversion in NetBeans is established and before transition on java 7 all worked well.

Tell and at present I can compile assemblage on java 6 or already wasn't present?
User avatar
ANTIKLAN
Posts: 7
Joined: Tue Jun 21, 2011 10:48 pm
Contact:

Re: Problems with compile

Post by ANTIKLAN »

Thanks all! Installation SlikSVN has helped!
playstation
Posts: 11
Joined: Tue Feb 23, 2010 9:20 pm

i can't compile :(

Post by playstation »

hello! i have a big problem with eclipse compile :(
plz help me! how can i make solve?

sorry bad english :((
------------------------------------------------------------------------------------------------------------------------------
Buildfile: C:\HighFiveProject\L2J_Server_BETA\build.xml
clean:
checkRequirements:
getChangelogDateVersion:

BUILD FAILED
C:\HighFiveProject\L2J_Server_BETA\build.xml:198: Execute failed: java.io.IOException: Cannot run program "svn": CreateProcess error=2, ??d?? Æ???; ?; ¼? ¾ø

Total time: 483 milliseconds
-----------------------------------------------------------------------------------------------------------------------------




If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: i can't compile :(

Post by MELERIX »

is because you forgot to install "subversion", read the guides: viewtopic.php?f=2&t=10719
charlie93
Posts: 12
Joined: Sat Sep 04, 2010 3:41 pm

[HELP]Problem with eclipse and java

Post by charlie93 »

I was using Eclipse 3.5.2 when i tried to make a CT 2.3 server and java 6 with no problems

Now i tried to make a Freya with same versions and of course i had problems with ant version and java.
I downloaded latest versions of eclipse(3.7) and java( 7 ) but i still take this message when i am trying to compile:

BUILD FAILED
C:\Workspace\L2J_Server\build.xml:141: Java 1.7 is required. But your version is Java 1.6 and probably JDK is not installed.

i installed java and fixed the Preferences of JREs to JDK 1.70 but nothing changed

if any details are missing plz inform me to put them in my post for your ease

Thank you in advance
SOLVED

new problem
the next line of build.xml

Code: Select all

<target name="getChangelogDateVersion" description="Get Changelog, Datem Version">        <exec dir="." executable="svn" outputproperty="l2j.changelog">            <arg value="log" />
gives me this error

BUILD FAILED
C:\Workspace\L2J_Server\build.xml:145: Execute failed: java.io.IOException: Cannot run program "svn": CreateProcess error=2, Äåí åßíáé äõíáôÞ ç åýñåóç ôïõ êáèïñéóìÝíïõ áñ÷åßïõ áðü ôï óýóôçìá
Last edited by charlie93 on Sat Sep 03, 2011 1:50 pm, edited 2 times in total.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Problem with eclipse and java

Post by jurchiks »

anything in branches apart from BETA does not use JDK7.
So yeah, nice problem - if you want to have 2 chronicles, you need to install 2 JDKs and 2 eclipses.
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.
charlie93
Posts: 12
Joined: Sat Sep 04, 2010 3:41 pm

Re: Problem with eclipse and java

Post by charlie93 »

thats something i forgot to mention.. I dont run 2 servers.. I deleted everything that had to do with the old server.!

Also my DP vers:8329
Server vers:4882
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Problem with eclipse and java

Post by Zoey76 »

jurchiks wrote:anything in branches apart from BETA does not use JDK7.
So yeah, nice problem - if you want to have 2 chronicles, you need to install 2 JDKs and 2 eclipses.
I can compile Interlude core and the rest of the new chronicles on eclipse 3.7.1 using JDK1.7.
Powered by Eclipse 4.30 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
Starter
Posts: 484
Joined: Sat Jan 23, 2010 4:42 pm

Re: Problem with eclipse and java

Post by Starter »

Zoey76 wrote:
jurchiks wrote:anything in branches apart from BETA does not use JDK7.
So yeah, nice problem - if you want to have 2 chronicles, you need to install 2 JDKs and 2 eclipses.
I can compile Interlude core and the rest of the new chronicles on eclipse 3.7.1 using JDK1.7.
eclipse 3.7.1? From where? oO
I have promises to keep and miles to go before I sleep.
User avatar
Nyaran
Posts: 254
Joined: Mon Apr 11, 2011 11:13 am
Location: Madrid, Spain
Contact:

Re: Problem with eclipse and java

Post by Nyaran »

You can download eclipse 3.7.1 form here
My English is bad, if you don't understand me, call Plim and she translates it xD
Image
Image
Post Reply