How to run the server with Eclipse without compiling ?

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
Barry42
Posts: 12
Joined: Thu May 09, 2013 5:22 am

Re: Can't debug server

Post by Barry42 »

Some one can tell me, where launch script is located? :?:
NosBit
L2j Veteran
L2j Veteran
Posts: 314
Joined: Mon Mar 11, 2013 4:19 pm

Re: Can't debug server

Post by NosBit »

here is my launch configuration create a file GameServer.launch and paste it inside
you have to edit the following line:
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="D:\L2J\game\"/>
and change the D:\L2J\game\ to your game directory where you have L2J installed.

Now you can just import it from Eclipse Menu -> Import -> Run/Debug -> Launch Configurations

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?><launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication"><listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"><listEntry value="/L2J_Server_BETA/java/com/l2jserver/gameserver/GameServer.java"/></listAttribute><listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"><listEntry value="1"/></listAttribute><listAttribute key="org.eclipse.jdt.launching.CLASSPATH"><listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?>&#13;&#10;<runtimeClasspathEntry containerPath="org.eclipse.jdt.launching.JRE_CONTAINER" javaProject="L2J_Server_BETA" path="1" type="4"/>&#13;&#10;"/><listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?>&#13;&#10;<runtimeClasspathEntry internalArchive="/L2J_Server_BETA/dist/libs/mysql-connector-java-5.1.23-bin.jar" path="3" type="2"/>&#13;&#10;"/><listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?>&#13;&#10;<runtimeClasspathEntry id="org.eclipse.jdt.launching.classpathentry.defaultClasspath">&#13;&#10;<memento exportedEntriesOnly="false" project="L2J_Server_BETA"/>&#13;&#10;</runtimeClasspathEntry>&#13;&#10;"/><listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?>&#13;&#10;<runtimeClasspathEntry internalArchive="/L2J_Server_BETA/build/dist/libs/java-engine-1.7.1.jar" path="3" type="2"/>&#13;&#10;"/></listAttribute><booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/><stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.l2jserver.gameserver.GameServer"/><stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="L2J_Server_BETA"/><stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx1024m"/><stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="D:\L2J\game\"/></launchConfiguration>
Image
Barry42
Posts: 12
Joined: Thu May 09, 2013 5:22 am

Re: Can't debug server

Post by Barry42 »

Thenks for help)) that problem solved, but now i've new problem... trying to solve...
Barry42
Posts: 12
Joined: Thu May 09, 2013 5:22 am

Re: Can't debug server

Post by Barry42 »

This is my next problem...

Code: Select all

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/tool/EclipseCompiler    at com.l2jserver.script.java.JavaCompiler.<init>(JavaCompiler.java:50)    at com.l2jserver.script.java.JavaScriptEngine.<init>(JavaScriptEngine.java:58)    at com.l2jserver.script.java.JavaScriptEngineFactory.getScriptEngine(JavaScriptEngineFactory.java:186)    at com.l2jserver.gameserver.scripting.L2ScriptEngineManager.<init>(L2ScriptEngineManager.java:97)    at com.l2jserver.gameserver.scripting.L2ScriptEngineManager$SingletonHolder.<clinit>(L2ScriptEngineManager.java:532)    at com.l2jserver.gameserver.scripting.L2ScriptEngineManager.getInstance(L2ScriptEngineManager.java:60)    at com.l2jserver.gameserver.GameServer.<init>(GameServer.java:201)    at com.l2jserver.gameserver.GameServer.main(GameServer.java:470)Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.tool.EclipseCompiler    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)    at java.security.AccessController.doPrivileged(Native Method)    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)    ... 8 more
Barry42
Posts: 12
Joined: Thu May 09, 2013 5:22 am

Re: Can't debug server

Post by Barry42 »

solved just add to ref of project L2J_Server http://svn.l2jserver.com/trunk/JavaEngine
Post Reply