Call for help with tools.jar locater algorithm.

classic Classic list List threaded Threaded
62 messages Options
1234
Reply | Threaded
Open this post in threaded view
|

Re: Call for help with tools.jar locater algorithm.

kenner

C:\Documents and Settings\keklein\My Documents\REXX\NetRexx\bin  Mon 09/26/2011 10:11
 > java envirotest
NetRexx Envirotest version 1.0
java.version: 1.6.0_18
java.home: C:\Program Files\Java\jdk1.6.0_18\jre
java.class.path: .;C:\Program Files\Java\jre6\lib\ext\tools.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2java.
zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLL
IB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\P
rogram Files\Java\jre6\lib\ext\QTJava.zip;C:\Documents and Settings\keklein\My Documents\REXX\NetRex
x\bin\Rexx2Nrx.jar;C:\Documents and Settings\keklein\My Documents\REXX\NetRexx\bin\NetRexxC.jar;C:\D
ocuments and Settings\keklein\My Documents\REXX\NetRexx\bin\
java.library.path: C:\Program Files\Java\jdk1.6.0_18\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system
32;C:\WINDOWS;.;C:\Documents and Settings\keklein\;C:\Documents and Settings\keklein\My Documents\RE
XX\NetRexx\bin;C:\Documents and Settings\keklein\My Documents\REXX\NrxRedBk\Redbook;C:\Program Files
\vim\vim73;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES
\REPL;C:\Program Files\IBM\GSK7\bin;C:\Program Files\IBM\GSK7\lib;C:\Program Files\IBM\ITM\bin;C:\Pr
ogram Files\IBM\ITM\bin\dll;C:\Program Files\IBM\ITM\InstallITM;C:\Program Files\IBM\ITM\TMAITM6;C:\
Program Files\IBM\Personal Communications\;C:\Program Files\IBM\Trace Facility\;C:\Program Files\Jav
a\jdk1.6.0_18\bin;C:\Program Files\QuickTime\QTSystem\;C:\program files\rmf\rmf spreadsheet reporter
\;C:\Program Files\Windows Imaging\;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;C:\Docum
ents and Settings\keklein\My Documents\apache-ant-1.8.2\bin
java.ext.dirs: C:\Program Files\Java\jdk1.6.0_18\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
os.name: Windows XP
os.arch: x86
os.version: 5.1
found:C:\Program Files\Java\jdk1.6.0_18\lib\tools.jar
found:C:\Program Files\Java\jdk1.6.0_18\lib\tools.jar


I'll run this on my mac when I have a chance at home.

Kenneth Klein
Systems Specialist



Kermit Kiser <[hidden email]>
Sent by: [hidden email]

09/21/2011 08:16 PM

Please respond to
IBM Netrexx <[hidden email]>

To
IBM Netrexx <[hidden email]>
cc
Subject
[Ibm-netrexx] Call for help with tools.jar locater algorithm.





Per a recent discussion with Bill, locating tools.jar or the equivalent
classes.jar for Mac is a common problem to IDE setups as well as the
requested NetRexx installer. As a first step toward creating a suitable
algorithm usable by installers for locating the Java compiler, I have
drafted a small Java environment scanner that will report any possible
locations it finds.

If you have time, please run this scanner on any Java system you have
available and post the output back to the list. I am particularly
interested in Mac output since I have no access to such systems. Also
any JDK locations the program misses. This program does NOT require that
NetRexx be installed to run it - just download the binary file and start
it with "java envirotest". Here is the binary class file link and the
source is below that:

http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.class


(Please pardon the odd property and method names - I seem to have been
in a whimsical mood when I wrote it. )

-- Kermit

options binary
class envirotest
--                                        This program written by Kermit
Kiser on 2011/09/21 is placed in the public domain.

properties static

     java_version=String
     java_home=String
     java_class_path=String
     java_library_path=String
     java_ext_dirs=String
     os_name=String
     os_arch=String
     os_version=String

    f=System.getProperty('file.separator')
    s=System.getProperty('path.separator')

 method main(sa=String[]) static

     System.out.println("NetRexx Envirotest version 1.0")

     badabing

     badaboom

 method badabing static

     java_version=System.getProperty("java.version")
     System.out.println("java.version:" System.getProperty("java.version"))

    java_home= System.getProperty("java.home")
     System.out.println("java.home:" System.getProperty("java.home"))

     java_class_path= System.getProperty("java.class.path")
     System.out.println("java.class.path:"
System.getProperty("java.class.path"))

    java_library_path= System.getProperty("java.library.path")
     System.out.println("java.library.path:"
System.getProperty("java.library.path"))

    java_ext_dirs= System.getProperty("java.ext.dirs")
     System.out.println("java.ext.dirs:"
System.getProperty("java.ext.dirs"))

    os_name= System.getProperty("os.name")
     System.out.println("os.name:" System.getProperty("os.name"))

    os_arch= System.getProperty("os.arch")
     System.out.println("os.arch:" System.getProperty("os.arch"))

    os_version= System.getProperty("os.version")
     System.out.println("os.version:" System.getProperty("os.version"))

method badaboom static

    -- check java.home for a copy of tools.jar
    bondukey(java_home)

    --    and up one directory to look for jdk dirs
    phone_home=File(java_home).getParent
    bondukey(phone_home)
    conlist=File(phone_home).list
    loop i=0 for conlist.length
        tf=File(phone_home||f||conlist[i])
        if tf.isDirectory then bondukey(tf.getPath)
        end

    --    check if tools.jar has been added to an extension directory
    e=java_ext_dirs
    loop for 9
        p=e.indexOf(s)
        if p>=0 then do
            p1=e.substring(0,p)
            e=e.substring(p+1)
            flambam(p1||f"tools.jar")
            end
        else do
            flambam(e||f"tools.jar")
            leave
            end
        end

method flambam(burnbom=String) static

    if File(burnbom).exists then System.out.println("found:"burnbom)

method bondukey(durphon=String) static

    flambam(durphon||f"tools.jar")
    flambam(durphon||f"lib"f"tools.jar")
    flambam(durphon||f"lib"f"ext"f"tools.jar")
    flambam(durphon||f"bundle"f"Classes"f"classes.jar")
    flambam(durphon||f"Classes"f"classes.jar")
    flambam(durphon||f"classes.jar")

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Call for help with tools.jar locater algorithm.

rvjansen
Kermit,

must have missed this thread until now - sorry for that.
On the Mac, there is no point in locating tools.jar - it is not there.
To locate the compiler that goes with the java version, you first locate
the java location with `/usr/libexec/java_home` - the backticks make
this return the java_home location.

So for example, in tcsh (note to Tom Maynard: Unix users use different
shells, not all use bash) you setup something like

setenv JAVA_HOME "`/usr/libexec/java_home`"

to get the root of the Java installation - if there is one (1) and it
follows apple conventions. Then you have to take off 'Home' as the last
qualifier, and add "Classes/classes.jar".

I found out that there is a stable set of symbolic links that makes:

/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar

work always for the latest version of the VM. The Mac, in the
(officially deprecated - but Lion still conforms) Apple layout can have
more VM levels available.

The mentioned string is in RxClasser.nrx, line 169 - the next line is
for Linux on Z, which also was quite a puzzle. For this system, you also
need vm.jar, in addition to the very long path to the class libraries. I
see now that there is also a superfluous line in there- we should
probably change this whole system for 3.02

best regards,

René.


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Call for help with tools.jar locater algorithm.

Kermit Kiser
In reply to this post by kenner
Thanks Kenneth. I forgot to mention that there is a newer version that scans more directories and looks for NetRexx components also. Here is the location:

Binary -
http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.class

Source -
http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.nrx

-- Kermit


On 9/26/2011 7:28 AM, [hidden email] wrote:

C:\Documents and Settings\keklein\My Documents\REXX\NetRexx\bin  Mon 09/26/2011 10:11
 > java envirotest
NetRexx Envirotest version 1.0
java.version: 1.6.0_18
java.home: C:\Program Files\Java\jdk1.6.0_18\jre
java.class.path: .;C:\Program Files\Java\jre6\lib\ext\tools.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2java.
zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLL
IB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\P
rogram Files\Java\jre6\lib\ext\QTJava.zip;C:\Documents and Settings\keklein\My Documents\REXX\NetRex
x\bin\Rexx2Nrx.jar;C:\Documents and Settings\keklein\My Documents\REXX\NetRexx\bin\NetRexxC.jar;C:\D
ocuments and Settings\keklein\My Documents\REXX\NetRexx\bin\
java.library.path: C:\Program Files\Java\jdk1.6.0_18\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system
32;C:\WINDOWS;.;C:\Documents and Settings\keklein\;C:\Documents and Settings\keklein\My Documents\RE
XX\NetRexx\bin;C:\Documents and Settings\keklein\My Documents\REXX\NrxRedBk\Redbook;C:\Program Files
\vim\vim73;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES
\REPL;C:\Program Files\IBM\GSK7\bin;C:\Program Files\IBM\GSK7\lib;C:\Program Files\IBM\ITM\bin;C:\Pr
ogram Files\IBM\ITM\bin\dll;C:\Program Files\IBM\ITM\InstallITM;C:\Program Files\IBM\ITM\TMAITM6;C:\
Program Files\IBM\Personal Communications\;C:\Program Files\IBM\Trace Facility\;C:\Program Files\Jav
a\jdk1.6.0_18\bin;C:\Program Files\QuickTime\QTSystem\;C:\program files\rmf\rmf spreadsheet reporter
\;C:\Program Files\Windows Imaging\;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;C:\Docum
ents and Settings\keklein\My Documents\apache-ant-1.8.2\bin
java.ext.dirs: C:\Program Files\Java\jdk1.6.0_18\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
os.name: Windows XP
os.arch: x86
os.version: 5.1
found:C:\Program Files\Java\jdk1.6.0_18\lib\tools.jar
found:C:\Program Files\Java\jdk1.6.0_18\lib\tools.jar


I'll run this on my mac when I have a chance at home.

Kenneth Klein
Systems Specialist



Kermit Kiser [hidden email]
Sent by: [hidden email]

09/21/2011 08:16 PM

Please respond to
IBM Netrexx [hidden email]

To
IBM Netrexx [hidden email]
cc

Subject
[Ibm-netrexx] Call for help with tools.jar locater algorithm.







Per a recent discussion with Bill, locating tools.jar or the equivalent
classes.jar for Mac is a common problem to IDE setups as well as the
requested NetRexx installer. As a first step toward creating a suitable
algorithm usable by installers for locating the Java compiler, I have
drafted a small Java environment scanner that will report any possible
locations it finds.

If you have time, please run this scanner on any Java system you have
available and post the output back to the list. I am particularly
interested in Mac output since I have no access to such systems. Also
any JDK locations the program misses. This program does NOT require that
NetRexx be installed to run it - just download the binary file and start
it with "java envirotest". Here is the binary class file link and the
source is below that:

http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.class


(Please pardon the odd property and method names - I seem to have been
in a whimsical mood when I wrote it. )

-- Kermit

options binary
class envirotest
--                                        This program written by Kermit
Kiser on 2011/09/21 is placed in the public domain.

properties static

     java_version=String
     java_home=String
     java_class_path=String
     java_library_path=String
     java_ext_dirs=String
     os_name=String
     os_arch=String
     os_version=String

    f=System.getProperty('file.separator')
    s=System.getProperty('path.separator')

 method main(sa=String[]) static

     System.out.println("NetRexx Envirotest version 1.0")

     badabing

     badaboom

 method badabing static

     java_version=System.getProperty("java.version")
     System.out.println("java.version:" System.getProperty("java.version"))

    java_home= System.getProperty("java.home")
     System.out.println("java.home:" System.getProperty("java.home"))

     java_class_path= System.getProperty("java.class.path")
     System.out.println("java.class.path:"
System.getProperty("java.class.path"))

    java_library_path= System.getProperty("java.library.path")
     System.out.println("java.library.path:"
System.getProperty("java.library.path"))

    java_ext_dirs= System.getProperty("java.ext.dirs")
     System.out.println("java.ext.dirs:"
System.getProperty("java.ext.dirs"))

    os_name= System.getProperty("os.name")
     System.out.println("os.name:" System.getProperty("os.name"))

    os_arch= System.getProperty("os.arch")
     System.out.println("os.arch:" System.getProperty("os.arch"))

    os_version= System.getProperty("os.version")
     System.out.println("os.version:" System.getProperty("os.version"))

method badaboom static

    -- check java.home for a copy of tools.jar
    bondukey(java_home)

    --    and up one directory to look for jdk dirs
    phone_home=File(java_home).getParent
    bondukey(phone_home)
    conlist=File(phone_home).list
    loop i=0 for conlist.length
        tf=File(phone_home||f||conlist[i])
        if tf.isDirectory then bondukey(tf.getPath)
        end

    --    check if tools.jar has been added to an extension directory
    e=java_ext_dirs
    loop for 9
        p=e.indexOf(s)
        if p>=0 then do
            p1=e.substring(0,p)
            e=e.substring(p+1)
            flambam(p1||f"tools.jar")
            end
        else do
            flambam(e||f"tools.jar")
            leave
            end
        end

method flambam(burnbom=String) static

    if File(burnbom).exists then System.out.println("found:"burnbom)

method bondukey(durphon=String) static

    flambam(durphon||f"tools.jar")
    flambam(durphon||f"lib"f"tools.jar")
    flambam(durphon||f"lib"f"ext"f"tools.jar")
    flambam(durphon||f"bundle"f"Classes"f"classes.jar")
    flambam(durphon||f"Classes"f"classes.jar")
    flambam(durphon||f"classes.jar")

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/


_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Call for help with tools.jar locater algorithm.

Kermit Kiser
In reply to this post by rvjansen
René -

On the Mac, the scanner looks for classes.jar. Bruce is the only one to report a Mac run so far but it did locate classes.jar there. Kenneth said he will run it on his Mac later.

I got too busy last night and forgot to mention that there is a newer version (1.3) of the envirotest scanner that checks more libraries and also looks for installed NetRexx components:

Binary -
http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.class

Source -
http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.nrx

I see from his results that Marc found it anyway.

I am not sure how to incorporate the logic you mentioned but I may take a stab at it. I wish I had a Mac available to test with but I kind of have an oath not to ever buy anything from Apple!

-- Kermit


On 9/26/2011 8:07 AM, rvjansen wrote:
Kermit,

must have missed this thread until now - sorry for that.
On the Mac, there is no point in locating tools.jar - it is not there. To locate the compiler that goes with the java version, you first locate the java location with `/usr/libexec/java_home` - the backticks make this return the java_home location.

So for example, in tcsh (note to Tom Maynard: Unix users use different shells, not all use bash) you setup something like

setenv JAVA_HOME "`/usr/libexec/java_home`"

to get the root of the Java installation - if there is one (1) and it follows apple conventions. Then you have to take off 'Home' as the last qualifier, and add "Classes/classes.jar".

I found out that there is a stable set of symbolic links that makes:

/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar

work always for the latest version of the VM. The Mac, in the (officially deprecated - but Lion still conforms) Apple layout can have more VM levels available.

The mentioned string is in RxClasser.nrx, line 169 - the next line is for Linux on Z, which also was quite a puzzle. For this system, you also need vm.jar, in addition to the very long path to the class libraries. I see now that there is also a superfluous line in there- we should probably change this whole system for 3.02

best regards,

René.


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/




_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Call for help with tools.jar locater algorithm.

alansam

Hi Kermit.


On 26 September 2011 09:40, Kermit Kiser <[hidden email]> wrote:
René -

On the Mac, the scanner looks for classes.jar. Bruce is the only one to report a Mac run so far but it did locate classes.jar there. Kenneth said he will run it on his Mac later.

I got too busy last night and forgot to mention that there is a newer version (1.3) of the envirotest scanner that checks more libraries and also looks for installed NetRexx components:

Binary - Source -
http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.nrx

I see from his results that Marc found it anyway.

I am not sure how to incorporate the logic you mentioned but I may take a stab at it. I wish I had a Mac available to test with but I kind of have an oath not to ever buy anything from Apple!

-- Kermit

 Here are the results from my Mac (OS X 10.7.1 Lion) run on from a terminal window, under the jEdit NetRexxDE plugin and frim inside Eclipse:

--- Native ---------------------------------------------------------------------
NetRexx Envirotest version 1.3
Java properties:
java.version: 1.6.0_26
java.home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
java.class.path: .
java.library.path: /opt/ooRexx/lib/ooRexx:.:/Users/user/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.ext.dirs: /Users/user/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext
os.name: Mac OS X
os.arch: x86_64
os.version: 10.7.1
HOME: /Users/user
Beginning scan for Java and NetRexx runtime or compiler programs:
Checking java.home
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bundle/Classes/classes.jar
Checking java.home parent
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bundle/Classes/classes.jar
Checking java.home grandparent
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar
Checking Java extension directories
found:/Users/user/Library/Java/Extensions/NetRexxC.jar
found:/Users/user/Library/Java/Extensions/classes.jar
Checking Java classpath directories
Checking System path directories
found:/Users/user/Library/Java/Extensions/NetRexxC.jar
found:/Users/user/Library/Java/Extensions/classes.jar
Checking home directory
--- NetRexxDE ------------------------------------------------------------------
NetRexx Envirotest version 1.3 
Java properties: 
java.version: 1.6.0_26 
java.home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home 
java.class.path: .:/Users/user/Library/jEdit/jars/NetRexxC.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bundle/Classes/classes.jar:/Applications/jEdit.app/Contents/Resources/Java/jedit.jar:/System/Library/Java 
java.library.path: /Applications/jEdit.app/Contents/Resources/Java:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources:.:/Users/user/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java 
java.ext.dirs: /Users/user/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext 
os.name: Mac OS X 
os.arch: x86_64 
os.version: 10.7.1 
HOME: /Users/user 
Beginning scan for Java and NetRexx runtime or compiler programs: 
Checking java.home 
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bundle/Classes/classes.jar 
Checking java.home parent 
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar 
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bundle/Classes/classes.jar 
Checking java.home grandparent 
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar 
Checking Java extension directories 
found:/Users/user/Library/Java/Extensions/NetRexxC.jar 
found:/Users/user/Library/Java/Extensions/classes.jar 
Checking Java classpath directories 
found:/Users/user/Library/jEdit/jars/NetRexxDE.jar 
found:/Users/user/Library/jEdit/jars/NetRexxScript.jar 
found:/Users/user/Library/jEdit/jars/NetRexxC.jar 
found:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bundle/Classes/classes.jar 
Checking System path directories 
found:/Users/user/Library/Java/Extensions/NetRexxC.jar 
found:/Users/user/Library/Java/Extensions/classes.jar 
Checking home directory
--- Eclipse --------------------------------------------------------------------
NetRexx Envirotest version 1.3
Java properties:
java.version: 1.6.0_26
java.home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
java.class.path: /Users/user/projects/eclipse/galileo/workspace/NetRexxIVP/bin
java.library.path: .:/Users/user/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.ext.dirs: /Users/user/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext
os.name: Mac OS X
os.arch: x86_64
os.version: 10.7.1
HOME: /Users/user
Beginning scan for Java and NetRexx runtime or compiler programs:
Checking java.home
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bundle/Classes/classes.jar
Checking java.home parent
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bundle/Classes/classes.jar
Checking java.home grandparent
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar
Checking Java extension directories
found:/Users/user/Library/Java/Extensions/NetRexxC.jar
found:/Users/user/Library/Java/Extensions/classes.jar
Checking Java classpath directories
Checking System path directories
found:/Users/user/Library/Java/Extensions/NetRexxC.jar
found:/Users/user/Library/Java/Extensions/classes.jar
Checking home directory


Alan.

P.S. I note that the link you've embedded in the message under the source actually points at the class file.

--
Can't tweet, won't tweet!

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Alan

--
Needs more cowbell.
Reply | Threaded
Open this post in threaded view
|

Re: Call for help with tools.jar locater algorithm.

Kermit Kiser
Oops! My bad copy/paste.

Here is a better link to the source (I hope):

http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.nrx

-- Kermit


On 9/26/2011 10:39 AM, Alan Sampson wrote:

Hi Kermit.


On 26 September 2011 09:40, Kermit Kiser <[hidden email]> wrote:
René -

On the Mac, the scanner looks for classes.jar. Bruce is the only one to report a Mac run so far but it did locate classes.jar there. Kenneth said he will run it on his Mac later.

I got too busy last night and forgot to mention that there is a newer version (1.3) of the envirotest scanner that checks more libraries and also looks for installed NetRexx components:

Binary - Source -
http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.nrx

I see from his results that Marc found it anyway.

I am not sure how to incorporate the logic you mentioned but I may take a stab at it. I wish I had a Mac available to test with but I kind of have an oath not to ever buy anything from Apple!

-- Kermit

 

Alan.

P.S. I note that the link you've embedded in the message under the source actually points at the class file.

--
Can't tweet, won't tweet!

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Call for help with tools.jar locater algorithm.

Bruce Skelly
In reply to this post by Kermit Kiser
Hi Kermit,

$java envirotest      
NetRexx Envirotest version 1.3
Java properties:
java.version: 1.6.0_26
java.home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
java.class.path: .
java.library.path: .:/Users/bjskelly/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.ext.dirs: /Users/bjskelly/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext
os.name: Mac OS X
os.arch: x86_64
os.version: 10.6.8
HOME: /Users/bjskelly
Beginning scan for Java and NetRexx runtime or compiler programs:
Checking java.home
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bundle/Classes/classes.jar
Checking java.home parent
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bundle/Classes/classes.jar
Checking java.home grandparent
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar
Checking Java extension directories
found:/Users/bjskelly/Library/Java/Extensions/NetRexxC.jar
found:/Users/bjskelly/Library/Java/Extensions/NetRexxR.jar
found:/Library/Java/Extensions/NetRexxC.jar
found:/Library/Java/Extensions/NetRexxR.jar
Checking Java classpath directories
Checking System path directories
found:/Users/bjskelly/Library/Java/Extensions/NetRexxC.jar
found:/Users/bjskelly/Library/Java/Extensions/NetRexxR.jar
found:/Library/Java/Extensions/NetRexxC.jar
found:/Library/Java/Extensions/NetRexxR.jar
Checking home directory
[hidden email] /Users/bjskelly/Downloads> 


On Sep 26, 2011, at 10:05 AM, [hidden email] wrote:

From: Kermit Kiser <[hidden email]>
Date: September 26, 2011 9:40:35 AM PDT
To: IBM Netrexx <[hidden email]>
Subject: Re: [Ibm-netrexx] Call for help with tools.jar locater algorithm.
Reply-To: IBM Netrexx <[hidden email]>


René -

On the Mac, the scanner looks for classes.jar. Bruce is the only one to report a Mac run so far but it did locate classes.jar there. Kenneth said he will run it on his Mac later.

I got too busy last night and forgot to mention that there is a newer version (1.3) of the envirotest scanner that checks more libraries and also looks for installed NetRexx components:

Binary -
http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.class

Source -
http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.nrx

I see from his results that Marc found it anyway. 

I am not sure how to incorporate the logic you mentioned but I may take a stab at it. I wish I had a Mac available to test with but I kind of have an oath not to ever buy anything from Apple!

-- Kermit


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Call for help with tools.jar locater algorithm.

Fernando Cassia-2
In reply to this post by Kermit Kiser
JDK7, ancient 32-bit Fedora Linux (Fedora 10) on AMD Opteron 2216:

Output:

NetRexx Envirotest version 1.3
Java properties:
java.version: 1.7.0
java.home: /usr/java/jdk1.7.0/jre
java.class.path: .
java.library.path: /usr/java/packages/lib/i386:/lib:/usr/lib
java.ext.dirs: /usr/java/jdk1.7.0/jre/lib/ext:/usr/java/packages/lib/ext
os.name: Linux
os.arch: i386
os.version: 2.6.27.41-170.2.117.fc10.i686
HOME: /home/fcassia
Beginning scan for Java and NetRexx runtime or compiler programs:
Checking java.home
Checking java.home parent
found:/usr/java/jdk1.7.0/lib/tools.jar
Checking java.home grandparent
found:/usr/java/latest/lib/tools.jar
found:/usr/java/jdk1.7.0/lib/tools.jar
found:/usr/java/jdk1.6.0_11/lib/tools.jar
found:/usr/java/default/lib/tools.jar
Checking Java extension directories
Checking Java classpath directories
Checking System path directories
Checking home directory

Is that it? or does it save a log file somewhere?
FC

On Wed, Sep 21, 2011 at 20:53, Kermit Kiser <[hidden email]> wrote:
> Per a recent discussion with Bill, locating tools.jar or the equivalent
> classes.jar for Mac is a common problem to IDE setups as well as the
> requested NetRexx installer.

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx package content, some installer for Windows requirements(Re: Janino to the rescue? (Re: [Ibm-netrexx] Call for help withtools.jar locater algorithm.

ThSITC
In reply to this post by George Hovey-2
Hello Mr George Hoveyt, David, *and all*

It is *never too late* to discuss any *rescue issues*

Massa Thomas.
?????????????????????????????????????????????????????
Am 26.09.2011 01:50, schrieb George Hovey:
David,
Too late -- the discussion is already spread across a number of threads.
George

On Sun, Sep 25, 2011 at 2:58 PM, David Requena <[hidden email]> wrote:
>> Would it help to introduce some minimal structure into the discussion, say by specifying that issues be reported to a formally named series of threads (Installation Part I, etc with a maximum size) which effectively act as a journal?  Or perhaps Kenai has some mechanism for dealing with this.

Nothing I'm aware of. Perhaps an specific forum? We can have several of these but I've noticed people here tend to dislike them.

-
Saludos / Kind regards,
David Requena

NOTE: The opinions expressed here represent the opinions
of the authors and do not necessarily represent the opinions
of those who hold other opinions.

-----Original Message-----
From: George Hovey <[hidden email]>
Sender: [hidden email]
Date: Fri, 23 Sep 2011 08:46:32
To: IBM Netrexx<[hidden email]>
Reply-To: IBM Netrexx <[hidden email]>
Subject: Re: NetRexx package content, some installer for Windows requirements
       (Re: Janino to the rescue? (Re: [Ibm-netrexx] Call for help with
       tools.jar locater algorithm.

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/




_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



--
Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team (www.netrexx.org)

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com
Reply | Threaded
Open this post in threaded view
|

Re: Call for help with tools.jar locater algorithm.

Bruce Skelly
In reply to this post by Kermit Kiser
Kermit,

Here is another, older mac.

Bruce
[hidden email] /Users/bjskelly/Desktop> java -jvm envirotest
NetRexx Envirotest version 1.3
Java properties:
java.version: 1.5.0_19
java.home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
java.class.path: .:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/.compatibility/14compatibility.jar
java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.ext.dirs: /Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext
os.name: Mac OS X
os.arch: i386
os.version: 10.4.11
HOME: /Users/bjskelly
Beginning scan for Java and NetRexx runtime or compiler programs:
Checking java.home
Checking java.home parent
found:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar
Checking java.home grandparent
found:/System/Library/Frameworks/JavaVM.framework/Versions/1.3/Classes/classes.jar
found:/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes.jar
found:/System/Library/Frameworks/JavaVM.framework/Versions/1.4/Classes/classes.jar
found:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar
found:/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/classes.jar
found:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar
found:/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes/classes.jar
Checking Java extension directories
Checking Java classpath directories
Checking System path directories
Checking home directory

On Sep 26, 2011, at 11:59 AM, [hidden email] wrote:

From: Kermit Kiser <[hidden email]>
Date: September 26, 2011 11:29:30 AM PDT
To: IBM Netrexx <[hidden email]>
Subject: Re: [Ibm-netrexx] Call for help with tools.jar locater algorithm.
Reply-To: IBM Netrexx <[hidden email]>


Oops! My bad copy/paste.

Here is a better link to the source (I hope):

http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.nrx

-- Kermit


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Call for help with tools.jar locater algorithm.

Kermit Kiser
Bruce -

Does that one have NetRexx on it? I see lots of Java versions but no sign of NetRexx.

-- Kermit


On 9/26/2011 1:19 PM, Bruce Skelly wrote:
Kermit,

Here is another, older mac.

Bruce
[hidden email] /Users/bjskelly/Desktop> java -jvm envirotest
NetRexx Envirotest version 1.3
Java properties:
java.version: 1.5.0_19
java.home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
java.class.path: .:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/.compatibility/14compatibility.jar
java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.ext.dirs: /Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext
os.name: Mac OS X
os.arch: i386
os.version: 10.4.11
HOME: /Users/bjskelly
Beginning scan for Java and NetRexx runtime or compiler programs:
Checking java.home
Checking java.home parent
found:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar
Checking java.home grandparent
found:/System/Library/Frameworks/JavaVM.framework/Versions/1.3/Classes/classes.jar
found:/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes.jar
found:/System/Library/Frameworks/JavaVM.framework/Versions/1.4/Classes/classes.jar
found:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar
found:/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/classes.jar
found:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar
found:/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes/classes.jar
Checking Java extension directories
Checking Java classpath directories
Checking System path directories
Checking home directory

On Sep 26, 2011, at 11:59 AM, [hidden email] wrote:

From: Kermit Kiser <[hidden email]>
Date: September 26, 2011 11:29:30 AM PDT
To: IBM Netrexx <[hidden email]>
Subject: Re: [Ibm-netrexx] Call for help with tools.jar locater algorithm.
Reply-To: IBM Netrexx <[hidden email]>


Oops! My bad copy/paste.

Here is a better link to the source (I hope):

http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.nrx

-- Kermit

_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Call for help with tools.jar locater algorithm.

Fernando Cassia-2
On Mon, Sep 26, 2011 at 17:41, Kermit Kiser <[hidden email]> wrote:
> Bruce -
>
> Does that one have NetRexx on it? I see lots of Java versions but no sign of
> NetRexx.
>
> -- Kermit

Oh waitaminute... do I have to install Netrexx too? ;) I thought you
were only compiling data about java/javac locations and strings to
BUILD an installer.

FC
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx package content, some installer for Windows requirements(Re: Janino to the rescue? (Re: [Ibm-netrexx] Call for help withtools.jar locater algorithm.

Fernando Cassia-2
In reply to this post by ThSITC
On Mon, Sep 26, 2011 at 17:16, Thomas Schneider
<[hidden email]> wrote:
>
> It is *never too late* to discuss any *rescue issues*

Is there a rescue? Where? and where are the hostages?
The children... somebody think of the children...


;)
FC
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx package content, some installer for Windows requirements(Re: Janino to the rescue? (Re: [Ibm-netrexx] Call for help withtools.jar locater algorithm.

ThSITC
There are two rules on this EARTH:

  a:) every living men, woman, and child is equally important.
  b:) But a child is even more important

(c) Thomas Schneider (Massa Thomas, 1984)

When we would not do antyhing, and everything, that our childs

+++ do survive +++

NOBODY will pay *our pension* in 6,000 years's ;-)

Massa Thomas.
========================================================
Am 26.09.2011 23:08, schrieb Fernando Cassia:

> On Mon, Sep 26, 2011 at 17:16, Thomas Schneider
> <[hidden email]>  wrote:
>> It is *never too late* to discuss any *rescue issues*
> Is there a rescue? Where? and where are the hostages?
> The children... somebody think of the children...
>
>
> ;)
> FC
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
>


--
Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge
Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team
(www.netrexx.org)

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com
Reply | Threaded
Open this post in threaded view
|

RE: Call for help with tools.jar locater algorithm.

Dave Woodman
In reply to this post by Kermit Kiser

Hi,

 

Output of the latest/greatest version on my system.

 

As before, still have a EE JDK in c:\glassfish3 as well as SE in the “normal” place – it depends what I am up to as to which I am using.

 

As for the NetRexx components – I compile in one or other of the development environments, and package up the runtime and my classes in a jar if required (setting the manifest accordingly, of course) – so even though I am using NetRexx I am afraid your tool is unlikely to find it.

 

So – with the caveats above on the table

 

C:\Users\dave\Downloads>java envirotest

NetRexx Envirotest version 1.3

Java properties:

java.version: 1.6.0_27

java.home: C:\Program Files (x86)\Java\jdk1.6.0_27\jre

java.class.path: .

java.library.path: C:\Program Files (x86)\Java\jdk1.6.0_27\bin;C:\Windows\Sun\Ja

va\bin;C:\Windows\system32;C:\Windows;C:\Program Files\ImageMagick-6.6.6-Q16;C:\

Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Windows

PowerShell\v1.0\;C:\Program Files (x86)\Lenovo\Access Connections\;C:\Program Fi

les (x86)\Common Files\Lenovo;C:\Program Files\Common Files\Lenovo;C:\Program Fi

les (x86)\Lenovo\Client Security Solution;C:\Program Files\Lenovo\Client Securit

y Solution;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkP

ad\Bluetooth Software\syswow64;C:\SWTOOLS\ReadyApps;C:\Program Files\ooRexx;C:\P

rogram Files (x86)\Calibre2\;"C:\Program Files (x86)\Zend\ZendServer\bin";"C:\Pr

ogram Files (x86)\Zend\ZendServer\share\ZendFramework\bin";C:\Program Files\Tort

oiseSVN\bin;C:\Program Files\SlikSvn\bin\;C:\Program Files\jEdit;C:\Program File

s (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\OpenVPN\bin;C:\Program Files

(x86)\Java\jdk1.6.0_27\bin;.

java.ext.dirs: C:\Program Files (x86)\Java\jdk1.6.0_27\jre\lib\ext;C:\Windows\Su

n\Java\lib\ext

os.name: Windows 7

os.arch: x86

os.version: 6.1

HOMEPATH: \Users\dave

USERPROFILE: C:\Users\dave

Beginning scan for Java and NetRexx runtime or compiler programs:

Checking java.home

Checking java.home parent

found:C:\Program Files (x86)\Java\jdk1.6.0_27\bin\java.exe

found:C:\Program Files (x86)\Java\jdk1.6.0_27\lib\tools.jar

Checking java.home grandparent

found:C:\Program Files (x86)\Java\jdk1.6.0_27\lib\tools.jar

Checking Java extension directories

Checking Java classpath directories

Checking System path directories

found:C:\Program Files (x86)\Java\jdk1.6.0_27\bin\java.exe

found:C:\Program Files (x86)\Java\jdk1.6.0_27\lib\tools.jar

found:C:\Windows\system32\java.exe

found:C:\Windows\system32\java.exe

Exception in thread "main" java.lang.NullPointerException

        at java.io.File.<init>(File.java:222)

        at envirotest.bondukey(envirotest.nrx:167)

        at envirotest.bondukey(envirotest.nrx:170)

        at envirotest.bondukey(envirotest.nrx:170)

        at envirotest.bondukey(envirotest.nrx:170)

        at envirotest.bondukey(envirotest.nrx:170)

        at envirotest.bondukey(envirotest.nrx:170)

        at envirotest.pathcheck(envirotest.nrx:135)

        at envirotest.scanpath(envirotest.nrx:120)

        at envirotest.badaboom(envirotest.nrx:85)

        at envirotest.main(envirotest.nrx:28)

 

 

Cheers,

 

                Dave.

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Kermit Kiser
Sent: 26 September 2011 17:29
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Call for help with tools.jar locater algorithm.

 

Thanks Kenneth. I forgot to mention that there is a newer version that scans more directories and looks for NetRexx components also. Here is the location:

Binary -
http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.class

Source -
http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.nrx

-- Kermit


On 9/26/2011 7:28 AM, [hidden email] wrote:


C:\Documents and Settings\keklein\My Documents\REXX\NetRexx\bin  Mon 09/26/2011 10:11
 > java envirotest
NetRexx Envirotest version 1.0
java.version: 1.6.0_18
java.home: C:\Program Files\Java\jdk1.6.0_18\jre
java.class.path: .;C:\Program Files\Java\jre6\lib\ext\tools.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2java.
zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLL
IB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\P
rogram Files\Java\jre6\lib\ext\QTJava.zip;C:\Documents and Settings\keklein\My Documents\REXX\NetRex
x\bin\Rexx2Nrx.jar;C:\Documents and Settings\keklein\My Documents\REXX\NetRexx\bin\NetRexxC.jar;C:\D
ocuments and Settings\keklein\My Documents\REXX\NetRexx\bin\
java.library.path: C:\Program Files\Java\jdk1.6.0_18\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system
32;C:\WINDOWS;.;C:\Documents and Settings\keklein\;C:\Documents and Settings\keklein\My Documents\RE
XX\NetRexx\bin;C:\Documents and Settings\keklein\My Documents\REXX\NrxRedBk\Redbook;C:\Program Files
\vim\vim73;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES
\REPL;C:\Program Files\IBM\GSK7\bin;C:\Program Files\IBM\GSK7\lib;C:\Program Files\IBM\ITM\bin;C:\Pr
ogram Files\IBM\ITM\bin\dll;C:\Program Files\IBM\ITM\InstallITM;C:\Program Files\IBM\ITM\TMAITM6;C:\
Program Files\IBM\Personal Communications\;C:\Program Files\IBM\Trace Facility\;C:\Program Files\Jav
a\jdk1.6.0_18\bin;C:\Program Files\QuickTime\QTSystem\;C:\program files\rmf\rmf spreadsheet reporter
\;C:\Program Files\Windows Imaging\;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;C:\Docum
ents and Settings\keklein\My Documents\apache-ant-1.8.2\bin
java.ext.dirs: C:\Program Files\Java\jdk1.6.0_18\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
os.name: Windows XP
os.arch: x86
os.version: 5.1
found:C:\Program Files\Java\jdk1.6.0_18\lib\tools.jar
found:C:\Program Files\Java\jdk1.6.0_18\lib\tools.jar


I'll run this on my mac when I have a chance at home.

Kenneth Klein
Systems Specialist


Kermit Kiser [hidden email]
Sent by: [hidden email]

09/21/2011 08:16 PM

Please respond to
IBM Netrexx [hidden email]

To

IBM Netrexx [hidden email]

cc

Subject

[Ibm-netrexx] Call for help with tools.jar locater algorithm.

 




Per a recent discussion with Bill, locating tools.jar or the equivalent
classes.jar for Mac is a common problem to IDE setups as well as the
requested NetRexx installer. As a first step toward creating a suitable
algorithm usable by installers for locating the Java compiler, I have
drafted a small Java environment scanner that will report any possible
locations it finds.

If you have time, please run this scanner on any Java system you have
available and post the output back to the list. I am particularly
interested in Mac output since I have no access to such systems. Also
any JDK locations the program misses. This program does NOT require that
NetRexx be installed to run it - just download the binary file and start
it with "java envirotest". Here is the binary class file link and the
source is below that:

http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.class


(Please pardon the odd property and method names - I seem to have been
in a whimsical mood when I wrote it. )

-- Kermit

options binary
class envirotest
--                                        This program written by Kermit
Kiser on 2011/09/21 is placed in the public domain.

properties static

     java_version=String
     java_home=String
     java_class_path=String
     java_library_path=String
     java_ext_dirs=String
     os_name=String
     os_arch=String
     os_version=String

    f=System.getProperty('file.separator')
    s=System.getProperty('path.separator')

 method main(sa=String[]) static

     System.out.println("NetRexx Envirotest version 1.0")

     badabing

     badaboom

 method badabing static

     java_version=System.getProperty("java.version")
     System.out.println("java.version:" System.getProperty("java.version"))

    java_home= System.getProperty("java.home")
     System.out.println("java.home:" System.getProperty("java.home"))

     java_class_path= System.getProperty("java.class.path")
     System.out.println("java.class.path:"
System.getProperty("java.class.path"))

    java_library_path= System.getProperty("java.library.path")
     System.out.println("java.library.path:"
System.getProperty("java.library.path"))

    java_ext_dirs= System.getProperty("java.ext.dirs")
     System.out.println("java.ext.dirs:"
System.getProperty("java.ext.dirs"))

    os_name= System.getProperty("os.name")
     System.out.println("os.name:" System.getProperty("os.name"))

    os_arch= System.getProperty("os.arch")
     System.out.println("os.arch:" System.getProperty("os.arch"))

    os_version= System.getProperty("os.version")
     System.out.println("os.version:" System.getProperty("os.version"))

method badaboom static

    -- check java.home for a copy of tools.jar
    bondukey(java_home)

    --    and up one directory to look for jdk dirs
    phone_home=File(java_home).getParent
    bondukey(phone_home)
    conlist=File(phone_home).list
    loop i=0 for conlist.length
        tf=File(phone_home||f||conlist[i])
        if tf.isDirectory then bondukey(tf.getPath)
        end

    --    check if tools.jar has been added to an extension directory
    e=java_ext_dirs
    loop for 9
        p=e.indexOf(s)
        if p>=0 then do
            p1=e.substring(0,p)
            e=e.substring(p+1)
            flambam(p1||f"tools.jar")
            end
        else do
            flambam(e||f"tools.jar")
            leave
            end
        end

method flambam(burnbom=String) static

    if File(burnbom).exists then System.out.println("found:"burnbom)

method bondukey(durphon=String) static

    flambam(durphon||f"tools.jar")
    flambam(durphon||f"lib"f"tools.jar")
    flambam(durphon||f"lib"f"ext"f"tools.jar")
    flambam(durphon||f"bundle"f"Classes"f"classes.jar")
    flambam(durphon||f"Classes"f"classes.jar")
    flambam(durphon||f"classes.jar")

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



 
 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
 

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Call for help with tools.jar locater algorithm.

Bruce Skelly
In reply to this post by Kermit Kiser
Kermit,

Nope.  Not on that image anyway.  10.4 (Tiger) is the oldest version of Mac OS X that runs on Intel hardware.  It also shows that in the past Apple would leave multiple versions of the Java runtime on the machine.  The also had an app that would allow you to set which versions would be tried in what order (32 & 64 bit as well) I believe their current philosophy is to delete old versions. 

Bruce
On Sep 26, 2011, at 2:31 PM, [hidden email] wrote:

From: Kermit Kiser <[hidden email]>
Date: September 26, 2011 1:41:51 PM PDT
To: IBM Netrexx <[hidden email]>
Subject: Re: [Ibm-netrexx] Call for help with tools.jar locater algorithm.
Reply-To: IBM Netrexx <[hidden email]>


Bruce - 

Does that one have NetRexx on it? I see lots of Java versions but no sign of NetRexx.

-- Kermit


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Call for help with tools.jar locater algorithm.

Kermit Kiser
In reply to this post by Fernando Cassia-2
I know you are pulling my leg but having to write that code to run
without NetRexx (no Rexx objects!) makes me sad for those poor Java
programmers!

But seriously it has occurred to me that an installer might like to know
where previous versions of NetRexx were installed. And perhaps a bigger
reason is that it may help people currently having problems if they can
report the results back to the list so we know what they are up against.

-- Kermit


On 9/26/2011 1:46 PM, Fernando Cassia wrote:

> On Mon, Sep 26, 2011 at 17:41, Kermit Kiser<[hidden email]>  wrote:
>> Bruce -
>>
>> Does that one have NetRexx on it? I see lots of Java versions but no sign of
>> NetRexx.
>>
>> -- Kermit
> Oh waitaminute... do I have to install Netrexx too? ;) I thought you
> were only compiling data about java/javac locations and strings to
> BUILD an installer.
>
> FC
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
>
>

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Call for help with tools.jar locater algorithm.

Kermit Kiser
In reply to this post by Dave Woodman
Dave -

Hey! You broke it. Good job! I uploaded a new version (1.4) just for you. 1.3 did not like quotes in the paths.

If you run the scanner using the glassfish Java does it find anything there?

-- Kermit


On 9/26/2011 2:57 PM, Dave Woodman wrote:

Hi,

 

Output of the latest/greatest version on my system.

 

As before, still have a EE JDK in c:\glassfish3 as well as SE in the “normal” place – it depends what I am up to as to which I am using.

 

As for the NetRexx components – I compile in one or other of the development environments, and package up the runtime and my classes in a jar if required (setting the manifest accordingly, of course) – so even though I am using NetRexx I am afraid your tool is unlikely to find it.

 

So – with the caveats above on the table

 

C:\Users\dave\Downloads>java envirotest

NetRexx Envirotest version 1.3

Java properties:

java.version: 1.6.0_27

java.home: C:\Program Files (x86)\Java\jdk1.6.0_27\jre

java.class.path: .

java.library.path: C:\Program Files (x86)\Java\jdk1.6.0_27\bin;C:\Windows\Sun\Ja

va\bin;C:\Windows\system32;C:\Windows;C:\Program Files\ImageMagick-6.6.6-Q16;C:\

Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Windows

PowerShell\v1.0\;C:\Program Files (x86)\Lenovo\Access Connections\;C:\Program Fi

les (x86)\Common Files\Lenovo;C:\Program Files\Common Files\Lenovo;C:\Program Fi

les (x86)\Lenovo\Client Security Solution;C:\Program Files\Lenovo\Client Securit

y Solution;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkP

ad\Bluetooth Software\syswow64;C:\SWTOOLS\ReadyApps;C:\Program Files\ooRexx;C:\P

rogram Files (x86)\Calibre2\;"C:\Program Files (x86)\Zend\ZendServer\bin";"C:\Pr

ogram Files (x86)\Zend\ZendServer\share\ZendFramework\bin";C:\Program Files\Tort

oiseSVN\bin;C:\Program Files\SlikSvn\bin\;C:\Program Files\jEdit;C:\Program File

s (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\OpenVPN\bin;C:\Program Files

(x86)\Java\jdk1.6.0_27\bin;.

java.ext.dirs: C:\Program Files (x86)\Java\jdk1.6.0_27\jre\lib\ext;C:\Windows\Su

n\Java\lib\ext

os.name: Windows 7

os.arch: x86

os.version: 6.1

HOMEPATH: \Users\dave

USERPROFILE: C:\Users\dave

Beginning scan for Java and NetRexx runtime or compiler programs:

Checking java.home

Checking java.home parent

found:C:\Program Files (x86)\Java\jdk1.6.0_27\bin\java.exe

found:C:\Program Files (x86)\Java\jdk1.6.0_27\lib\tools.jar

Checking java.home grandparent

found:C:\Program Files (x86)\Java\jdk1.6.0_27\lib\tools.jar

Checking Java extension directories

Checking Java classpath directories

Checking System path directories

found:C:\Program Files (x86)\Java\jdk1.6.0_27\bin\java.exe

found:C:\Program Files (x86)\Java\jdk1.6.0_27\lib\tools.jar

found:C:\Windows\system32\java.exe

found:C:\Windows\system32\java.exe

Exception in thread "main" java.lang.NullPointerException

        at java.io.File.<init>(File.java:222)

        at envirotest.bondukey(envirotest.nrx:167)

        at envirotest.bondukey(envirotest.nrx:170)

        at envirotest.bondukey(envirotest.nrx:170)

        at envirotest.bondukey(envirotest.nrx:170)

        at envirotest.bondukey(envirotest.nrx:170)

        at envirotest.bondukey(envirotest.nrx:170)

        at envirotest.pathcheck(envirotest.nrx:135)

        at envirotest.scanpath(envirotest.nrx:120)

        at envirotest.badaboom(envirotest.nrx:85)

        at envirotest.main(envirotest.nrx:28)

 

 

Cheers,

 

                Dave.

 

From: [hidden email] [[hidden email]] On Behalf Of Kermit Kiser
Sent: 26 September 2011 17:29
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Call for help with tools.jar locater algorithm.

 

Thanks Kenneth. I forgot to mention that there is a newer version that scans more directories and looks for NetRexx components also. Here is the location:

Binary -
http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.class

Source -
http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.nrx

-- Kermit


On 9/26/2011 7:28 AM, [hidden email] wrote:


C:\Documents and Settings\keklein\My Documents\REXX\NetRexx\bin  Mon 09/26/2011 10:11
 > java envirotest
NetRexx Envirotest version 1.0
java.version: 1.6.0_18
java.home: C:\Program Files\Java\jdk1.6.0_18\jre
java.class.path: .;C:\Program Files\Java\jre6\lib\ext\tools.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2java.
zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLL
IB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\P
rogram Files\Java\jre6\lib\ext\QTJava.zip;C:\Documents and Settings\keklein\My Documents\REXX\NetRex
x\bin\Rexx2Nrx.jar;C:\Documents and Settings\keklein\My Documents\REXX\NetRexx\bin\NetRexxC.jar;C:\D
ocuments and Settings\keklein\My Documents\REXX\NetRexx\bin\
java.library.path: C:\Program Files\Java\jdk1.6.0_18\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system
32;C:\WINDOWS;.;C:\Documents and Settings\keklein\;C:\Documents and Settings\keklein\My Documents\RE
XX\NetRexx\bin;C:\Documents and Settings\keklein\My Documents\REXX\NrxRedBk\Redbook;C:\Program Files
\vim\vim73;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES
\REPL;C:\Program Files\IBM\GSK7\bin;C:\Program Files\IBM\GSK7\lib;C:\Program Files\IBM\ITM\bin;C:\Pr
ogram Files\IBM\ITM\bin\dll;C:\Program Files\IBM\ITM\InstallITM;C:\Program Files\IBM\ITM\TMAITM6;C:\
Program Files\IBM\Personal Communications\;C:\Program Files\IBM\Trace Facility\;C:\Program Files\Jav
a\jdk1.6.0_18\bin;C:\Program Files\QuickTime\QTSystem\;C:\program files\rmf\rmf spreadsheet reporter
\;C:\Program Files\Windows Imaging\;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;C:\Docum
ents and Settings\keklein\My Documents\apache-ant-1.8.2\bin
java.ext.dirs: C:\Program Files\Java\jdk1.6.0_18\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
os.name: Windows XP
os.arch: x86
os.version: 5.1
found:C:\Program Files\Java\jdk1.6.0_18\lib\tools.jar
found:C:\Program Files\Java\jdk1.6.0_18\lib\tools.jar


I'll run this on my mac when I have a chance at home.

Kenneth Klein
Systems Specialist


Kermit Kiser [hidden email]
Sent by: [hidden email]

09/21/2011 08:16 PM

Please respond to
IBM Netrexx [hidden email]

To

IBM Netrexx [hidden email]

cc


Subject

[Ibm-netrexx] Call for help with tools.jar locater algorithm.

 






Per a recent discussion with Bill, locating tools.jar or the equivalent
classes.jar for Mac is a common problem to IDE setups as well as the
requested NetRexx installer. As a first step toward creating a suitable
algorithm usable by installers for locating the Java compiler, I have
drafted a small Java environment scanner that will report any possible
locations it finds.

If you have time, please run this scanner on any Java system you have
available and post the output back to the list. I am particularly
interested in Mac output since I have no access to such systems. Also
any JDK locations the program misses. This program does NOT require that
NetRexx be installed to run it - just download the binary file and start
it with "java envirotest". Here is the binary class file link and the
source is below that:

http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.class


(Please pardon the odd property and method names - I seem to have been
in a whimsical mood when I wrote it. )

-- Kermit

options binary
class envirotest
--                                        This program written by Kermit
Kiser on 2011/09/21 is placed in the public domain.

properties static

     java_version=String
     java_home=String
     java_class_path=String
     java_library_path=String
     java_ext_dirs=String
     os_name=String
     os_arch=String
     os_version=String

    f=System.getProperty('file.separator')
    s=System.getProperty('path.separator')

 method main(sa=String[]) static

     System.out.println("NetRexx Envirotest version 1.0")

     badabing

     badaboom

 method badabing static

     java_version=System.getProperty("java.version")
     System.out.println("java.version:" System.getProperty("java.version"))

    java_home= System.getProperty("java.home")
     System.out.println("java.home:" System.getProperty("java.home"))

     java_class_path= System.getProperty("java.class.path")
     System.out.println("java.class.path:"
System.getProperty("java.class.path"))

    java_library_path= System.getProperty("java.library.path")
     System.out.println("java.library.path:"
System.getProperty("java.library.path"))

    java_ext_dirs= System.getProperty("java.ext.dirs")
     System.out.println("java.ext.dirs:"
System.getProperty("java.ext.dirs"))

    os_name= System.getProperty("os.name")
     System.out.println("os.name:" System.getProperty("os.name"))

    os_arch= System.getProperty("os.arch")
     System.out.println("os.arch:" System.getProperty("os.arch"))

    os_version= System.getProperty("os.version")
     System.out.println("os.version:" System.getProperty("os.version"))

method badaboom static

    -- check java.home for a copy of tools.jar
    bondukey(java_home)

    --    and up one directory to look for jdk dirs
    phone_home=File(java_home).getParent
    bondukey(phone_home)
    conlist=File(phone_home).list
    loop i=0 for conlist.length
        tf=File(phone_home||f||conlist[i])
        if tf.isDirectory then bondukey(tf.getPath)
        end

    --    check if tools.jar has been added to an extension directory
    e=java_ext_dirs
    loop for 9
        p=e.indexOf(s)
        if p>=0 then do
            p1=e.substring(0,p)
            e=e.substring(p+1)
            flambam(p1||f"tools.jar")
            end
        else do
            flambam(e||f"tools.jar")
            leave
            end
        end

method flambam(burnbom=String) static

    if File(burnbom).exists then System.out.println("found:"burnbom)

method bondukey(durphon=String) static

    flambam(durphon||f"tools.jar")
    flambam(durphon||f"lib"f"tools.jar")
    flambam(durphon||f"lib"f"ext"f"tools.jar")
    flambam(durphon||f"bundle"f"Classes"f"classes.jar")
    flambam(durphon||f"Classes"f"classes.jar")
    flambam(durphon||f"classes.jar")

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



 
 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
 
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

RE: Call for help with tools.jar locater algorithm.

Dave Woodman

Yeah, I know – it’s just this thing I do...

 

As for the glassfish jdk...

 

C:\Users\dave\Downloads>java envirotest

NetRexx Envirotest version 1.4

Java properties:

java.version: 1.6.0_27

java.home: c:\glassfish3\jdk\jre

java.class.path: .

java.library.path: c:\glassfish3\jdk\bin;C:\Windows\Sun\Java\bin;C:\Windows\syst

em32;C:\Windows;c:\glassfish3\jdk/bin;C:\Program Files\ImageMagick-6.6.6-Q16;C:\

Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Windows

PowerShell\v1.0\;C:\Program Files (x86)\Lenovo\Access Connections\;C:\Program Fi

les (x86)\Common Files\Lenovo;C:\Program Files\Common Files\Lenovo;C:\Program Fi

les (x86)\Lenovo\Client Security Solution;C:\Program Files\Lenovo\Client Securit

y Solution;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkP

ad\Bluetooth Software\syswow64;C:\SWTOOLS\ReadyApps;C:\Program Files\ooRexx;C:\P

rogram Files (x86)\Calibre2\;"C:\Program Files (x86)\Zend\ZendServer\bin";"C:\Pr

ogram Files (x86)\Zend\ZendServer\share\ZendFramework\bin";C:\Program Files\Tort

oiseSVN\bin;C:\Program Files\SlikSvn\bin\;C:\Program Files\jEdit;C:\Program File

s (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\OpenVPN\bin;C:\Program Files

(x86)\Java\jdk1.6.0_27\bin;.

java.ext.dirs: c:\glassfish3\jdk\jre\lib\ext;C:\Windows\Sun\Java\lib\ext

os.name: Windows 7

os.arch: x86

os.version: 6.1

HOMEPATH: \Users\dave

USERPROFILE: C:\Users\dave

Beginning scan for Java and NetRexx runtime or compiler programs:

Checking java.home

Checking java.home parent

found:c:\glassfish3\jdk\bin\java.exe

found:c:\glassfish3\jdk\lib\tools.jar

Checking java.home grandparent

found:c:\glassfish3\jdk\lib\tools.jar

Checking Java extension directories

Checking Java classpath directories

Checking System path directories

found:c:\glassfish3\jdk\bin\java.exe

found:c:\glassfish3\jdk\lib\tools.jar

found:C:\Windows\system32\java.exe

found:c:\glassfish3\jdk/bin\java.exe

found:C:\Windows\system32\java.exe

found:C:\Program Files (x86)\Java\jdk1.6.0_27\bin\java.exe

found:C:\Program Files (x86)\Java\jdk1.6.0_27\lib\tools.jar

Checking homepath directory

found:\Users\dave\.jedit\jars\NetRexxDE.jar

found:\Users\dave\.jedit\jars\NetRexxScript.jar

found:\Users\dave\.jedit\jars\NetRexxC.jar

Checking userprofile directory

found:C:\Users\dave\.jedit\jars\NetRexxDE.jar

found:C:\Users\dave\.jedit\jars\NetRexxScript.jar

found:C:\Users\dave\.jedit\jars\NetRexxC.jar

 

There you are!

 

                Dave.

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Kermit Kiser
Sent: 27 September 2011 02:06
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Call for help with tools.jar locater algorithm.

 

Dave -

Hey! You broke it. Good job! I uploaded a new version (1.4) just for you. 1.3 did not like quotes in the paths.

If you run the scanner using the glassfish Java does it find anything there?

-- Kermit


On 9/26/2011 2:57 PM, Dave Woodman wrote:

Hi,

 

Output of the latest/greatest version on my system.

 

As before, still have a EE JDK in c:\glassfish3 as well as SE in the “normal” place – it depends what I am up to as to which I am using.

 

As for the NetRexx components – I compile in one or other of the development environments, and package up the runtime and my classes in a jar if required (setting the manifest accordingly, of course) – so even though I am using NetRexx I am afraid your tool is unlikely to find it.

 

So – with the caveats above on the table

 

C:\Users\dave\Downloads>java envirotest

NetRexx Envirotest version 1.3

Java properties:

java.version: 1.6.0_27

java.home: C:\Program Files (x86)\Java\jdk1.6.0_27\jre

java.class.path: .

java.library.path: C:\Program Files (x86)\Java\jdk1.6.0_27\bin;C:\Windows\Sun\Ja

va\bin;C:\Windows\system32;C:\Windows;C:\Program Files\ImageMagick-6.6.6-Q16;C:\

Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Windows

PowerShell\v1.0\;C:\Program Files (x86)\Lenovo\Access Connections\;C:\Program Fi

les (x86)\Common Files\Lenovo;C:\Program Files\Common Files\Lenovo;C:\Program Fi

les (x86)\Lenovo\Client Security Solution;C:\Program Files\Lenovo\Client Securit

y Solution;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkP

ad\Bluetooth Software\syswow64;C:\SWTOOLS\ReadyApps;C:\Program Files\ooRexx;C:\P

rogram Files (x86)\Calibre2\;"C:\Program Files (x86)\Zend\ZendServer\bin";"C:\Pr

ogram Files (x86)\Zend\ZendServer\share\ZendFramework\bin";C:\Program Files\Tort

oiseSVN\bin;C:\Program Files\SlikSvn\bin\;C:\Program Files\jEdit;C:\Program File

s (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\OpenVPN\bin;C:\Program Files

(x86)\Java\jdk1.6.0_27\bin;.

java.ext.dirs: C:\Program Files (x86)\Java\jdk1.6.0_27\jre\lib\ext;C:\Windows\Su

n\Java\lib\ext

os.name: Windows 7

os.arch: x86

os.version: 6.1

HOMEPATH: \Users\dave

USERPROFILE: C:\Users\dave

Beginning scan for Java and NetRexx runtime or compiler programs:

Checking java.home

Checking java.home parent

found:C:\Program Files (x86)\Java\jdk1.6.0_27\bin\java.exe

found:C:\Program Files (x86)\Java\jdk1.6.0_27\lib\tools.jar

Checking java.home grandparent

found:C:\Program Files (x86)\Java\jdk1.6.0_27\lib\tools.jar

Checking Java extension directories

Checking Java classpath directories

Checking System path directories

found:C:\Program Files (x86)\Java\jdk1.6.0_27\bin\java.exe

found:C:\Program Files (x86)\Java\jdk1.6.0_27\lib\tools.jar

found:C:\Windows\system32\java.exe

found:C:\Windows\system32\java.exe

Exception in thread "main" java.lang.NullPointerException

        at java.io.File.<init>(File.java:222)

        at envirotest.bondukey(envirotest.nrx:167)

        at envirotest.bondukey(envirotest.nrx:170)

        at envirotest.bondukey(envirotest.nrx:170)

        at envirotest.bondukey(envirotest.nrx:170)

        at envirotest.bondukey(envirotest.nrx:170)

        at envirotest.bondukey(envirotest.nrx:170)

        at envirotest.pathcheck(envirotest.nrx:135)

        at envirotest.scanpath(envirotest.nrx:120)

        at envirotest.badaboom(envirotest.nrx:85)

        at envirotest.main(envirotest.nrx:28)

 

 

Cheers,

 

                Dave.

 

From: [hidden email] [[hidden email]] On Behalf Of Kermit Kiser
Sent: 26 September 2011 17:29
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Call for help with tools.jar locater algorithm.

 

Thanks Kenneth. I forgot to mention that there is a newer version that scans more directories and looks for NetRexx components also. Here is the location:

Binary -
http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.class

Source -
http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.nrx

-- Kermit


On 9/26/2011 7:28 AM, [hidden email] wrote:


C:\Documents and Settings\keklein\My Documents\REXX\NetRexx\bin  Mon 09/26/2011 10:11
 > java envirotest
NetRexx Envirotest version 1.0
java.version: 1.6.0_18
java.home: C:\Program Files\Java\jdk1.6.0_18\jre
java.class.path: .;C:\Program Files\Java\jre6\lib\ext\tools.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2java.
zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLL
IB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\P
rogram Files\Java\jre6\lib\ext\QTJava.zip;C:\Documents and Settings\keklein\My Documents\REXX\NetRex
x\bin\Rexx2Nrx.jar;C:\Documents and Settings\keklein\My Documents\REXX\NetRexx\bin\NetRexxC.jar;C:\D
ocuments and Settings\keklein\My Documents\REXX\NetRexx\bin\
java.library.path: C:\Program Files\Java\jdk1.6.0_18\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system
32;C:\WINDOWS;.;C:\Documents and Settings\keklein\;C:\Documents and Settings\keklein\My Documents\RE
XX\NetRexx\bin;C:\Documents and Settings\keklein\My Documents\REXX\NrxRedBk\Redbook;C:\Program Files
\vim\vim73;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES
\REPL;C:\Program Files\IBM\GSK7\bin;C:\Program Files\IBM\GSK7\lib;C:\Program Files\IBM\ITM\bin;C:\Pr
ogram Files\IBM\ITM\bin\dll;C:\Program Files\IBM\ITM\InstallITM;C:\Program Files\IBM\ITM\TMAITM6;C:\
Program Files\IBM\Personal Communications\;C:\Program Files\IBM\Trace Facility\;C:\Program Files\Jav
a\jdk1.6.0_18\bin;C:\Program Files\QuickTime\QTSystem\;C:\program files\rmf\rmf spreadsheet reporter
\;C:\Program Files\Windows Imaging\;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;C:\Docum
ents and Settings\keklein\My Documents\apache-ant-1.8.2\bin
java.ext.dirs: C:\Program Files\Java\jdk1.6.0_18\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
os.name: Windows XP
os.arch: x86
os.version: 5.1
found:C:\Program Files\Java\jdk1.6.0_18\lib\tools.jar
found:C:\Program Files\Java\jdk1.6.0_18\lib\tools.jar


I'll run this on my mac when I have a chance at home.

Kenneth Klein
Systems Specialist



Kermit Kiser [hidden email]
Sent by: [hidden email]

09/21/2011 08:16 PM

Please respond to
IBM Netrexx [hidden email]

To

IBM Netrexx [hidden email]

cc

Subject

[Ibm-netrexx] Call for help with tools.jar locater algorithm.

 




Per a recent discussion with Bill, locating tools.jar or the equivalent
classes.jar for Mac is a common problem to IDE setups as well as the
requested NetRexx installer. As a first step toward creating a suitable
algorithm usable by installers for locating the Java compiler, I have
drafted a small Java environment scanner that will report any possible
locations it finds.

If you have time, please run this scanner on any Java system you have
available and post the output back to the list. I am particularly
interested in Mac output since I have no access to such systems. Also
any JDK locations the program misses. This program does NOT require that
NetRexx be installed to run it - just download the binary file and start
it with "java envirotest". Here is the binary class file link and the
source is below that:

http://kenai.com/projects/netrexx-plus/downloads/download/Envirotest/envirotest.class


(Please pardon the odd property and method names - I seem to have been
in a whimsical mood when I wrote it. )

-- Kermit

options binary
class envirotest
--                                        This program written by Kermit
Kiser on 2011/09/21 is placed in the public domain.

properties static

     java_version=String
     java_home=String
     java_class_path=String
     java_library_path=String
     java_ext_dirs=String
     os_name=String
     os_arch=String
     os_version=String

    f=System.getProperty('file.separator')
    s=System.getProperty('path.separator')

 method main(sa=String[]) static

     System.out.println("NetRexx Envirotest version 1.0")

     badabing

     badaboom

 method badabing static

     java_version=System.getProperty("java.version")
     System.out.println("java.version:" System.getProperty("java.version"))

    java_home= System.getProperty("java.home")
     System.out.println("java.home:" System.getProperty("java.home"))

     java_class_path= System.getProperty("java.class.path")
     System.out.println("java.class.path:"
System.getProperty("java.class.path"))

    java_library_path= System.getProperty("java.library.path")
     System.out.println("java.library.path:"
System.getProperty("java.library.path"))

    java_ext_dirs= System.getProperty("java.ext.dirs")
     System.out.println("java.ext.dirs:"
System.getProperty("java.ext.dirs"))

    os_name= System.getProperty("os.name")
     System.out.println("os.name:" System.getProperty("os.name"))

    os_arch= System.getProperty("os.arch")
     System.out.println("os.arch:" System.getProperty("os.arch"))

    os_version= System.getProperty("os.version")
     System.out.println("os.version:" System.getProperty("os.version"))

method badaboom static

    -- check java.home for a copy of tools.jar
    bondukey(java_home)

    --    and up one directory to look for jdk dirs
    phone_home=File(java_home).getParent
    bondukey(phone_home)
    conlist=File(phone_home).list
    loop i=0 for conlist.length
        tf=File(phone_home||f||conlist[i])
        if tf.isDirectory then bondukey(tf.getPath)
        end

    --    check if tools.jar has been added to an extension directory
    e=java_ext_dirs
    loop for 9
        p=e.indexOf(s)
        if p>=0 then do
            p1=e.substring(0,p)
            e=e.substring(p+1)
            flambam(p1||f"tools.jar")
            end
        else do
            flambam(e||f"tools.jar")
            leave
            end
        end

method flambam(burnbom=String) static

    if File(burnbom).exists then System.out.println("found:"burnbom)

method bondukey(durphon=String) static

    flambam(durphon||f"tools.jar")
    flambam(durphon||f"lib"f"tools.jar")
    flambam(durphon||f"lib"f"ext"f"tools.jar")
    flambam(durphon||f"bundle"f"Classes"f"classes.jar")
    flambam(durphon||f"Classes"f"classes.jar")
    flambam(durphon||f"classes.jar")

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/




 
 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
 
 
 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
 

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Call for help with tools.jar locater algorithm.

rvjansen
Kermit,

NetRexx Envirotest version 1.4
Java properties:
java.version: 1.6.0_26
java.home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
java.class.path: .:/Users/rvjansen/apps/bsf4oorexx/trunk/:/Users/rvjansen/lib/NetRexxC.jar:/Users/rvjansen/lib/jline-1.0.jar:/Users/rvjansen/lib/junit.jar:/Users/rvjansen/lib/jogl.jar:/Users/rvjansen/lib/antlr.jar:/Users/rvjansen/lib/postgresql.jar:/opt/local/lib/swipl-5.10.4/lib/jpl.jar:/Users/rvjansen/lib/MQDocument.jar:/Users/rvjansen/hbom/src/site/WEB-INF/classes:/Users/rvjansen/lib/mail.jar:/Users/rvjansen/lib/activation.jar:/Users/rvjansen/lib/jlog.jar:/Users/rvjansen/lib/bpjtk-v3.0.2_b20081203.jar:/Users/rvjansen/apps/jacl141/lib/tcljava1.4.1/jacl.jar:/Users/rvjansen/apps/jacl141/lib/tcljava1.4.1/itcl.jar:/Users/rvjansen/apps/jacl141/lib/tcljava1.4.1/tcljava.jar:/Users/rvjansen/apps/jacl141/lib/tcljava1.4.1/tjc.jar:/Users/rvjansen/apps/jacl141/lib/tcljava1.4.1/janino.jar
java.library.path: /Users/rvjansen/bin:/Volumes/Workspace/src:/opt/local/lib/swipl-5.6.16/lib/i386-darwin8.7.1:/usr/lib/oorexx:/Users/rvjansen/apps/bsf4oorexx/trunk/bsf4oorexx.dev/source_cc/64:.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.ext.dirs: /Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext
os.name: Mac OS X
os.arch: x86_64
os.version: 10.7.1
HOME: /Users/rvjansen
Beginning scan for Java and NetRexx runtime or compiler programs:
Checking java.home
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bundle/Classes/classes.jar
Checking java.home parent
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bundle/Classes/classes.jar
Checking java.home grandparent
found:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar
Checking Java extension directories
Checking Java classpath directories
found:/Users/rvjansen/lib/NetRexxC.jar
found:/Users/rvjansen/lib/NetRexxR.jar
found:/Users/rvjansen/lib/NetRexxC.jar
found:/Users/rvjansen/lib/NetRexxR.jar
found:/Users/rvjansen/lib/NetRexxC.jar
found:/Users/rvjansen/lib/NetRexxR.jar
found:/Users/rvjansen/lib/NetRexxC.jar
found:/Users/rvjansen/lib/NetRexxR.jar
found:/Users/rvjansen/lib/NetRexxC.jar
found:/Users/rvjansen/lib/NetRexxR.jar
found:/Users/rvjansen/lib/NetRexxC.jar
found:/Users/rvjansen/lib/NetRexxR.jar
found:/Users/rvjansen/lib/NetRexxC.jar
found:/Users/rvjansen/lib/NetRexxR.jar
found:/Users/rvjansen/lib/NetRexxC.jar
found:/Users/rvjansen/lib/NetRexxR.jar
found:/Users/rvjansen/lib/NetRexxC.jar
found:/Users/rvjansen/lib/NetRexxR.jar
found:/Users/rvjansen/lib/NetRexxC.jar
found:/Users/rvjansen/lib/NetRexxR.jar
Checking System path directories
found:/Users/rvjansen/bin/nrc.cmd
Checking home directory

best regards,

René.

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

1234