• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem compiling in VJ++ 6

 
T Edge
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using the javabook package from the Wu book 'An intro to OOP with Java' to do some very basic programs manipulating a polynomial. I know the program works at uni but when I try and run it on VJ++ at home it gives me the errors:
Cannot find defintion for class 'javax.swing.JFrame'
Cannot find definition for class 'javax.swing.JDialog'
Ive setup the classpath to the package in the project properties, but do I need something else for it to run. Nothing else was necessary when compiling at uni. Heres the code for the program:

The javabook package is at http://www.mhhe.com/engcs/compsci/wu2/graphics/wu2java/common/source_code/javabook.zip

[ October 31, 2002: Message edited by: T Edge
[ October 31, 2002: Message edited by: T Edge ]
 
Ron Newman
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect the answer is going to be "Use a real Java compiler and JVM, not J++". Get one from http://java.sun.com/ .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!