Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Have to direct class file to a different folder
Have to direct class file to a different folder [message #873930] Sat, 19 May 2012 13:59 Go to next message
Sam Bell is currently offline Sam BellFriend
Messages: 5
Registered: May 2012
Junior Member
I have a question about Eclipse class file destination directory, please.

When we compile from DOS command prompt using -d flag
javac myfile.java -d C:\my_classes
the class file will be saved to my_classes folder which can be
be completely different from the folder where the .java file is.

Is there a simple way to do this in Eclipse IDE, please

I tried to redirect from Project -> Properties -> Java Build Path -> Source folder
At the bottom of this source Tab, Browse button is allowing me use only sub-folder
within the workspace\project folder.
It is NOT letting me select a completely different folder (for example on a different
disk drive path such as E:\my_classes)

Thanks
Sam
Re: Have to direct class file to a different folder [message #874137 is a reply to message #873930] Sun, 20 May 2012 03:12 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 05/19/2012 08:59 AM, Sam Bell wrote:
> I have a question about Eclipse class file destination directory, please.
>
> When we compile from DOS command prompt using -d flag javac myfile.java
> -d C:\my_classes
> the class file will be saved to my_classes folder which can be be
> completely different from the folder where the .java file is.
>
> Is there a simple way to do this in Eclipse IDE, please
>
> I tried to redirect from Project -> Properties -> Java Build Path ->
> Source folder
> At the bottom of this source Tab, Browse button is allowing me use only
> sub-folder
> within the workspace\project folder. It is NOT letting me select a
> completely different folder (for example on a different disk drive path
> such as E:\my_classes)
>
> Thanks
> Sam
>
You can create a link to an external folder and then set that as the
output location
Re: Have to direct class file to a different folder [message #874324 is a reply to message #874137] Sun, 20 May 2012 14:57 Go to previous message
Sam Bell is currently offline Sam BellFriend
Messages: 5
Registered: May 2012
Junior Member
David,
Thanks for the link information. It worked.

Sam

[Updated on: Sun, 20 May 2012 14:57]

Report message to a moderator

Previous Topic:How to open an existing project
Next Topic:How to install pydev
Goto Forum:
  


Current Time: Fri Apr 19 07:16:28 GMT 2024

Powered by FUDForum. Page generated in 0.03271 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top