• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • Last Modified:

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

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
amakalski
Asked:
amakalski
  • 4
1 Solution
 
CEHJCommented:
javac -d <output class dir> YourClass.java
0
 
CEHJCommented:
They shouldn't be in a bin directory. Put them in a classes directory:

javac -d classes YourClass.java
0
 
amakalskiAuthor Commented:
But how to do this within Netbeans IDE (not command line tool)?
0
 
CEHJCommented:
See "Setting the Target Directory for .class Files" at

http://www.netbeans.org/kb/using-netbeans/compiling.html#compiling_files
0
 
CEHJCommented:
:-)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now