Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-27-2008, 08:35 AM   #1
LQ Newbie
Registered: May 2008
Posts: 3

Rep: Reputation: 0
Java error

Exception in thread "main" java.lang.NoClassDefFoundError
Caused by: java.lang.ClassNotFoundException
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
This is the error while i try to do anything with java... Whats the problem?
Old 05-27-2008, 10:05 AM   #2
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 131Reputation: 131
That looks as if your classpath has not been set. Details please?
Old 05-27-2008, 10:59 AM   #3
LQ Newbie
Registered: May 2008
Posts: 3

Original Poster
Rep: Reputation: 0
root@server [~]# java -version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
root@server [~]# which java
root@server [~]# which javac
root@server [~]# echo $JAVA_HOME
root@server [~]# echo $PATH
root@server [~]# echo $CLASSPATH
what can be wrong?
Old 05-27-2008, 01:51 PM   #4
LQ Newbie
Registered: May 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Now it works, i ran wrong command...

But if i do..

killall -9 java
javac *.java
java -Xmx2500m server
- thats in

Also... if i use command

sh ./

server will start... yay, server is online.. all is fine..
but if i close the SSH client, server will also disconnect... whys that?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Runtime.getRuntime().exec("cd") returns, error 2 in java tatarin Programming 4 03-28-2008 07:42 PM
Error in Java shankarbrnair Linux - Server 2 09-28-2007 01:14 AM
Java Error...I think mijohnst Solaris / OpenSolaris 4 01-12-2007 01:23 PM
Java-GTK glib-java-0.2.5 Error hikkerguy Linux - Software 2 07-19-2006 06:01 PM
Java error "Exception in thread "main" java.lang.StackOverflowError" nro Programming 1 09-04-2004 03:47 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration