This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Forte Problem" Watch "Forte Problem" New topic
Author

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 bean.com.xxx 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 bean.com.xxx in the class which use UsersBean... also the Forte auto-complete show out UsersBean...... any suggestion???
Carl Trusiak
Sheriff

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:
package bean.com.UsersBean;

and then in class A, I have imported the package
import bean.com.*;
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.
Nasser
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Forte Problem
 
Similar Threads
exception
DynaValidatorActionForm and java.util.ArrayList
Newbie Forte JAR question.
exception
Will not compile with javax.servlet.jsp