lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] Path for "java"


From: Greg Chicares
Subject: [lmi] Path for "java"
Date: Wed, 15 May 2019 00:07:18 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

[I sent email containing this:

> [I've mangled these commands so that they don't
> get clobbered by "security" software--where I've written
> lowercase X Y and Z, substitute lowercase E X and E]:
>   dir /s java.xyz
> If that doesn't work, try:
>   where java.xyz

to a corporate address today, but their "security" software
mangled both commands beyond recognition, and I had to read
them over the telephone. If I didn't speak with you on the
telephone today, you can ignore this message.]

We use "java" only for Relax NG, and for that reason I'd like
to figure out how to find 'java.exe' from Cygwin--without
adding the whole 1393-character $PATH set by corporate IT.
Based on the result of this "dir" command on the target
machine (from which I've removed five directories specific
to a middleware company that doesn't "own" the language):

---------8<--------8<--------8<--------8<--------8<--------8<--------8<-------
C:\>dir /s java.exe
 Volume in drive C is [REDACTED]
 Volume Serial Number is [REDACTED]

 Directory of C:\Program Files (x86)\Common Files\Oracle\Java\javapath

2019-04-29  09:53 AM           192,376 java.exe
               1 File(s)        192,376 bytes

 Directory of C:\Program Files (x86)\Common 
Files\Oracle\Java\javapath_target_1634306390

2019-04-29  09:53 AM           192,376 java.exe
               1 File(s)        192,376 bytes

 Directory of C:\Program Files (x86)\Java\jre1.8.0_211\bin

2019-04-29  09:53 AM           192,376 java.exe
               1 File(s)        192,376 bytes
--------->8-------->8-------->8-------->8-------->8-------->8-------->8-------

...I speculate that this command:

PATH="C:/Program\ Files\ \(x86\)/Common\ Files/Oracle/Java/javapath" java 
-version

will do the expected thing in a cygwin terminal, so I've
added that string to the $PATH in commit 87c94d43. But it's
hard to guess whether I cygwin-ified that correctly, so
please read this message in the mailing list's html archives,
and copy and paste that command and let me know if it fails.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]