java.lang.NoClassDefFoundError
I am using JBuilder3.0 I don't understand the
Project properties.
Do you have to use this option. If yes, what do
you put there. I tried the following...
open project properties
click on set
navigate to my source file (my main())
click on my source file
click ok
when I run it I get the following error.
java.lang.NoClassDefFoundError.classes\FirstTest
Exception in thread main.
here is my code
import javax.swing.*;
class FirstFrame extends JFrame
{
public FirstFrame()
{
setTitle("FirstFrame");
setSize(300, 200);
}
}
public class FirstTest
{
public static void main(String[] args)
{
JFrame frame = new FirstFrame();
frame.show();
}
}
[843 byte] By [
jeffroS] at [2007-9-26 19:24:27]

Hello dodi56,
There are several links on the java.sun.com site which describe how to setup your classpath in a command prompt environment. Take a look at the following link:
http://forum.java.sun.com/thread.jsp?forum=7&thread=215928
Hope this helps!
Ming
Devloper Technical Support
http://www.sun.com/developers/support
Hello jeffroS,
It seems like JBuilder3.0 uses the same CLASSPATH settings as the command line, or it can use if configured to do so. What you want to do is to find out where to set the CLASSPATH for JBuilder, and add the directory where your .class files are located. You should also check out the following link regarding JBuilder CLASSPATH setting:
http://www.borland.com/techpubs/jbuilder/jbuilder5/pg/commandlinetools.html
Hope this helps!
Ming
Devloper Technical Support
http://www.sun.com/developers/support