The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

I have same JDK problem: Can't Find class "JFrame" on RedHat

Posted by Zack on November 15, 2001 at 4:27 AM

Did you ever figure out what the problem was? It is my understanding that the Java Swing classes are supposed to come with JDK. Why am I getting this error:

Can't Find class "JFrame"

> I am having strange problems with the jdk1.3.1 on redhat 7.1. I am following suns java tutorial and several of the examples don't compile when they should. They compile fine on my windows box but the linux one gives me some strange errors. (by the way, up untill now it was giving me no problems) The first source it didn't like was here. http://java.sun.com/docs/books/tutorial/java/javaOO/QandE/ProblemSolved.java
> The compiler tried to tell me that:
> problem.java:11: error:Cannot access field "timer" it is in an other package and not a class member [JLS 15.10]
> However this compiled fine on my windows box, and in accordance with java logic it should have compiled.
> In a later example the compiler could not find the class JFrame which should have come with the jdk.
> If anybody has had similar problems or knows of a solution I would bw extreamly greatful.

> Thanks for your time.





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us