• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forte Problem

 
Ernest Lee
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What access modifier do you have on the Bean class. If it's default then it can't be accessed outside the package.
 
Ernest Lee
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic