File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Does Eclipse compiles java souce code? How should I compile again if i wish to do so. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Does Eclipse compiles java souce code? How should I compile again if i wish to do so." Watch "Does Eclipse compiles java souce code? How should I compile again if i wish to do so." New topic
Author

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

Mr Anil Kumar Pandey
Greenhorn

Joined: Sep 13, 2010
Posts: 29
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.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

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.


Regards, Rene Larsen
Dropbox Invite
Mr Anil Kumar Pandey
Greenhorn

Joined: Sep 13, 2010
Posts: 29
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

Joined: Oct 12, 2001
Posts: 1179

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")??
Srikanth Kumar
Ranch Hand

Joined: Jun 04, 2008
Posts: 36
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.


Srikanth Kumar
SCJP 5, SCWCD 5, SCDJWS 5
Mr Anil Kumar Pandey
Greenhorn

Joined: Sep 13, 2010
Posts: 29
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

Joined: Jun 04, 2008
Posts: 36
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

Joined: Sep 13, 2010
Posts: 29
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Does Eclipse compiles java souce code? How should I compile again if i wish to do so.
 
Similar Threads
ControllerServlet 404 error
chapter 10 question
tomcat + axis classpath
Tomcat Help!
Ant script src\src does not exist