D
dave
(Forgive all caps... they are there to differentiate btw question and code)
THIS IS THE ERROR I KEEP GETTING. IT COMPILES BUT WHEN IT RUNS, THE
FOLLOWING POPS UP:
Exception in thread "main" java.lang.NoClassDefFoundError: PlayClip
THIS IS MY CODE:
import java.applet.*;
import java.io.*;
import java.net.*;
public class PlayClip {
public static void main(String args[]) throws Exception{
if(args.length == 0){
System.err.println("Specify file name to play");
System.exit(-1);
}
File file = new File(args[0]);
URL url = file.toURL();
AudioClip clip = Applet.newAudioClip(url);
clip.loop();
//Wait 30 seconds
Thread.sleep(30000);
System.exit(0);
}
}
THIS IS MY SYSTEM SETTINGS, ENVIR VAR"S ETC.
SET PATH=C:\j2sdk1.4.2_05\bin;
SET
CLASSPATH=C:\j2sdk1.4.2_05\bin;c:\jakarta-tomcat-5.0.25\common\lib\servlet-a
pi.jar
SET JAVA_HOME=C:\j2sdk1.4.2_05
SET TOMCAT_HOME=c:\jakarta-tomcat-5.0.25
SET CATALINA_HOME=c:\jakarta-tomcat-5.0.25
ANY IDEA WHY THIS IS HAPPENING? I CAN AND IN FACT ARE RUNNING AND COMPILING
SREVLETS TO TOMCAT...
THIS IS THE ERROR I KEEP GETTING. IT COMPILES BUT WHEN IT RUNS, THE
FOLLOWING POPS UP:
Exception in thread "main" java.lang.NoClassDefFoundError: PlayClip
THIS IS MY CODE:
import java.applet.*;
import java.io.*;
import java.net.*;
public class PlayClip {
public static void main(String args[]) throws Exception{
if(args.length == 0){
System.err.println("Specify file name to play");
System.exit(-1);
}
File file = new File(args[0]);
URL url = file.toURL();
AudioClip clip = Applet.newAudioClip(url);
clip.loop();
//Wait 30 seconds
Thread.sleep(30000);
System.exit(0);
}
}
THIS IS MY SYSTEM SETTINGS, ENVIR VAR"S ETC.
SET PATH=C:\j2sdk1.4.2_05\bin;
SET
CLASSPATH=C:\j2sdk1.4.2_05\bin;c:\jakarta-tomcat-5.0.25\common\lib\servlet-a
pi.jar
SET JAVA_HOME=C:\j2sdk1.4.2_05
SET TOMCAT_HOME=c:\jakarta-tomcat-5.0.25
SET CATALINA_HOME=c:\jakarta-tomcat-5.0.25
ANY IDEA WHY THIS IS HAPPENING? I CAN AND IN FACT ARE RUNNING AND COMPILING
SREVLETS TO TOMCAT...