• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Forte Problem

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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???
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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???
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I'm thinking about a new battle cry. Maybe "Not in the face! Not in the face!" Any thoughts tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic