A profound lack of understanding has me at a dead-end on a NetRexx
project. The NetRexxDE works on a DELL laptop but gives a problem with a desktop. (Both machines are running XP SP3 with latest updates). The plugin manager shows a panel with three Paths to pieces of the thing and it dictates -- with no way to change them - these paths. But the path for TOOLS.JAR does not exist on the Desktop and I see no way to change and save it on that machine. I get Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main at COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:660) at COM.ibm.netrexx.process.NetRexxC.process(NetRexxC.nrx:183) at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:123) at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:82) Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 4 more and don't have a clue about fixing the problem on the desktop. Any help will be appreciated. Thanks for your time and enjoy the Day Bob Hamilton Richardson Texas USA _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Bob:
you need to
---rony P.S.: To permanently set an environment variable on Windows google the needed information related to your version of Windows. If you get stuck here, ask again, but give the version of Windows you are at. On 27.08.2011 16:45, Robert Hamilton wrote: A profound lack of understanding has me at a dead-end on a NetRexx project. The NetRexxDE works on a DELL laptop but gives a problem with a desktop. (Both machines are running XP SP3 with latest updates). The plugin manager shows a panel with three Paths to pieces of the thing and it dictates -- with no way to change them - these paths. But the path for TOOLS.JAR does not exist on the Desktop and I see no way to change and save it on that machine. I get Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main at COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:660) at COM.ibm.netrexx.process.NetRexxC.process(NetRexxC.nrx:183) at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:123) at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:82) Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 4 more and don't have a clue about fixing the problem on the desktop. Any help will be appreciated. Thanks for your time and enjoy the Day Bob Hamilton Richardson Texas USA _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Robert L Hamilton
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Hi Robert, I think you asked this exact question already 5 days ago. Let's approach it in another way. Can you please be more specific about the term "the path for tools.jar does not exist on the desktop"? What exactly do you mean? Robert Hamilton schrieb am 27.08.2011 16:45: > A profound lack of understanding has me at a dead-end on a NetRexx > project. The NetRexxDE works on a DELL laptop but gives a problem with > a desktop. (Both machines are running XP SP3 with latest updates). > The plugin manager shows a panel with three Paths to pieces of the > thing and it dictates -- with no way to change them - these paths. But > the path for TOOLS.JAR does not exist on the Desktop and I see no way > to change and save it on that machine. I get - -- cu, Patric -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: GnuPT 2.5.2 iEYEARECAAYFAk5ZDAAACgkQfGgGu8y7ypC8PACdEzIuFEEhyZJO8ADKDD0dvNCI 84QAoJxig+Bu+XgRvNQWMysW09A9uBdY =YJDy -----END PGP SIGNATURE----- _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Robert L Hamilton
Bob,
Rony gave a very detailed and helpful answer. Just to amplify his first bullet, Patric Bechtel (Aug 22) suspected you don't have the jdk installed. To check this verify that some jdk version is installed in C:\Program Files\Java. On my (not up to date) XP system it is in the directory C:\Program Files\Java\jdk1.6.0_07 The "jdk" is the critical part; the rest may differ. If it's not there you must get it before proceeding. George On Sat, Aug 27, 2011 at 10:45 AM, Robert Hamilton <[hidden email]> wrote: A profound lack of understanding has me at a dead-end on a NetRexx _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
On Sat, Aug 27, 2011 at 12:41, George Hovey <[hidden email]> wrote:
> To check this verify that some jdk version is installed in C:\Program > Files\Java. even better, drop to a command line window and invoke javac if there is no java compiler,you have the JRE.If there is a java compiler available, you have the jdk.Simple. Couldn't also NetRexxDE check if it's running on top of the JRE and no JDK is available and output a more human-friendly error message, like "you have installed the Java Runtime Environment, you need to install the Java Development Kit (JDK)" ? Just sayin' FC _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Rony G. Flatscher (wu-wien)
Hi All,
A small add to this chain. First, I am a Rexx experienced coder from O/S2 days, controling a ccMail router among other things. Rexx then was effective and Fun too! :-)) The error messages in Bob's original post also appear for me, on a HP Notepad with Win7Home, it has jdk and jre both, but only the last two updates since it is only a year old. This is my first Netrexx experience, downloaded from the pages for the newly open source code. I was wondering if the new open source Netrexx simply needs the Older Java downloads to function? Cheers and Regards, Joe Jackson |
In reply to this post by Robert L Hamilton
Hello Robert,
I did have the exactly same problem 1/2 a year ago, when I did install Java JDK 1.7. You will either have to update your classpath on your Laptop to include ...\java\JDKnn.mmmm\lib\tools.jar *or* copy...\java\JDKnn.mmmm\lib\tools.jar *TO* ...\java\JDKnn.mmmm\jre\lib\tools.jar You class not found exception does say that RxTranslator does NOT find javac, which is the Java Compiler, contained in tools.jar. Also Note, that you must have the JDK isnatted on the Laptop, not just the JRE... When you still have problems, please do a set classpath >classpath.txt *on both machines* and do include the classpath.txt in an attachment to a ersonal mail to me. (or include it in your next inquiry) Thomas Schneider. ========================================================. Am 27.08.2011 16:45, schrieb Robert Hamilton: > A profound lack of understanding has me at a dead-end on a NetRexx > project. The NetRexxDE works on a DELL laptop but gives a problem with > a desktop. (Both machines are running XP SP3 with latest updates). > The plugin manager shows a panel with three Paths to pieces of the > thing and it dictates -- with no way to change them - these paths. But > the path for TOOLS.JAR does not exist on the Desktop and I see no way > to change and save it on that machine. I get > > Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main > at COM.ibm.netrexx.process.RxTranslator.compile(RxTranslator.nrx:660) > at COM.ibm.netrexx.process.NetRexxC.process(NetRexxC.nrx:183) > at COM.ibm.netrexx.process.NetRexxC.main2(NetRexxC.nrx:123) > at COM.ibm.netrexx.process.NetRexxC.main(NetRexxC.nrx:82) > Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > ... 4 more > > and don't have a clue about fixing the problem on the desktop. Any > help will be appreciated. > > Thanks for your time and enjoy the Day > > Bob Hamilton > Richardson Texas USA > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ > > -- Thomas Schneider (www.thsitc.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 |
In reply to this post by Fernando Cassia-2
2011/8/27 Fernando Cassia <[hidden email]>
In my experience that wouldn't work as jdk install don't put the jdk's bin directory at the system path.
The plugin could only check in which environment jEdit itself is running which it is not using anyway. NetRexDE forks a new jvm for its nrx tasks using the paths that must be explicitly set at its options page. An attempt is made to automatically resolve and set these if found empty and a 'human' message if displayed when this fails.
I'd say that stack trace could only be the result of an incorrect explicitly set tools.jar path at plugin options. Of course I'll furter investigate the issue.
Just sayin' Saludos / Regards, David Requena _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Free forum by Nabble | Edit this page |