aspose file tools*
The moose likes Beginning Java and the fly likes What does Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What does "javac -d" mean when inputted into the command prompt?" Watch "What does "javac -d" mean when inputted into the command prompt?" New topic
Author

What does "javac -d" mean when inputted into the command prompt?

Ravaa Bal
Ranch Hand

Joined: Apr 15, 2009
Posts: 31
I'm currently using the instructions found at this website regarding Axis2 and Tomcat (http://codediaries.blogspot.com/2009/02/web-services-example-using-axis-2-and.html), but step 3 says the following:

Compile the code using,

..workspace\Axis2TomcatHelloWorld>javac -d web_bin web_src\*.java

With this I have two qestions.

1) What does javac -d mean? I've used 'javac' but the '-d' is new to me.

2) This doesn't compile for me, probably because I haven't set the java classpaths since I normally rely on Netbeans to do it for me. Would it be possible to execute the above command via Netbeans?

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39535
    
  27
Entering just "javac" at the command line without any parameters will cause it to print a list of all command line options along with explanations. More extensive Java tool documentation can be found at http://java.sun.com/javase/6/docs/technotes/tools/index.html


Ping & DNS - updated with new look and Ping home screen widget
Ravaa Bal
Ranch Hand

Joined: Apr 15, 2009
Posts: 31
Ah right, thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What does "javac -d" mean when inputted into the command prompt?
 
Similar Threads
Head First Java Ch. 2 Compile error
problem with jdk 1.5
Programming from the command line?
Why javac does not find this Java file?
Reading Chapter 10 to Grasp Chapter 1 public, protected, private mechanisms