Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

public method not visible

843785Aug 7 2008 — edited Aug 7 2008
I'm new to Java and am having trouble with a "method not visible" error when trying to use a package by another person (which works in its own context.) As far as I can tell all the relevant classes and methods should be public and accessible.

Here is the basic form of the code I'm trying to make use of:
package org.p2c2e.zag;

public final class Zag {
	public void start() {
           ...
	}
}
And here is my stripped down code. The z.start() line produces the error message "The method start() from the type Zag is not visible."
import org.p2c2e.zag.*;

public class BasicTest {
  public static boolean simpleOpen(File fi) {
     Zag z = new Zag(fi, iStart);
     z.start();
  }
}
The Zag class and the start() method within it are both public. Am I missing a general concept here or is something up with the rest of the code?

Thanks in advance,

--Aaron
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 4 2008
Added on Aug 7 2008
2 comments
110 views