Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

javac -g options

843810Apr 20 2005 — edited Nov 27 2006
Sorry for the cross-posting. I hastiliy posted this to the Java Programming forum and then realized there's a dedicated Compiling forum that makes a lot more sense for this question...

I'm trying to get a web/Java-based management UI ready for a production run, and was investigating the various compilation options with javac. I'm guessing I should use -O to optimize, though I'm not sure exactly what optimizations result.

What's more difficult to determine is what debugging info I want to include (-g:lines,source,vars). I find that having line numbers is awfully helpful when trying to diagnose a problem using nothing but log files from the client's site, so I think I'll at least include the "lines" option. What about the other two? What exactly does it mean to include source and local variable information?

If anyone can point me to a resource that discusses this topic in depth, that would be great, too. I just haven't been able to find anything on the web along those lines.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 25 2006
Added on Apr 20 2005
4 comments
476 views