Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes IDEs, Version Control and other tools and the fly likes javac -d option in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "javac -d option in Eclipse" Watch "javac -d option in Eclipse" New topic

javac -d option in Eclipse

samir ware
Ranch Hand

Joined: Jul 27, 2005
Posts: 192
hi all,
I am using Eclipse 3.0 version and I want to make the use of the -d
option in javac . That is I want to shift my class file to a specific location . Can any one please tell me how can I use the javac -d option in Eclipse.
Any white paper any link will be appriciated
Thanks and regards
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15096

How are you running javac from Eclipse? Normally you don't need to do that, because Eclipse automatically compiles your source files in the background. You don't need to compile your sources manually.

You can right-click on your project, choose Properties in the pop-up menu en go to Java Build Path. There you can set the folders that contain source code and compiled classes for your project. (Note, this is for Eclipse 3.2; version 3.0 is already a few years old, but I guess it's more or less in the same place in 3.0).

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
samir ware
Ranch Hand

Joined: Jul 27, 2005
Posts: 192
Thanks a lot jesper ...
It was there at the same location you told.
Thank you once again
I agree. Here's the link:
subject: javac -d option in Eclipse
It's not a secret anymore!