Solved

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

Posted on 2003-11-18
5
208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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…

707 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