File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse Classpath 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 "Eclipse Classpath" Watch "Eclipse Classpath" New topic

Eclipse Classpath

Guruprasad Kateel

Joined: Jul 10, 2003
Posts: 16
In eclipse, is there a facility to place the compiled classes outside the Project folder?
Thanks in advance,
Robert McGovern

Joined: Jul 08, 2003
Posts: 8
In eclipse, is there a facility to place the compiled classes outside the Project folder?

Yes but its a little awkward.
You need to add a new directory to your project, which is linked to your desired location. Then you edit the project properties and specify the source output location to be the directory created above.
Right Click On Project
Select New -> Folder
Type in a Folder name
Select the Advanced >> button
Check "Link to folder in file system"
Select Browse and navigate to desired location.
Select Finish.
Right Click on Project.
Select Properties.
Select Java Build Path from left hand pane
Select the Source tab
Check the "Allow output folders for source folder" field.
Select "Output Folder: "
Select Edit
Select "Specific output folder (path relative to <project name>)
Select Browse and choose your newly created directory
Select OK
Select OK
Select OK
Thats it.
Don't have anything else in that directory it will get deleted by default! (I got bitten by this the first time)
Your other option would be to use ANT and specify a task to copy it to your desired location.

Co-author of <a href="" target="_blank" rel="nofollow">Eclipse In Action</a>
I agree. Here's the link:
subject: Eclipse Classpath
It's not a secret anymore!