Solved

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

Posted on 2003-11-18
5
205 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
diffSum example 4 53
expectj telnet failing 5 45
login form jsp example 2 39
JavaFX TableView not displaying correctly 3 62
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

820 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