Date: Mon, 27 Dec 2010 08:59:20 +0800 From: xinyou yan <yxy.716@gmail.com> To: freebsd-questions@freebsd.org Subject: java Message-ID: <AANLkTikVgZLmbHkEX9D_3mPLF80AzWodOKVzZg=PEupN@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
I have installed jdk Here is helloword.java class helloworld{ 2 public static void main(String[] args){ 3 System.out.println("hello world !"); 4 } 5 } $javac helloworld.java //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. Thanks
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikVgZLmbHkEX9D_3mPLF80AzWodOKVzZg=PEupN>