Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javac -g command

 
Asanka Vithanage
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai ranchers

please can anybody expliain the use of
java -g method
 
Ankit Garg
Sheriff
Posts: 9510
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Asanka Vithanage
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9510
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
: (color) is a path separator in Linux just like ; (semicolon) in Windows. -g is not in the objectives I think...
 
dipankar Saha Roy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javac -g gives us all debugging info of .java file when it is compiled by javac -g command
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic