• 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

Trouble with builpath in Eclipse 3.1.2

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am having trouble getting Eclipse to recognize a package I have.

I have the class files for this package but no source code.
Since Eclipse wipes clean the output folder and replaces with newly compiled classes, it is recommended that a new class folder is created outside of the main output folder.( According to the help files) My guess then is to put this class folder on the buildpath. This does not seem to be working.

here is my folder structure

Overdrive
Overdrive/bin/com (my output folder)
Overdrive/jspsmart/upload/ (my added class folder)


I placed this folder,Overdrive/jspsmart/upload/, on the buildpath. But i still get "Import jspsmart cannot be resolved". Does it need to be in the 'bin' folder? Im stuck.

here is my import statement in my JSP page:


Can anyone please help me!
[ May 09, 2006: Message edited by: Caliph Herald ]
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How did you add the class folder?
 
Caliph Herald
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ilja,

I highlight the project -> right click -> properties-> java build path ->
libraries -> add class floder


i tried adding
Overdrive/jspsmart
and
Overdrive/jspsmart/upload

neither worked.
any ideas?
[ May 09, 2006: Message edited by: Caliph Herald ]
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Caliph,
Does it work if you try to import the package from a Java file in the same project as your JSP? Sometimes JSPs do things differently, so this will narrow down the problem to a classpath issue or a JSP issue.

If you can't import the package from a Java file, try putting the class files in a jar and referring to the jar.
 
I've never won anything before. Not even a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic