BookApp returns error
Hi,
In chapter 7 there is an example of a Java-Application "BookApp". When I compiled the code, and wanted to run it I got the error :
"Exception in thread "main" java.lang.NoClassDefFoundError : BookApp
My code looks like :
public class BookApp{
private String title;
public String getTitle(){
return title;
}
public void setTitle(String title){
this.title = title;
}
public static void main (String[] args){
BookApp myBook = new BookApp();
myBook.setTitle("Beginning JSP Web-Development");
System.out.println(myBook.getTitle());
}
}
Java-code and compiled class are in the directory \com\wrox\library.
|