xinyou yan yxy.716 at
Mon Dec 27 00:59:41 UTC 2010

I have installed jdk
Here is

 class helloworld{
  2     public static void main(String[] args){
  3         System.out.println("hello world !");
  4     }
  5 }

$javac     //No problem
$java   helloworld.class
  //Exception in thread "main" java.lang.NoClassDefFoundError:helloworld/class

$ java -version
Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02)
Diablo Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)

May be should reset ClassPath , add . to path?
I have no idea.


More information about the freebsd-questions mailing list