Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse Classpath

 
Guruprasad Kateel
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In eclipse, is there a facility to place the compiled classes outside the Project folder?
Thanks in advance,
Guru
 
Robert McGovern
Author
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In eclipse, is there a facility to place the compiled classes outside the Project folder?
Guru

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.
****WORD OF WARNING****
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.
HTHs
Rob
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic