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???
Joined: Jun 13, 2000
What access modifier do you have on the Bean class. If it's default then it can't be accessed outside the package.
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???
Joined: Dec 06, 2000
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