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:

jdk1.3.1 on redhat 7.1

Posted by akibu on October 02, 2001 at 8:22 AM

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