javac not found 3.03RC2

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

javac not found 3.03RC2

Gil Blais
Hi, Gil here. New to REXX and can't seem to get away from this error:
java.lang.ClassNotFoundException: com.sun.tools.javac.Main
Compilation of 'hello.nrx' failed [javac failed]

I am on a 64 bit Windows system.

PATH=C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\system32
\windowspowershell\v1.0\;C:\Program Files\Java\jdk1.8.0\jre\bin\;C:\Program File
s\Java\jdk1.8.0\jre\lib\;C:\Program Files\Java\jdk1.8.0\jre\lib\tools.jar;c:\app
s\git\cmd;C:\xampp\php;C:\ProgramData\Composer\bin;C:\NetRexx\lib\;C:\NetRexx\bi
n\;

JAVA_HOME=C:\Program Files\Java\jdk1.8.0\jre\

Attempting to execute this:
/* compiletest.nrx */
s= 'hello -nokeep -verbose4 -utf8'
say org.netrexx.process.NetRexxC.main(s)

using this instruction:
java -jar NetRexxF.jar -exec compiletest

I placed a copy of the tools.jar in both \lib directories just in case

Spent a lot of time and tried a LOT of combinations. Starting to feel pretty dumb about now.
Any help is well appreciated.

Regards

Reply | Threaded
Open this post in threaded view
|

Re: javac not found 3.03RC2

Dave Woodman
Hello, and welcome!

This should be an easy one to fix:- you currently have the jdk1.x.y\jre\bin
on your path, but javac is located in jdk1.x.y\bin.

Adding C:\Program Files\Java\jdk1.8.0\bin\ to your path should resolve this
for you.

        Dave.



-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Gil Blais
Sent: 25 May 2014 19:14
To: [hidden email]
Subject: [Ibm-netrexx] javac not found 3.03RC2

Hi, Gil here. New to REXX and can't seem to get away from this error:
java.lang.ClassNotFoundException: com.sun.tools.javac.Main Compilation of
'hello.nrx' failed [javac failed]

I am on a 64 bit Windows system.

PATH=C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\syst
em32
\windowspowershell\v1.0\;C:\Program Files\Java\jdk1.8.0\jre\bin\;C:\Program
File
s\Java\jdk1.8.0\jre\lib\;C:\Program
Files\Java\jdk1.8.0\jre\lib\tools.jar;c:\app
s\git\cmd;C:\xampp\php;C:\ProgramData\Composer\bin;C:\NetRexx\lib\;C:\NetRex
x\bi
n\;

JAVA_HOME=C:\Program Files\Java\jdk1.8.0\jre\

Attempting to execute this:
/* compiletest.nrx */
s= 'hello -nokeep -verbose4 -utf8'
say org.netrexx.process.NetRexxC.main(s)

using this instruction:
java -jar NetRexxF.jar -exec compiletest

I placed a copy of the tools.jar in both \lib directories just in case

Spent a lot of time and tried a LOT of combinations. Starting to feel pretty
dumb about now.
Any help is well appreciated.

Regards





--
View this message in context:
http://ibm-netrexx.215625.n3.nabble.com/javac-not-found-3-03RC2-tp4027072.ht
ml
Sent from the ibm-netrexx mailing list archive at Nabble.com.

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


---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.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: javac not found 3.03RC2

Gil Blais
In reply to this post by Gil Blais
Hi Dave, Gil here. Thanks for the quick response. I have added the entry that you suggested, but the problem persists.

PATH=C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\system32
\windowspowershell\v1.0\;C:\Program Files\Java\jdk1.8.0\jre\bin;C:\Program Files
\Java\jdk1.8.0\jre\lib;C:\Program Files\Java\jdk1.8.0\bin;C:\Program Files\Java\
jdk1.8.0\lib;C:\Program Files\Java\jdk1.8.0\jre\lib\tools.jar;c:\apps\git\cmd;C:
\xampp\php;C:\ProgramData\Composer\bin;C:\NetRexx\lib\;C:\NetRexx\bin\;

???
Reply | Threaded
Open this post in threaded view
|

Re: javac not found 3.03RC2

Dave Woodman
In reply to this post by Dave Woodman
Hi Gil,
 
If you type javac on the command line, what is the response?

Have you tried using the bundled Eclipse compiler instead?

        Dave.

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Gil Blais
Sent: 25 May 2014 20:12
To: [hidden email]
Subject: Re: [Ibm-netrexx] javac not found 3.03RC2

Hi ave, Gil here. Thanks for the quick response. I have added the entry that you suggested, but the problem persists.


PATH=C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\system32
\windowspowershell\v1.0\;C:\Program Files\Java\jdk1.8.0\jre\bin;C:\Program Files \Java\jdk1.8.0\jre\lib;C:\Program Files\Java\jdk1.8.0\bin;C:\Program Files\Java\ jdk1.8.0\lib;C:\Program Files\Java\jdk1.8.0\jre\lib\tools.jar;c:\apps\git\cmd;C:
\xampp\php;C:\ProgramData\Composer\bin;C:\NetRexx\lib\;C:\NetRexx\bin\;

???




On Sunday, May 25, 2014 2:39 PM, Dave Woodman [via ibm-netrexx] <[hidden email]> wrote:
 


Hello, and welcome!

This should be an easy one to fix:- you currently have the jdk1.x.y\jre\bin on your path, but javac is located in jdk1.x.y\bin.

Adding C:\Program Files\Java\jdk1.8.0\bin\ to your path should resolve this for you.

        Dave.



-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Gil Blais
Sent: 25 May 2014 19:14
To: [hidden email]
Subject: [Ibm-netrexx] javac not found 3.03RC2

Hi, Gil here. New to REXX and can't seem to get away from this error:
java.lang.ClassNotFoundException: com.sun.tools.javac.Main Compilation of 'hello.nrx' failed [javac failed]

I am on a 64 bit Windows system.

PATH=C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\syst
em32
\windowspowershell\v1.0\;C:\Program Files\Java\jdk1.8.0\jre\bin\;C:\Program
File
s\Java\jdk1.8.0\jre\lib\;C:\Program
Files\Java\jdk1.8.0\jre\lib\tools.jar;c:\app
s\git\cmd;C:\xampp\php;C:\ProgramData\Composer\bin;C:\NetRexx\lib\;C:\NetRex
x\bi
n\;

JAVA_HOME=C:\Program Files\Java\jdk1.8.0\jre\

Attempting to execute this:
/* compiletest.nrx */
s= 'hello -nokeep -verbose4 -utf8'
say org.netrexx.process.NetRexxC.main(s)

using this instruction:
java -jar NetRexxF.jar -exec compiletest

I placed a copy of the tools.jar in both \lib directories just in case

Spent a lot of time and tried a LOT of combinations. Starting to feel pretty dumb about now.
Any help is well appreciated.

Regards





--
View this message in context:
http://ibm-netrexx.215625.n3.nabble.com/javac-not-found-3-03RC2-tp4027072..ht
ml
Sent from the ibm-netrexx mailing list archive at Nabble.com.

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


---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

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



________________________________
 
If you reply to this email, your message will be added to the discussion below:http://ibm-netrexx.215625.n3.nabble.com/javac-not-found-3-03RC2-tp4027072p4027073.html
To unsubscribe from javac not found 3.03RC2, click here.
NAML



--
View this message in context: http://ibm-netrexx.215625.n3.nabble.com/javac-not-found-3-03RC2-tp4027072p4027075.html
Sent from the ibm-netrexx mailing list archive at Nabble.com.

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



---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.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: javac not found 3.03RC2

Kermit Kiser
Dave, Gil --

NetRexx does not use the javac command directly but calls an internal API in the tools.jar file. Therefore to use javac as your compiler you must add tools.jar to the Java classpath or copy it to the Java extensions directory (C:\Program Files\Java\jre8\lib\ext). However it looks like Gil is actually trying to use the ecj compiler included in module NetRexxF.jar. In order to use that Eclipse compiler, you must currently tell NetRexx that is what you want by altering the calling command as per the quickstart guide:

java -Dnrx.compiler=ecj -jar NetRexxF.jar -exec compiletest 

That command will indirectly cause the hello.nrx program to be compiled if that is the intention here.

-- Kermit

On 5/25/2014 12:58 PM, Dave Woodman wrote:
Hi Gil,
 
If you type javac on the command line, what is the response?

Have you tried using the bundled Eclipse compiler instead?

	Dave.

-----Original Message-----
From: [hidden email] [[hidden email]] On Behalf Of Gil Blais
Sent: 25 May 2014 20:12
To: [hidden email]
Subject: Re: [Ibm-netrexx] javac not found 3.03RC2

Hi ave, Gil here. Thanks for the quick response. I have added the entry that you suggested, but the problem persists. 


PATH=C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\system32
\windowspowershell\v1.0\;C:\Program Files\Java\jdk1.8.0\jre\bin;C:\Program Files \Java\jdk1.8.0\jre\lib;C:\Program Files\Java\jdk1.8.0\bin;C:\Program Files\Java\ jdk1.8.0\lib;C:\Program Files\Java\jdk1.8.0\jre\lib\tools.jar;c:\apps\git\cmd;C:
\xampp\php;C:\ProgramData\Composer\bin;C:\NetRexx\lib\;C:\NetRexx\bin\;

???




On Sunday, May 25, 2014 2:39 PM, Dave Woodman [via ibm-netrexx] [hidden email] wrote:
 


Hello, and welcome! 

This should be an easy one to fix:- you currently have the jdk1.x.y\jre\bin on your path, but javac is located in jdk1.x.y\bin. 

Adding C:\Program Files\Java\jdk1.8.0\bin\ to your path should resolve this for you. 

        Dave. 



-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Gil Blais
Sent: 25 May 2014 19:14
To: [hidden email]
Subject: [Ibm-netrexx] javac not found 3.03RC2 

Hi, Gil here. New to REXX and can't seem to get away from this error: 
java.lang.ClassNotFoundException: com.sun.tools.javac.Main Compilation of 'hello.nrx' failed [javac failed] 

I am on a 64 bit Windows system. 

PATH=C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\syst
em32
\windowspowershell\v1.0\;C:\Program Files\Java\jdk1.8.0\jre\bin\;C:\Program
File
s\Java\jdk1.8.0\jre\lib\;C:\Program
Files\Java\jdk1.8.0\jre\lib\tools.jar;c:\app
s\git\cmd;C:\xampp\php;C:\ProgramData\Composer\bin;C:\NetRexx\lib\;C:\NetRex
x\bi
n\; 

JAVA_HOME=C:\Program Files\Java\jdk1.8.0\jre\ 

Attempting to execute this: 
/* compiletest.nrx */
s= 'hello -nokeep -verbose4 -utf8' 
say org.netrexx.process.NetRexxC.main(s) 

using this instruction: 
java -jar NetRexxF.jar -exec compiletest 

I placed a copy of the tools.jar in both \lib directories just in case 

Spent a lot of time and tried a LOT of combinations. Starting to feel pretty dumb about now. 
Any help is well appreciated. 

Regards 





--
View this message in context: 
http://ibm-netrexx.215625.n3.nabble.com/javac-not-found-3-03RC2-tp4027072..ht
ml
Sent from the ibm-netrexx mailing list archive at Nabble.com. 

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


---
This email is free from viruses and malware because avast! Antivirus protection is active. 
http://www.avast.com

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



________________________________
 
If you reply to this email, your message will be added to the discussion below:http://ibm-netrexx.215625.n3.nabble.com/javac-not-found-3-03RC2-tp4027072p4027073.html
To unsubscribe from javac not found 3.03RC2, click here.
NAML



--
View this message in context: http://ibm-netrexx.215625.n3.nabble.com/javac-not-found-3-03RC2-tp4027072p4027075.html
Sent from the ibm-netrexx mailing list archive at Nabble.com.

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



---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.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: javac not found 3.03RC2

Dave Woodman

Of course.

 

It’s been so long since I ran the command directly, as opposed to from within jEdit or Eclipse that this seems to have fallen from my memory…

 

                Dave.

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Kermit Kiser
Sent: 25 May 2014 22:11
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] javac not found 3.03RC2

 

Dave, Gil --

NetRexx does not use the javac command directly but calls an internal API in the tools.jar file. Therefore to use javac as your compiler you must add tools.jar to the Java classpath or copy it to the Java extensions directory (C:\Program Files\Java\jre8\lib\ext). However it looks like Gil is actually trying to use the ecj compiler included in module NetRexxF.jar. In order to use that Eclipse compiler, you must currently tell NetRexx that is what you want by altering the calling command as per the quickstart guide:


java -Dnrx.compiler=ecj -jar NetRexxF.jar -exec compiletest 


That command will indirectly cause the hello.nrx program to be compiled if that is the intention here.

-- Kermit

On 5/25/2014 12:58 PM, Dave Woodman wrote:

Hi Gil,
 
If you type javac on the command line, what is the response?
 
Have you tried using the bundled Eclipse compiler instead?
 
  Dave.
 
-----Original Message-----
From: [hidden email] [[hidden email]] On Behalf Of Gil Blais
Sent: 25 May 2014 20:12
To: [hidden email]
Subject: Re: [Ibm-netrexx] javac not found 3.03RC2
 
Hi ave, Gil here. Thanks for the quick response. I have added the entry that you suggested, but the problem persists. 
 
 
PATH=C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\system32
\windowspowershell\v1.0\;C:\Program Files\Java\jdk1.8.0\jre\bin;C:\Program Files \Java\jdk1.8.0\jre\lib;C:\Program Files\Java\jdk1.8.0\bin;C:\Program Files\Java\ jdk1.8.0\lib;C:\Program Files\Java\jdk1.8.0\jre\lib\tools.jar;c:\apps\git\cmd;C:
\xampp\php;C:\ProgramData\Composer\bin;C:\NetRexx\lib\;C:\NetRexx\bin\;
 
???
 
 
 
 
On Sunday, May 25, 2014 2:39 PM, Dave Woodman [via ibm-netrexx] [hidden email] wrote:
 
 
 
Hello, and welcome! 
 
This should be an easy one to fix:- you currently have the jdk1.x.y\jre\bin on your path, but javac is located in jdk1.x.y\bin. 
 
Adding C:\Program Files\Java\jdk1.8.0\bin\ to your path should resolve this for you. 
 
        Dave. 
 
 
 
-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Gil Blais
Sent: 25 May 2014 19:14
To: [hidden email]
Subject: [Ibm-netrexx] javac not found 3.03RC2 
 
Hi, Gil here. New to REXX and can't seem to get away from this error: 
java.lang.ClassNotFoundException: com.sun.tools.javac.Main Compilation of 'hello.nrx' failed [javac failed] 
 
I am on a 64 bit Windows system. 
 
PATH=C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\syst
em32
\windowspowershell\v1.0\;C:\Program Files\Java\jdk1.8.0\jre\bin\;C:\Program
File
s\Java\jdk1.8.0\jre\lib\;C:\Program
Files\Java\jdk1.8.0\jre\lib\tools.jar;c:\app
s\git\cmd;C:\xampp\php;C:\ProgramData\Composer\bin;C:\NetRexx\lib\;C:\NetRex
x\bi
n\; 
 
JAVA_HOME=C:\Program Files\Java\jdk1.8.0\jre\ 
 
Attempting to execute this: 
/* compiletest.nrx */
s= 'hello -nokeep -verbose4 -utf8' 
say org.netrexx.process.NetRexxC.main(s) 
 
using this instruction: 
java -jar NetRexxF.jar -exec compiletest 
 
I placed a copy of the tools.jar in both \lib directories just in case 
 
Spent a lot of time and tried a LOT of combinations. Starting to feel pretty dumb about now. 
Any help is well appreciated. 
 
Regards 
 
 
 
 
 
--
View this message in context: 
http://ibm-netrexx.215625.n3.nabble.com/javac-not-found-3-03RC2-tp4027072..ht
ml
Sent from the ibm-netrexx mailing list archive at Nabble.com. 
 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
 
 
---
This email is free from viruses and malware because avast! Antivirus protection is active. 
http://www.avast.com
 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
 
 
 
________________________________
 
If you reply to this email, your message will be added to the discussion below:http://ibm-netrexx.215625.n3.nabble.com/javac-not-found-3-03RC2-tp4027072p4027073.html
To unsubscribe from javac not found 3.03RC2, click here.
NAML
 
 
 
--
View this message in context: http://ibm-netrexx.215625.n3.nabble.com/javac-not-found-3-03RC2-tp4027072p4027075.html
Sent from the ibm-netrexx mailing list archive at Nabble.com.
 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
 
 
 
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
 
 
 

 




This email is free from viruses and malware because avast! Antivirus protection is active.



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

Reply | Threaded
Open this post in threaded view
|

Re: javac not found 3.03RC2

Gil Blais
In reply to this post by Gil Blais
That did the trick. I had it in the JRE8\lib\ext folder, but not the JDK1.8.0\lib\ext folder.

Thanks to both of you. Made my day for me.

Regards, Gil Blais