• 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

How to create package for web app in Eclipse

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am creating a web application using a JSP and a java class, UtteranceInfo. The JSP creates a UtteranceInfo object and uses it. I am having trouble setting up the project in Eclipse. I created a new project making the project contents directory the root directory of my web application. Then I created a new package, utterance, that will contain the UtteranceInfo class. The compiled version of this class must reside in the WEB-INF/classes/utterance directory.
I am confused because when I create the package, the utterance folder is placed in the web application root directory and then also appears under the WEB-INF/classes directory. Initially, the compiled .class file appeared under the WEB-INF/classes directory. But then when I made changes to the UtteranceInfo.java file, I can not find the newly compiled .class file. I see the old .class file under WEB-INF/classes. When I delete the old .class file under WEB-INF/classes directory I can not see where the new .class file is getting created.
Can someone direct me to a place where I can find instructions on how to setup a project in Eclipse of this type? I have several books:
Tomcat the Definitive Guide
SCWCD Exam Study Kit
The Developer's Guide to Eclipse
I have also installed the Lomboz plugin which is handy for editting the jsp, but I don't understand how to utilize its full functionality. I am going to Microcenter tonight and will purchase any book you can recommend that would help me with this kind of setup.
Thank you for any assistance you can provide to me in setting up my work environment for this project!
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Strange. Don't the Lomboz tutorials discuss creating web applications? How about this tutorial?
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Robin Clark:
I am confused because when I create the package, the utterance folder is placed in the web application root directory and then also appears under the WEB-INF/classes directory.


Didn't you say that the project folder is your source-folder and that WEB-INF/classes is your class folder? Then it's of course correct that the package occurs in both - in the former for the .java files, in the latter for the .class files.
Am I missing something?
 
Robin Clark
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is exactly the type of information I was looking for. Thank you ever so much!
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're welcome! If only it were always that simple...
 
look! it's a bird! it's a plane! It's .... a teeny tiny ad
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic