Home » Developer & Programmer » JDeveloper, Java & XML » solution for Exception in thread "main" java.lang.NoClassDefFoundError
solution for Exception in thread "main" java.lang.NoClassDefFoundError [message #92276] Fri, 14 May 2004 06:59 Go to next message
BIndi
Messages: 4
Registered: March 2003
Junior Member
import java.io.*;
import java.lang.*;
 public class k extends Thread  {
 public static void main (String[[]] args) throws IOException, InterruptedException {
  String[[]] cmdArray = {"c:\wtk20\bin\emulator","-classpath audiodemo.jar", "-Xdescriptor:audiodemo.jad"};
  Process proc = Runtime.getRuntime().exec("a.bat");
  System.out.println("hello");
  Thread.currentThread().join();
 }
}

the above is my code n i m trying to run it but i m not able to do it successfully can u please send me the solution
my file is oc c:
and my jdk is as under C:j2sdk1.4.2_01bin
i have made a batch file on c:/
which is as underPATH=c;j2sdk1.4.2_01bin
set CLASSPATH=c;bindi
can u please reply as soon as possible

 
Re: solution for Exception in thread "main" java.lang.NoClassDefFoundError [message #92630 is a reply to message #92276] Thu, 28 October 2004 02:32 Go to previous message
rajesh
Messages: 173
Registered: November 1998
Senior Member
PATH=c:j2sdk1.4.2_01bin

change the semi colons to colons

and try
Previous Topic: Oracle installing problems
Next Topic: Solution to a problem
Goto Forum:
  


Current Time: Thu Mar 28 20:35:57 CDT 2024