This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Forte Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Forte Problem" Watch "Forte Problem" New topic

Forte Problem

Ernest Lee
Ranch Hand

Joined: Aug 20, 2001
Posts: 145
I am using Forte IDE to writing some JSP codes..and i found a very strange problem. I defined a package called and hava a class called UsersBean defined in the package.
but when i tried to refer to UsersBean in other class.. Forte keep saying class UsersBean not found in type declaration or import.
I have put import in the class which use UsersBean... also the Forte auto-complete show out UsersBean...... any suggestion???
Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
What access modifier do you have on the Bean class. If it's default then it can't be accessed outside the package.

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Ernest Lee
Ranch Hand

Joined: Aug 20, 2001
Posts: 145
It is declared public.
and the UsersBean is located at /app_name/classes/bean/com/xxx/
where the class (let's call it A) that uses the UsersBean located at /app_name/classes/.
and in class UsersBean, i have the statement:

and then in class A, I have imported the package
I have also set my classpath to include /app_name/classes/bean/com/xxx/....
any ideas???
Nasser Aboobaker
Ranch Hand

Joined: Dec 06, 2000
Posts: 104
Hi Lee,
I had a similar situation and what I did was that I have added that folder into the file system. (Mount file system). It compiled fine.
I dont know is that the right solution for this situation. I have posted several queries but no one was able to help.
I agree. Here's the link:
subject: Forte Problem
It's not a secret anymore!