Page 1 of 2

.63b2 Lan Server Error

Posted: 17 Sep 2005, 03:30
by LocalFiend
When I run any of the lan server batch files this is what pops up in the command prompt -
D:\CAVEDOG\TOTALA\TASpring\Server>REM press CTRL+C to stop server

D:\CAVEDOG\TOTALA\TASpring\Server>java TASServer -lan | tee TASServer.log
Exception in thread "main" java.lang.NoClassDefFoundError: TASServer

So anytime I use the client to connect to my local server it of course, doesn't work. Is this a problem with Java? I have the most recent version, followed the readme, and I'm out of ideas.
Any type of help or ideas are appreciated.
Thanks

Posted: 17 Sep 2005, 03:35
by smartie
I have this same error. PLEASE HELP!

Posted: 17 Sep 2005, 12:37
by TARevenger
Your missing a file

I had the same problem

I fixed it by having the previous version of the lan server and putting the missiog file from the old lan server in the new one.

try download this lan server http://www.fileuniverse.com/?p=showitem&ID=1308
try install this one, then extract the new one ontop, overwriting existing files

if that doesn't work I'll upload my TASpring lan server folder to my webspace/webpage

Posted: 17 Sep 2005, 20:37
by Archangel of Death
Well thats the info I needed. The file "ClientThread.class" is missing from the .151 zip. Put it in, problem fixed. Backwards compatible to at least .141, the earliest server version I have.

Posted: 17 Sep 2005, 22:25
by Betalord
Sorry, forgot to put ClientThread.class in the archive. It still works if you recompile it though. I added it to the zip now.

Posted: 17 Sep 2005, 22:50
by LocalFiend
Well, I downloaded the new zip and made sure that I had the ClientThread.class file, but I still get the same error. Is there some strange process I need to go through to get the Lobby to work? Or do I need to call an exorcist.

Posted: 17 Sep 2005, 23:00
by Betalord
It works fine for me, perhaps you made a shortcut to it and are running it from somewhere else? In that case the working dir may be different and it can't find TASServer.class or other files.
If that is not the case, try recompiling the server yourself (sources are included), just make sure you have java SDK 1.4.2 or newer. To recompile, type javac *.java in cmd.

Posted: 18 Sep 2005, 14:21
by smartie
It works now. Thank you very much :-)

Posted: 19 Sep 2005, 09:22
by LocalFiend
Even after I recompiled the server it wouldn't work. No shortcuts of any kind, it knows the proper working directory. I'm just gonna have to learn java and make my own server. Thanks for the help.

Posted: 19 Sep 2005, 10:10
by Betalord
LocalFriend, what's the problem this time? Same error message?

Posted: 19 Sep 2005, 23:49
by LocalFiend
Yep, same error message. I don't get it. I have all the files, the latest Java Sdk and, yah I checked everything I can think of. Perhaps it has something to do with my OS. Does any of this stuff work differently on XP Pro? Oh, and to apologize if I sounded sarcastic last message, I am thankful for the help, and I was serious about learning the Java stuff.

Posted: 20 Sep 2005, 04:59
by chillaaa
Hi all, it seems i am getting the same error that LocalFiend is having

Exception in thread "main" java.lang.NoClassDefFoundError: TASServer

I am running XP Pro with Java 1.5.0_04-b05 (latest j2se). I've done the exact same things as he has. except the recompile as i dont have an sdk version installed

Posted: 21 Sep 2005, 17:48
by Betalord
Do you have TASServer.class and TASServer$1.class in your dir?

Posted: 22 Sep 2005, 01:25
by LocalFiend
Aha, I do not have TASServer$1.class, but I do have the other. I thought the missing file was ClientThread.class. I went and got the other files from old versions. Is the new zip correccted - having all the files?

Posted: 22 Sep 2005, 01:51
by Betalord
Is the new zip correccted - having all the files?
Yes it is.

Posted: 24 Sep 2005, 02:13
by chillaaa
Betalord wrote:Do you have TASServer.class and TASServer$1.class in your dir?
Yes and still the same error

Posted: 24 Sep 2005, 06:19
by LocalFiend
I still have the same error as well, even though I now have all of the files.

Posted: 24 Sep 2005, 07:44
by chillaaa
I have also reinstalled java. I downloaded the java SDK 1.50_b05 and could not get it to recompile from cmd prompt

Posted: 24 Sep 2005, 11:15
by Betalord
if you get
Exception in thread "main" java.lang.NoClassDefFoundError: TASServer
then you obviously either don't have one of the .class files, or you are running it from a shortcut, or you are running it manually with "java TASServer.java" (which is wrong).
I can't remember of any other possible reason. Try recompiling the sources yourself (javac *.java).
I downloaded the java SDK 1.50_b05 and could not get it to recompile from cmd prompt
You can surely be more specific than that?

Posted: 25 Sep 2005, 02:25
by chillaaa
Betalord wrote:if you get
Exception in thread "main" java.lang.NoClassDefFoundError: TASServer
then you obviously either don't have one of the .class files, or you are running it from a shortcut, or you are running it manually with "java TASServer.java" (which is wrong).
I can't remember of any other possible reason. Try recompiling the sources yourself (javac *.java).
I downloaded the java SDK 1.50_b05 and could not get it to recompile from cmd prompt
You can surely be more specific than that?
To address the first point; no, i am running it from the batch file lanserver.bat and i do have both tasserver.class and tasserver$1.class in the directory (BTW i redownloaded the tasserver.zip file from FU yesterday and it doesnt even have the tasserver$1.class file in it i had to pull it from another server download).

Second point; sorry about that, im a computer tech so i should know better. When i type that command in the prompt it just says that javac is not a recognised command

Update: got it to recompile, received 14 errors; 12 of which are in the TASserver.java file and still the same error when i run lanserver.bat (which for the record i have always been trying to run).