File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes javac -g  command Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "javac -g  command" Watch "javac -g  command" New topic
Author

javac -g command

Asanka Vithanage
Ranch Hand

Joined: Oct 24, 2008
Posts: 59
hai ranchers

please can anybody expliain the use of
java -g method


SCJP 1.5 (94%)
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9303
    
  17

Asanka you have written javac in the heading and java in the content.

Anyway -g is an option of javac command. It is used for debugging. I don't know the details but I sure know that this is not a part of SCJP...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Asanka Vithanage
Ranch Hand

Joined: Oct 24, 2008
Posts: 59
thank you ankit for you'r reply

sorry for my mistake

i found this in kathhy sirra 1.5
book in page 761

i want to know what is happen after executing bellow command
i did this .but couldn,t understand actually what is happening

javac -classpath com:. -g Foo.java Bar.java
they didn,t explain it
i want to know
what the meanning of colon( and -g in above command
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9303
    
  17

: (color) is a path separator in Linux just like ; (semicolon) in Windows. -g is not in the objectives I think...
dipankar Saha Roy
Greenhorn

Joined: Jul 25, 2008
Posts: 2
javac -g gives us all debugging info of .java file when it is compiled by javac -g command
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: javac -g command