Page 1 of 1
Could not find mainclass....
Posted: Mon Jan 13, 2014 6:37 pm
by Ara
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision
6346:
L2JDP Revision
10125:
Heyhey everyone, maybe you guys can help me.
so, i've installed (&re-installed) everything, searched in google for tipps and tried myself, but everytime i want to start the new startLoginServer.bat it can't find the main class.
i'm using Eclipse 4.3 and i already updated all things (like svnkit and all these things)
hope someone can help me - Maybe it's just a little mistake in my settings because i never worked a lot with eclipse (i hope so) /:
Re: Could not find mainclass....
Posted: Mon Jan 13, 2014 9:29 pm
by Hyrelius
I suppose you are just trying to run "startLoginServer.bat" from console window and you already changed into your login directory, right?
That login directory is supposed to have "l2jlogin.jar" amongst other files. If that file is invalid for whatever reason, it might not be able to find the class, which contains the Main-method.
1. check your "l2jlogin.jar" file in server\login - if it's not there, you might have a problem
2. if it's not there, you must either create it (using build.xml of L2J_Server_BETA project) or check it out from e.g. a nightly build (or whatever revision works for you)
To compile it, you need to either set up ant separately, switch into console window (cmd.exe for example) and your L2J_Server_BETA directory and then run ant there (I don't remember the exact command line) or - which might be easier for you - create a workspace in Eclipse, import L2J_Server_BETA and L2J_DataPack_BETA into it and drag the build.xml into ant view. Then you just execute default ant target and it should create new files in L2J_Server_BETA\build folder. There you can find all the files you need. Your best bet would be to copy them over into appropriate folders of your server folder.
Re: Could not find mainclass....
Posted: Tue Jan 14, 2014 7:50 am
by Ara
right there is my problem, everything is in the Folder and the usual (already compiled version) of l2j server works perfectly.
But if i compile it by myself (build.xml->Run As->Ant) it has this error.
You can try with Teamviewer if u want >-<
Re: Could not find mainclass....
Posted: Tue Jan 14, 2014 11:38 am
by Nerimah
Hello, try to use only 32 bits version of all your development softwares: eclipse, Java, Java JDK, SVN client, ...
It worked for me
Re: Could not find mainclass....
Posted: Tue Jan 14, 2014 4:53 pm
by Ara
doesn't work :/
Re: Could not find mainclass....
Posted: Wed Jan 15, 2014 9:57 pm
by Hyrelius
I use 64 bit Java and Eclipse and it works.
Please post the exact error message and the log of when you build the L2J_Server_BETA.zip. Also if a l2jserver.jar is created, please go inside this file, into META-INF folder and post your MANIFEST.MF.
Mine looks like this:
Code: Select all
Manifest-Version: 1.0Ant-Version: Apache Ant 1.8.4Created-By: 1.7.0_25-b17 (Oracle Corporation)Built-By: HyreliusBuilt-Date: 15/01/2014 08:10Implementation-URL: http://www.l2jserver.com/Implementation-Version: 6337M
We have to track down the reason why it won't find the class.
Re: Could not find mainclass....
Posted: Wed Jan 15, 2014 11:02 pm
by xban1x
You got l2jlogin.jar there?
Re: Could not find mainclass....
Posted: Thu Jan 16, 2014 12:27 am
by UnAfraid
Just install svn client
Re: Could not find mainclass....
Posted: Thu Jan 16, 2014 12:17 pm
by jurchiks
UnAfraid wrote:Just install svn client
Why would not having an svn client installed create this error? If that really is the cause, it should be fixed on l2j side.
Re: Could not find mainclass....
Posted: Thu Jan 16, 2014 5:13 pm
by UnAfraid
jurchiks wrote:UnAfraid wrote:Just install svn client
Why would not having an svn client installed create this error? If that really is the cause, it should be fixed on l2j side.
Because when u don't have svn client installed eclipse's ant builder corrupt's meta-data with that message about missing svn client..
Re: Could not find mainclass....
Posted: Thu Jan 16, 2014 5:15 pm
by Zoey76
UnAfraid wrote:jurchiks wrote:UnAfraid wrote:Just install svn client
Why would not having an svn client installed create this error? If that really is the cause, it should be fixed on l2j side.
Because when u don't have svn client installed eclipse's ant builder corrupt's meta-data with that message about missing svn client..
That's only because we fetch logs, I think that should be removed.
Re: Could not find mainclass....
Posted: Thu Jan 16, 2014 5:48 pm
by UnAfraid
Zoey76 wrote:That's only because we fetch logs, I think that should be removed.
Actually no.. its not because of this..
its because of:
Code: Select all
<manifest> <attribute name="Built-By" value="${user.name}" /> <attribute name="Built-Date" value="${build.tstamp}" /> <attribute name="Implementation-URL" value="http://www.l2jserver.com/" /> <attribute name="Implementation-Version" value="${l2j.version}" /> <!-- THIS --></manifest>
Re: Could not find mainclass....
Posted: Thu Jan 16, 2014 6:03 pm
by Zoey76
UnAfraid wrote:Zoey76 wrote:That's only because we fetch logs, I think that should be removed.
Actually no.. its not because of this..
its because of:
Code: Select all
<manifest> <attribute name="Built-By" value="${user.name}" /> <attribute name="Built-Date" value="${build.tstamp}" /> <attribute name="Implementation-URL" value="http://www.l2jserver.com/" /> <attribute name="Implementation-Version" value="${l2j.version}" /> <!-- THIS --></manifest>
Well, logs require svn client to perform the ant task too.
Re: Could not find mainclass....
Posted: Sat Jan 18, 2014 1:28 pm
by tukune

build.xml
Code: Select all
- <exec dir="${basedir}" executable="svnversion" outputproperty="l2j.version">+ <exec dir="${basedir}" executable="svnversion" outputproperty="l2j.version" logError="true" failifexecutionfails="false">