Results 1 to 4 of 4
  1. #1
    esolve is offline Member
    Join Date
    Mar 2015
    Posts
    56
    Rep Power
    0

    Default classes folder below WEB-INF are not visible in eclipse

    I created dynamic projects on eclipse and build SSH frame.

    if I export the project to .war file and unzip the war file, I see there is classes folder below the WEB-INF
    but on eclipse, I don't see a classes folder below WEB-INF, why? and since there are no classes folder and compiled class visible on Eclipse, why can the project run?

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,989
    Rep Power
    8

    Default Re: classes folder below WEB-INF are not visible in eclipse

    The standard for a web application says that classes need to be in WEB-INF/classes. Eclipse knows that, and during the build process, it will automatically put your classes in that directory.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: classes folder below WEB-INF are not visible in eclipse

    And it won't do it in the project's WEB-INF directory, as that would pollute the stuff you might want to stick in source control.
    It will either usually (I think) use a target directory to put everything that will end up in the war file.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: classes folder below WEB-INF are not visible in eclipse

    Quote Originally Posted by Tolls View Post
    It will either usually (I think) use a target directory to put everything that will end up in the war file.
    It depends on the project setup wizard really; but what is always true is that sources and binaries are kept completely isolated. For the exact details you go to the project properties and then to the build path. Under the source tab is configured what source directories the project has, and where the binaries will be generated.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Replies: 3
    Last Post: 03-27-2012, 09:27 AM
  2. Replies: 59
    Last Post: 05-22-2011, 08:37 AM
  3. Replies: 0
    Last Post: 10-28-2010, 12:46 PM
  4. How to Add Poratl Project Folder to Eclipse ?
    By gb.rashu in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 08-07-2010, 08:34 AM
  5. Replies: 0
    Last Post: 08-04-2008, 12:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •