Trying to run lobby server..

Trying to run lobby server..

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Trying to run lobby server..

Post by smoth »

V:\Strategy\Spring>"C:\Program Files (x86)\Java\jre6\bin\java.exe" TASServer -PO
RT 80
Exception in thread "main" java.lang.NoClassDefFoundError: TASServer
Caused by: java.lang.ClassNotFoundException: TASServer
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: TASServer. Program will exit.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Trying to run lobby server..

Post by aegis »

install python
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Trying to run lobby server..

Post by smoth »

are you serious?
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Trying to run lobby server..

Post by aegis »

User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Trying to run lobby server..

Post by smoth »

ok, extracted the files, how do I specify port and what is the command to run the server.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Trying to run lobby server..

Post by aegis »

windows or linux?

"server.py" runs the server, "server.py --help" gives you a list of options



"server.py -p 1234"
will probably set the port
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Trying to run lobby server..

Post by slogic »

You don't need python. Just execute:

Code: Select all

java -jar TASServer.jar
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Trying to run lobby server..

Post by Forboding Angel »

I believe smoth wants to run uberserver.

Btw aegis, just cause I'm curious... Does uberserver need py 2.6 or does it need 3.x?

On that note it seems that no one uses 3.x and I'm not familiar with python enough to know why.

Edit: NM I just needed to lurk moar - http://wiki.python.org/moin/Python2orPython3
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Trying to run lobby server..

Post by smoth »

I ran using uber server last night. costed me a bit while I waited on aegis, so it might be a good idea to have both uber server and the old server in the wiki also having a section explaining their usage.

doesn't matter I still got some testing games in last night at the lan party.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Trying to run lobby server..

Post by hoijui »

java -jar bla.jar is the standard way to start a java app from the command line. on Windows and Linux, you should be able to just double click the jar if Java is installed. TASServer is still maintained, it is not the old one. if i had server access, new TASServer would have been setup on the official server half a year ago maybe.
just had to be said once, after all the childish bashing by language fan-boys.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Trying to run lobby server..

Post by smoth »

what bashing? I don't see anything like that in this thread. were posts deleted?
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Trying to run lobby server..

Post by aegis »

I fixed the exe build script in the repo: http://aegis.eat-peet.net/uberserver.exe
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Trying to run lobby server..

Post by slogic »

hoijui wrote:java -jar bla.jar is the standard way to start a java app from the command line. on Windows and Linux, you should be able to just double click the jar if Java is installed.
This is how double click on .jar file behaves under Windows 7. Server is launched but no console is shown because java app was launched by "javaw", not "java". Even when i allowed to show console in Java Control Panel i saw no console. The only way to turn off this server for me is to kill the process from Task Manager.

Manual run is much practical for me cause i see useful console info and also can easily turn off server with Ctrl+C command.

Also smoth was trying to run the server manually bypassing custom params.

So, double click of .jar file is lame and not really useful under Windows until some registry tweaks are made.
Post Reply

Return to “Engine”