Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Where does the option -Djavax.net.debug=ssl save the log?

  1. #1
    Junior Member
    Join Date
    Dec 2021
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Where does the option -Djavax.net.debug=ssl save the log?

    I see the command line option -Djavax.net.debug=ssl. But I am not sure once it is specified as a command-line option, how to dump the log in a file. Is there a way to specify the log file path?

    Also, could anybody provide a minimal java program so that I can test -Djavax.net.debug=ssl?

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    On vacation
    Posts
    24,712
    Thanks
    57
    Thanked 2,678 Times in 2,628 Posts

    Default Re: Where does the option -Djavax.net.debug=ssl save the log?

    The doc for the -D option:
    -Dproperty=value
    Sets a system property value. The property variable is a string with no spaces that represents the name of the property. The value variable is a string that represents the value of the property. If value is a string with spaces, then enclose it in quotation marks (for example -Dfoo="foo bar").
    What program is that option used with? Does that program have any documentation?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Dec 2021
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Where does the option -Djavax.net.debug=ssl save the log?

    https://docs.oracle.com/javase/8/doc...ide.html#Debug

    You misunderstood my question. I am referring to `-Djavax.net.debug=ssl`, not just `-D...`.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    On vacation
    Posts
    24,712
    Thanks
    57
    Thanked 2,678 Times in 2,628 Posts

    Default Re: Where does the option -Djavax.net.debug=ssl save the log?

    The -D adds a value to the system properties. What does the program that is executing do with the property that is passed to it via the -D option?

    What does the doc at that link say?

    I have never used JSSE.

    Try asking the question on this forum: http://www.coderanch.com/forums
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 1
    Last Post: July 26th, 2013, 03:25 AM
  2. Replies: 10
    Last Post: April 21st, 2013, 09:28 AM
  3. How to save Image into a package by JButton save?
    By justyStepi in forum AWT / Java Swing
    Replies: 1
    Last Post: May 12th, 2012, 07:02 PM
  4. Pls help me to debug this code
    By coen1604 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 24th, 2011, 10:00 AM
  5. can someone help me debug plzz
    By andys in forum Object Oriented Programming
    Replies: 1
    Last Post: November 27th, 2010, 05:37 PM