Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2003-11-18
5
Medium Priority
?
213 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 750 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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses

636 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