<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 4/10/2015 11:57 AM, Martin Buchholz
wrote:<br>
</div>
<blockquote
cite="mid:CA+kOe08Kn_z-2uQpsoGH2vBPVKcB+sm5=0KSrh5LecHDDKaxqQ@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Apr 10, 2015 at 10:33 AM,
Kumar Srinivasan <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:kumar.x.srinivasan@oracle.com"
target="_blank">kumar.x.srinivasan@oracle.com</a>></span>
wrote:
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><span class="">
<blockquote type="cite">
<div dir="ltr">
<div>I don't get it. Either providing this
information (what "java program" is running -
main class and/or command line) is generally
useful or it is not. There's nothing
macosx-specific about it. Either provide a
clean blessed api (i.e. not an environment
variable) and have </div>
</div>
</blockquote>
<br>
</span> Are you equating environment variable to system
property ?</div>
</blockquote>
<div><br>
</div>
<div>The environment variable is particularly bad because it
is just a private communication mechanism, but one that is
even visible to subprocesses. A proper documented
supported public cross-platform API would be fine, and
that would include a system property.</div>
<div><br>
</div>
<div>I now see my jdk9 has a system property</div>
<div><br>
</div>
<div>sun.java.command=<name><br>
</div>
<div><br>
</div>
<div>Why can't AWT use that? <br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
It relates to the comment I have below, look at:<br>
<a class="moz-txt-link-freetext" href="http://hg.openjdk.java.net/jdk9/dev/jdk/file/84c5527f742b/src/java.base/share/native/libjli/java.c#l1412">http://hg.openjdk.java.net/jdk9/dev/jdk/file/84c5527f742b/src/java.base/share/native/libjli/java.c#l1412</a><br>
<br>
Kumar<br>
<br>
<blockquote
cite="mid:CA+kOe08Kn_z-2uQpsoGH2vBPVKcB+sm5=0KSrh5LecHDDKaxqQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div><br>
</div>
<div>(We could improve it by making it "official", i.e. move
it to the java.* namespace.)</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>