Solved

how to put .class files into directory different than java source files

Posted on 2003-11-18
5
200 Views
Last Modified: 2010-03-31
I have \src directory where I keep source java files, when I compile them in Netbeans IDE the compiled .class files go to the same folder \src. How can I make them to go to \bin folder instead??
0
Comment
Question by:amakalski
  • 4
5 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 9775986
javac -d <output class dir> YourClass.java
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9775992
They shouldn't be in a bin directory. Put them in a classes directory:

javac -d classes YourClass.java
0
 

Author Comment

by:amakalski
ID: 9776019
But how to do this within Netbeans IDE (not command line tool)?
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 250 total points
ID: 9776037
See "Setting the Target Directory for .class Files" at

http://www.netbeans.org/kb/using-netbeans/compiling.html#compiling_files
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9779709
:-)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now