New release 3.06 - wrong compiler found?

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

New release 3.06 - wrong compiler found?

gustavo_mindreau
Dear Mr. Schneider,
Thank you for your reply.

Yes, I am sure the 'classpath' is correct:
        G:\>set classpath
        CLASSPATH=D:\Kompiler\NetRexx\lib\NetRexxC.jar;D:\Kompiler\Java\jdk1.8.0_152\lib\tools.jar

And when compiling:
        G:\>JAVA org.netrexx.process.NetRexxC test -nologo
        Found possible java compiler=D:\Kompiler\Java\jdk1.8.0_152\lib\tools.jar
        Program test.nrx
          === class test ===
            function main(String[])
        Compilation of 'test.nrx' successful

If I remove java tools.jar from the Classpath, it still finds the tools.jar  (actually I do not know "how" ):
        G:\>set classpath
        CLASSPATH=D:\Kompiler\NetRexx\lib\NetRexxC.jar

        G:\>JAVA org.netrexx.process.NetRexxC test -nologo
        Found possible java compiler=D:\Kompiler\Java\jdk1.8.0_152\lib\tools.jar
        Program test.nrx
          === class test ===
            function main(String[])
        Compilation of 'test.nrx' successful

However, if I restore de Classpath and put again the other compilers in the folder, i.e. D:\Kompiler\NetRexx\lib\ecj-4.6.3.jar, I get:
        G:\>JAVA org.netrexx.process.NetRexxC test -nologo
        Found possible java compiler=D:\Kompiler\NetRexx\lib\ecj-4.6.3.jar
        Program test.nrx
          === class test ===
            function main(String[])
        Compilation of 'test.nrx' successful


"... It normally is stored in ...\Program Files\java\...\tools.jar ..."
Well, for double checking I performed a seach, but no tools.jar was found in Program Files or C:
Although nothing is obvious in Windows, this is reasonable because I installed JAVA and NetRexx on the D: drive.

As reminder of the original reported problem, JAVAC compiler is found, but only if the other two are removed from ..\NetRexx\lib\  (i.e. ecj-4.6.3.jar and NetRexxF.jar)
There is nothing wrong with "... classpath=...;D:/Kompiler/ .... /tools.jar/ "
"tools.jar" is (only) located in the following directory:  D:\Kompiler\Java\jdk1.8.0_152\lib\tools.jar

I will now proceed to test with the -diag option.

Thank you and regards,
Gus


===================================================================================================================
Hi Gustavo,
Are You sure your classpath to tools.jar is correct ?
It normally is stored in ...\Program Files\java\...\tools.jar
When the javac-compiler isn't found, NetRexxC uses the ecj-compiler :-)
Kindly, Thomas.

------------------------------------------------------
Rene and all:
I think it definitely is a *classpath* issue ;-)
Gustavo:
Pls do *check* where You did install Java !
You do have a classpath=D:/Kompiler/ .... /tools.jar/ which is wrong, I think !
check where 'tools.jar' is actually on Your machine !
Kindly, Thomas.

------------------------------------------------------

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

Reply | Threaded
Open this post in threaded view
|

Re: New release 3.06 - wrong compiler found?

ThSITC
Hi Gustavo:

thanks for instant reply :-)
Please do send me then the -diag output as well as to Rene !

I shall be interested to know the results, by the way !
Also, when You could do a LOG-file output of Your classpath that might help to debug this issue !

By the way, my pre-name is Thomas, 'Tom' or 'Tommy' for my international friends ...
No need to say: *Mr. Schneider* ;-) ;-) ;-)

I am sure, by the way, that it *is a classpath* problem ... :-(

Kindly,
Massa ThoMassa (as my african friends do call me since decenniums ;-) )
==================================================================================

Am 28.12.2017 um 16:28 schrieb [hidden email]:
Dear Mr. Schneider,
Thank you for your reply.

Yes, I am sure the 'classpath' is correct:
        G:\>set classpath
        CLASSPATH=D:\Kompiler\NetRexx\lib\NetRexxC.jar;D:\Kompiler\Java\jdk1.8.0_152\lib\tools.jar

And when compiling:
        G:\>JAVA org.netrexx.process.NetRexxC test -nologo
        Found possible java compiler=D:\Kompiler\Java\jdk1.8.0_152\lib\tools.jar
        Program test.nrx
          === class test ===
            function main(String[])
        Compilation of 'test.nrx' successful

If I remove java tools.jar from the Classpath, it still finds the tools.jar  (actually I do not know "how" ):
        G:\>set classpath
        CLASSPATH=D:\Kompiler\NetRexx\lib\NetRexxC.jar

        G:\>JAVA org.netrexx.process.NetRexxC test -nologo
        Found possible java compiler=D:\Kompiler\Java\jdk1.8.0_152\lib\tools.jar
        Program test.nrx
          === class test ===
            function main(String[])
        Compilation of 'test.nrx' successful

However, if I restore de Classpath and put again the other compilers in the folder, i.e. D:\Kompiler\NetRexx\lib\ecj-4.6.3.jar, I get:
        G:\>JAVA org.netrexx.process.NetRexxC test -nologo
        Found possible java compiler=D:\Kompiler\NetRexx\lib\ecj-4.6.3.jar
        Program test.nrx
          === class test ===
            function main(String[])
        Compilation of 'test.nrx' successful


"... It normally is stored in ...\Program Files\java\...\tools.jar ..."
Well, for double checking I performed a seach, but no tools.jar was found in Program Files or C:
Although nothing is obvious in Windows, this is reasonable because I installed JAVA and NetRexx on the D: drive.

As reminder of the original reported problem, JAVAC compiler is found, but only if the other two are removed from ..\NetRexx\lib\  (i.e. ecj-4.6.3.jar and NetRexxF.jar)
There is nothing wrong with "... classpath=...;D:/Kompiler/ .... /tools.jar/ "
"tools.jar" is (only) located in the following directory:  D:\Kompiler\Java\jdk1.8.0_152\lib\tools.jar

I will now proceed to test with the -diag option.

Thank you and regards,
Gus


===================================================================================================================
Hi Gustavo,
Are You sure your classpath to tools.jar is correct ?
It normally is stored in ...\Program Files\java\...\tools.jar
When the javac-compiler isn't found, NetRexxC uses the ecj-compiler :-)
Kindly, Thomas.

------------------------------------------------------
Rene and all:
I think it definitely is a *classpath* issue ;-)
Gustavo:
Pls do *check* where You did install Java !
You do have a classpath=D:/Kompiler/ .... /tools.jar/ which is wrong, I think !
check where 'tools.jar' is actually on Your machine !
Kindly, Thomas.

------------------------------------------------------


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



Virus-free. www.avg.com

_______________________________________________
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
|

New release 3.06 - wrong compiler found?

gustavo_mindreau
Dear Mr. Schneider, geachte heer  Tom  :-)
Thank you for taking the time in supporting this issue.

- diag output has been sent;
- log-file output, I will have to investigate what this is;
- I do not think this is a classpath problem.  I guess it is a problem related to the JAVA & NetRexx not being installed in the standard location.  But I am most probably wrong...

- Java JDK is indeed installed, with package "jdk-8u152-windows-x64.exe".  Otherwise I would not be getting a succesful compilation with the corresponding "test.class" output;
- Test.nrx content:
        Class test public
        Method main(args=String[]) public static
         Say "Hello NetRexx"
         Return

Regards,
Gus


===============================================================================================
Thomas Schneider <[hidden email]>
Sent by: [hidden email]

Hi Gustavo:
thanks for instant reply :-)
Please do send me then the -diag output as well as to Rene !
I shall be interested to know the results, by the way !
Also, when You could do a LOG-file output of Your classpath that might help to debug this issue !
By the way, my pre-name is Thomas, 'Tom' or 'Tommy' for my international friends ...
No need to say: *Mr. Schneider* ;-) ;-) ;-)
I am sure, by the way, that it *is a classpath* problem ... :-(
Kindly,
Massa ThoMassa (as my african friends do call me since decenniums ;-) )

-------------------------------------------------------------------------------------------------------------------------------------
Hi Gustavo:
Are You sure you did install the proper JDK (Java Development Kit), and
not only the JRE ?
NetRexxC does *need* the JDK to be able to -javac Your NetRexx Source File !!!
Thomas.


-------------------------------------------------------------------------------------------------------------------------------------
May I herewith *suggest* that You send me *Your program in question
(Test.nrx)* ...
privately, so that I can *try* to compile it on my own *Windows10* machine ?
I definitely *think* it has to be a *classpath* problem ...
*OR* a yet unknown found bug in NetRexxC, sorry to say that :-(
Thomas Schneider, IT-Consultant, Vienna, Austria (Europe, no
kangorooh's, sorry to say that ;-))
www.db-123.com
www.ThSITC.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: New release 3.06 - wrong compiler found?

ThSITC
Geachte heer Gustavo:

Then: I am on the *end of my wisdom* :-(

Tot siens ! (Hope I did spell that correctly :-))

Bye !
Thomas.
=======================================================================================

Am 28.12.2017 um 18:47 schrieb [hidden email]:
Dear Mr. Schneider, geachte heer  Tom  :-)
Thank you for taking the time in supporting this issue.

- diag output has been sent;
- log-file output, I will have to investigate what this is;
- I do not think this is a classpath problem.  I guess it is a problem related to the JAVA & NetRexx not being installed in the standard location.  But I am most probably wrong...

- Java JDK is indeed installed, with package "jdk-8u152-windows-x64.exe".  Otherwise I would not be getting a succesful compilation with the corresponding "test.class" output;
- Test.nrx content:
        Class test public
        Method main(args=String[]) public static
         Say "Hello NetRexx"
         Return

Regards,
Gus


===============================================================================================
Thomas Schneider [hidden email]
Sent by: [hidden email]

Hi Gustavo:
thanks for instant reply :-)
Please do send me then the -diag output as well as to Rene !
I shall be interested to know the results, by the way !
Also, when You could do a LOG-file output of Your classpath that might help to debug this issue !
By the way, my pre-name is Thomas, 'Tom' or 'Tommy' for my international friends ...
No need to say: *Mr. Schneider* ;-) ;-) ;-)
I am sure, by the way, that it *is a classpath* problem ... :-(
Kindly,
Massa ThoMassa (as my african friends do call me since decenniums ;-) )

-------------------------------------------------------------------------------------------------------------------------------------
Hi Gustavo:
Are You sure you did install the proper JDK (Java Development Kit), and
not only the JRE ?
NetRexxC does *need* the JDK to be able to -javac Your NetRexx Source File !!!
Thomas.


-------------------------------------------------------------------------------------------------------------------------------------
May I herewith *suggest* that You send me *Your program in question
(Test.nrx)* ...
privately, so that I can *try* to compile it on my own *Windows10* machine ?
I definitely *think* it has to be a *classpath* problem ...
*OR* a yet unknown found bug in NetRexxC, sorry to say that :-(
Thomas Schneider, IT-Consultant, Vienna, Austria (Europe, no
kangorooh's, sorry to say that ;-))
www.db-123.com
www.ThSITC.com



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



Virus-free. www.avg.com

_______________________________________________
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