• 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

Does Eclipse compiles java souce code? How should I compile again if i wish to do so.

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I used clean option from project menu to recompile the code again. but now when i see in \WebRoot\WEB-INF\classes directory through window explorer there are no .class files

and when i see it from within myeclipse 8.6, classes folder is missing from webroot folder
Please tell me how should i compile .java file if wish to do so.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you right click on the project, and choose "Properties->Java Build Path" and select the "Source" tab, you'll in "Default output folder" see where the compiled class will be. If you need them to be in "WebRoot\WEB-INF\classes" then you need to change the default path.
 
Mr Anil Kumar Pandey
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rene Larsen wrote:If you right click on the project, and choose "Properties->Java Build Path" and select the "Source" tab, you'll in "Default output folder" see where the compiled class will be. If you need them to be in "WebRoot\WEB-INF\classes" then you need to change the default path.




thanks very much sir, ............>

default foler is already WebRoot\WEB-INF\classes where i want .class files. what i have to do once again i mention.
: I need to recompile a source code UserLogin.java. What I did is that Project menu ->clean and now when i see in classes folder that is vacant.

Now as you told I checked the defalut output folder that is same where i wish .class files should be there.

What should i do sir.
 
Rene Larsen
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And your source files (.java) are included in "Source folders on build path" on the "Source" tab ??

or

Are the output folder defined inside the source folder setup (do you have a check mark in "Allow output folders for source folders")??
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. All source files should be under the project's source build path to compile.
2. set the output directory to WEB-INF/classes.
this should bring all the classes to this directory when the project is build.
 
Mr Anil Kumar Pandey
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Srikanth Kumar wrote:1. All source files should be under the project's source build path to compile.
2. set the output directory to WEB-INF/classes.
this should bring all the classes to this directory when the project is build.





thanks sir

The following two points are ok

1. All source files should be under the project's source build path to compile.
2. set the output directory to WEB-INF/classes.
this should bring all the classes to this directory when the project is build.


now next sir...................
 
Srikanth Kumar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try checking for these.
1. Make sure that there are no compilation errors.
2. While doing clean, check the "Start a build immediately" in the Clean dialog.
3. If not successful yet, try deleting the classes directory from the WEB-INF directory and do a clean build again.
 
Mr Anil Kumar Pandey
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Srikanth Kumar wrote:Try checking for these.
1. Make sure that there are no compilation errors.
2. While doing clean, check the "Start a build immediately" in the Clean dialog.
3. If not successful yet, try deleting the classes directory from the WEB-INF directory and do a clean build again.

:


rolleyes:


Dear sir ,
i m again redefining my original problem :

In location : F:\MrAKPandey\Again\QuestMaster\src\com\oncquest\action there is file UserLoginAction.java

Now In MyEclipse Ide 8.6 I make some changes in this file.
when this file accessed via a browser by some jsp pages the changes are not reflecting.

In IDE the source is : "QuestMaster/src"

Default output folder : "QuestMaster/WebRoot/WEB-INF/classes"

allow output folder for source folder is unchecked.

there is no error in the source code that is marked my red crossed symbol.

How should i proceed sir?
If i wish to compile from outside the IDE please tell?(how to set servlet path so that package javax.servlet.http.* may be taken)

Regards
Anil
 
reply
    Bookmark Topic Watch Topic
  • New Topic