PDA

View Full Version : Help me with my java error ?



heylol
June 19th, 2010, 04:53
Okay, So I've been running my server on all day, and I just downloaded this new source, and I Open run server and it gives me this error "Exception in thread "main" java.lang.noclassdeffoundError:Server
And it says all this thread stuff blahblahblah

Could not find the main class: server program will now exit
Ping request could not find host 127.0.0.1:43594 Please check the name and try again.

Okay can you guys help me?
Oh and I cant run my older source it says the same thing

I appreciate all help guys

Sunni
June 19th, 2010, 04:58
You configured something wrong.

heylol
June 19th, 2010, 05:03
@echo off
cd Source/Bin
title Run Server
java server
ping 127.0.0.1/43594
pause
That's the run.
It doesn't work whenever I try to run my other servers, which have been working perfectly all day. :s

Sunni
June 19th, 2010, 05:05
I don't care about that I want to know the error your getting.By what you posted above it sounds like you configured something wrong in the shops, but now your telling me this runs on nothing which makes me think your need some type of path modifications.

heylol
June 19th, 2010, 05:12
Heres the error Exception in thread "main" java.lang.noClassDefFoundError: server caused by: java.lang ClassNotFoundException:server
at java.net.URLclassloader$1.run<Unknown source>
At java.security.AcessControler.doPrivileged<Native method>
at java.net.UrlClassloader.Loadclass<Unknown source>
At sun.misc.launcher$AppclassLoader.loadclass<Unknown source>
Could not find the main class: server program will now exit
Ping request could not find host 127.0.0.1:43594 Please check the name and try again.
press any key to continue,,

Nathan'
June 19th, 2010, 05:14
Enviromental variables, Only the registered members can see the link. follow that guide

heylol
June 19th, 2010, 05:22
Same error. :l

Divine
June 19th, 2010, 05:23
What was the last thing you were doing?

heylol
June 19th, 2010, 05:25
I was on my server talking to my bud waiting for him to download the new client for the source, then whenever he was finished I exited out of the command prompt that was hosting the server and switched to the source but it gave me that error and started doing it for the other one too. It's weird as heck.

heylol
June 19th, 2010, 05:25
Also this is the source I was going to use and Edit - Only the registered members can see the link.

Sunni
June 19th, 2010, 05:26
Some configuration is wrong some where.

heylol
June 19th, 2010, 05:28
But what caused it to stop working for my other sources? I don't understand. It was working perfectly lol

Divine
June 19th, 2010, 05:28
Some configuration is wrong some where.

I think it has to be something with the new source.. If we read the last part of the error it talks about the ping from what I'm guessing is his IP. It may have done something without his knowlage :/

Sunni
June 19th, 2010, 05:30
I think it has to be something with the new source.. If we read the last part of the error it talks about the ping from what I'm guessing is his IP. It may have done something without his knowlage :/

Mhm, I see.I have a question have you used the run with the other sources?I may suggest resetting your connection information.

Nathan'
June 19th, 2010, 05:31
Dont advertise other forums please, Maybe its your java version. Try downloading the latest java. I use java jdk1.6.0_17 and everything works

heylol
June 19th, 2010, 05:32
What do you mean? Like reset my internet?

heylol
June 19th, 2010, 05:33
And no, It's not my java version. If you had read my first post everything was working perfectly until I downloaded this one source

Sunni
June 19th, 2010, 05:34
Shut down your local area connection down meaning disable then connect it back after 20 seconds.Also the up to date JDK version is 20.

heylol
June 19th, 2010, 05:34
I'll try it

heylol
June 19th, 2010, 05:37
I have JDK 18, I'll try dling 20.