The class below fails to compile with the message
Exception in thread "main" java.lang.NoClassDefFoundError: Files
Caused by: java.lang.ClassNotFoundException: Files at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) Could not find the main class: Files. Program will exit. The system cannot find the file specified. "nrx.bat - netrexx_options=" -keep -Comments -Compact -Format -Java -StrictSignal Class NetRexxAndJavaPropertyCorrespondence Properties Private i_ Properties Private Constant c_ = 0 Properties Private Static s_ Properties Private Transient t_ Properties Private Volatile v_ Properties Public Pi_ Properties Public Constant Pc_ = 0 Properties Public Static Ps_ Properties Public Transient Pt_ Properties Public Volatile Pv_ Properties Inheritable Ii_ Properties Inheritable Constant Ic_ = 0 Properties Inheritable Static Is_ Properties Inheritable Transient It_ Properties Inheritable Volatile Iv_ Properties Shared Si_ Properties Shared Constant Sc_ = 0 Properties Shared Static Ss_ Properties Shared Transient St_ Properties Shared Volatile Sv_ Method main( a_args_1S = String[] ) Public Static _JB = NetRexxAndJavaPropertyCorrespondence( ) Say _JB.i_ _JB.c_ _JB.s_ _JB.t_ _JB.v_ Say _JB.P_ _JB.Pc_ _JB.Ps_ _JB.Pt_ _JB.Pv_ Say _JB.Ii_ _JB.Ic_ _JB.Is_ _JB.It_ _JB.Iv_ Say _JB.Si_ _JB.Sc_ _JB.Ss_ _JB.St_ _JB.Sv_ But if I embed the same statements (except for changing the class name) in another working program, they compile successfully. The purpose BTW is to find the exact correspondence between Rexx and Java Properties. The result is /*{ |=====================================|========================| | NetRexx | Java | |=====================================|========================| | properties Private | private | | properties Private Constant | private static final | | properties Private Static | private static | | properties Private Transient | private transient | | properties Private Volatile | private volatile | | | | | properties Public | public | | properties Public Constant | public static final | | properties Public Static | public static | | properties Public Transient | public transient | | properties Public Volatile | public volatile | | | | | properties Inheritable | protected | | properties Inheritable Constant | protected static final | | properties Inheritable Static | protected static | | properties Inheritable Transient | protected transient | | properties Inheritable Volatile | protected volatile | | | | | properties Shared | | | properties Shared Constant | static final | | properties Shared Static | static | | properties Shared Transient | transient | | properties Shared Volatile | volatile | |=====================================|========================|}*/ -- "One can live magnificently in this world if one knows how to work and how to love." -- Leo Tolstoy _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
There is an error:
function main(String[]) 55 +++ Say _JB.P_ _JB.Pc_ _JB.Ps_ _JB.Pt_ _JB.Pv_ +++ ^^ +++ Error: The property 'P_' cannot be found in class 'NetRexxAndJavaPropertyCorrespondence' or a superclass but if I comment that out, there is no problem with it, ecj complains about static accesses: ---------- 1. WARNING in NetRexxAndJavaPropertyCorrespondence.java (at line 54) netrexx.lang.RexxIO.Say((((_JB.i_.OpCcblank(null,_JB.c_)).OpCcblank(null,_JB.s_)).OpCcblank(null,_JB.t_)).OpCcblank(null,_JB.v_)); ^^ The static field NetRexxAndJavaPropertyCorrespondence.c_ should be accessed in a static way ---------- 2. WARNING in NetRexxAndJavaPropertyCorrespondence.java (at line 54) netrexx.lang.RexxIO.Say((((_JB.i_.OpCcblank(null,_JB.c_)).OpCcblank(null,_JB.s_)).OpCcblank(null,_JB.t_)).OpCcblank(null,_JB.v_)); ^^ The static field NetRexxAndJavaPropertyCorrespondence.s_ should be accessed in a static way ---------- 3. WARNING in NetRexxAndJavaPropertyCorrespondence.java (at line 56) netrexx.lang.RexxIO.Say((((_JB.Ii_.OpCcblank(null,_JB.Ic_)).OpCcblank(null,_JB.Is_)).OpCcblank(null,_JB.It_)).OpCcblank(null,_JB.Iv_)); ^^^ The static field NetRexxAndJavaPropertyCorrespondence.Ic_ should be accessed in a static way ---------- 4. WARNING in NetRexxAndJavaPropertyCorrespondence.java (at line 56) netrexx.lang.RexxIO.Say((((_JB.Ii_.OpCcblank(null,_JB.Ic_)).OpCcblank(null,_JB.Is_)).OpCcblank(null,_JB.It_)).OpCcblank(null,_JB.Iv_)); ^^^ The static field NetRexxAndJavaPropertyCorrespondence.Is_ should be accessed in a static way ---------- 5. WARNING in NetRexxAndJavaPropertyCorrespondence.java (at line 57) netrexx.lang.RexxIO.Say((((_JB.Si_.OpCcblank(null,_JB.Sc_)).OpCcblank(null,_JB.Ss_)).OpCcblank(null,_JB.St_)).OpCcblank(null,_JB.Sv_));return;}public NetRexxAndJavaPropertyCorrespondence(){return;}} ^^^ The static field NetRexxAndJavaPropertyCorrespondence.Sc_ should be accessed in a static way ---------- 6. WARNING in NetRexxAndJavaPropertyCorrespondence.java (at line 57) netrexx.lang.RexxIO.Say((((_JB.Si_.OpCcblank(null,_JB.Sc_)).OpCcblank(null,_JB.Ss_)).OpCcblank(null,_JB.St_)).OpCcblank(null,_JB.Sv_));return;}public NetRexxAndJavaPropertyCorrespondence(){return;}} ^^^ The static field NetRexxAndJavaPropertyCorrespondence.Ss_ should be accessed in a static way but seems you have some other problem. Eclipse? best regards, René. On 2012-07-17 14:53, George Hovey wrote: > The class below fails to compile with the message > > Exception in thread "main" java.lang.NoClassDefFoundError: Files > Caused by: java.lang.ClassNotFoundException: Files > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native > Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown > Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClassInternal(Unknown > Source) > Could not find the main class: Files. Program will exit. > The system cannot find the file specified. > "nrx.bat - netrexx_options=" -keep -Comments -Compact > -Format -Java -StrictSignal > > Class NetRexxAndJavaPropertyCorrespondence > > Properties Private > i_ > Properties Private Constant > c_ = 0 > Properties Private Static > s_ > Properties Private Transient > t_ > Properties Private Volatile > v_ > > Properties Public > Pi_ > Properties Public Constant > Pc_ = 0 > Properties Public Static > Ps_ > Properties Public Transient > Pt_ > Properties Public Volatile > Pv_ > > Properties Inheritable > Ii_ > Properties Inheritable Constant > Ic_ = 0 > Properties Inheritable Static > Is_ > Properties Inheritable Transient > It_ > Properties Inheritable Volatile > Iv_ > > Properties Shared > Si_ > Properties Shared Constant > Sc_ = 0 > Properties Shared Static > Ss_ > Properties Shared Transient > St_ > Properties Shared Volatile > Sv_ > > Method main( a_args_1S = String[] ) Public Static > > _JB = NetRexxAndJavaPropertyCorrespondence( ) > > Say _JB.i_ _JB.c_ _JB.s_ _JB.t_ > _JB.v_ > Say _JB.P_ _JB.Pc_ _JB.Ps_ _JB.Pt_ _JB.Pv_ > Say _JB.Ii_ _JB.Ic_ _JB.Is_ _JB.It_ _JB.Iv_ > Say _JB.Si_ _JB.Sc_ _JB.Ss_ _JB.St_ _JB.Sv_ > > But if I embed the same statements (except for changing the class > name) in another working program, they compile successfully. > > The purpose BTW is to find the exact correspondence between Rexx and > Java Properties. The result is > > /*{ > |=====================================|========================| > | NetRexx > | Java | > |=====================================|========================| > | properties Private | > private | > | properties Private Constant | private static > final | > | properties Private Static | private > static | > | properties Private Transient | private > transient | > | properties Private Volatile | private > volatile | > | > | | > | properties Public | > public | > | properties Public Constant | public static > final | > | properties Public Static | public > static | > | properties Public Transient | public > transient | > | properties Public Volatile | public > volatile | > | > | | > | properties Inheritable | > protected | > | properties Inheritable Constant | protected static final | > | properties Inheritable Static | protected > static | > | properties Inheritable Transient | protected transient | > | properties Inheritable Volatile | protected volatile > | > | > | | > | properties Shared > | | > | properties Shared Constant | > static final | > | properties Shared Static > | static | > | properties Shared Transient | > transient | > | properties Shared Volatile | > volatile | > |=====================================|========================|}*/ _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Why don't I see compiler diagnostics - have I inadvertently shut them off? I get no .java file. On the face of it, it looks to me like the NetRexx compiler bombed.
I don't use Eclipse or any IDE - I compile from the command line under Windows. What is ecj? I corrected the P_ (Pi_ should have been P_) On Tue, Jul 17, 2012 at 9:08 AM, rvjansen <[hidden email]> wrote: There is an error: -- "One can live magnificently in this world if one knows how to work and how to love." -- Leo Tolstoy _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
ecj is the eclipse batch compiler that I use when there is only a JRE
and no SDK (JDK) available. It has slightly better (or more pedantic) diagnostics. I copied and pasted your example, and it worked. Is there a filename specification error somewhere? With windows, rebooting might also help if ordinary things don't work all at once. best regards, René. On 2012-07-17 15:27, George Hovey wrote: > Why don't I see compiler diagnostics - have I inadvertently shut them > off? I get no .java file. On the face of it, it looks to me like > the NetRexx compiler bombed. > > I don't use Eclipse or any IDE - I compile from the command line > under > Windows. > > What is ecj? > > I corrected the P_ (Pi_ should have been P_) > > On Tue, Jul 17, 2012 at 9:08 AM, rvjansen <[hidden email] [3]> > wrote: > >> There is an error: >> >> function main(String[]) >> 55 +++ Say _JB.P_ _JB.Pc_ _JB.Ps_ _JB.Pt_ _JB.Pv_ >> +++ ^^ >> +++ Error: The property 'P_' cannot be found in class >> 'NetRexxAndJavaPropertyCorrespondence' or a superclass >> >> but if I comment that out, there is no problem with it, ecj >> complains about static accesses: >> >> ---------- >> 1. WARNING in NetRexxAndJavaPropertyCorrespondence.java (at line >> 54) >> >> > > netrexx.lang.RexxIO.Say((((_JB.i_.OpCcblank(null,_JB.c_)).OpCcblank(null,_JB.s_)).OpCcblank(null,_JB.t_)).OpCcblank(null,_JB.v_)); >> >> ^^ >> The static field NetRexxAndJavaPropertyCorrespondence.c_ should be >> accessed in a static way >> ---------- >> 2. WARNING in NetRexxAndJavaPropertyCorrespondence.java (at line >> 54) >> >> > > netrexx.lang.RexxIO.Say((((_JB.i_.OpCcblank(null,_JB.c_)).OpCcblank(null,_JB.s_)).OpCcblank(null,_JB.t_)).OpCcblank(null,_JB.v_)); >> >> ^^ >> The static field NetRexxAndJavaPropertyCorrespondence.s_ should be >> accessed in a static way >> ---------- >> 3. WARNING in NetRexxAndJavaPropertyCorrespondence.java (at line >> 56) >> >> > > netrexx.lang.RexxIO.Say((((_JB.Ii_.OpCcblank(null,_JB.Ic_)).OpCcblank(null,_JB.Is_)).OpCcblank(null,_JB.It_)).OpCcblank(null,_JB.Iv_)); >> >> ^^^ >> The static field NetRexxAndJavaPropertyCorrespondence.Ic_ should be >> accessed in a static way >> ---------- >> 4. WARNING in NetRexxAndJavaPropertyCorrespondence.java (at line >> 56) >> >> > > netrexx.lang.RexxIO.Say((((_JB.Ii_.OpCcblank(null,_JB.Ic_)).OpCcblank(null,_JB.Is_)).OpCcblank(null,_JB.It_)).OpCcblank(null,_JB.Iv_)); >> >> ^^^ >> The static field NetRexxAndJavaPropertyCorrespondence.Is_ should be >> accessed in a static way >> ---------- >> 5. WARNING in NetRexxAndJavaPropertyCorrespondence.java (at line >> 57) >> >> > > netrexx.lang.RexxIO.Say((((_JB.Si_.OpCcblank(null,_JB.Sc_)).OpCcblank(null,_JB.Ss_)).OpCcblank(null,_JB.St_)).OpCcblank(null,_JB.Sv_));return;}public >> NetRexxAndJavaPropertyCorrespondence(){return;}} >> >> ^^^ >> The static field NetRexxAndJavaPropertyCorrespondence.Sc_ should be >> accessed in a static way >> ---------- >> 6. WARNING in NetRexxAndJavaPropertyCorrespondence.java (at line >> 57) >> >> > > netrexx.lang.RexxIO.Say((((_JB.Si_.OpCcblank(null,_JB.Sc_)).OpCcblank(null,_JB.Ss_)).OpCcblank(null,_JB.St_)).OpCcblank(null,_JB.Sv_));return;}public >> NetRexxAndJavaPropertyCorrespondence(){return;}} >> >> ^^^ >> The static field NetRexxAndJavaPropertyCorrespondence.Ss_ should be >> accessed in a static way >> >> but seems you have some other problem. Eclipse? >> >> best regards, >> >> René. >> >> On 2012-07-17 14:53, George Hovey wrote: >> >>> The class below fails to compile with the message >>> >>> Exception in thread "main" java.lang.NoClassDefFoundError: Files >>> Caused by: java.lang.ClassNotFoundException: Files >>> at java.net.URLClassLoader$1.run(Unknown Source) >>> at >>> java.security.AccessController.doPrivileged(Native >>> Method) >>> at java.net.URLClassLoader.findClass(Unknown >>> Source) >>> at java.lang.ClassLoader.loadClass(Unknown >>> Source) >>> at >>> sun.misc.Launcher$AppClassLoader.loadClass(Unknown >>> Source) >>> at java.lang.ClassLoader.loadClass(Unknown Source) >>> at java.lang.ClassLoader.loadClassInternal(Unknown >>> Source) >>> Could not find the main class: Files. Program will exit. >>> The system cannot find the file specified. >>> "nrx.bat - netrexx_options=" -keep -Comments -Compact >>> -Format -Java -StrictSignal >>> >>> Class NetRexxAndJavaPropertyCorrespondence >>> >>> Properties Private >>> i_ >>> Properties Private Constant >>> c_ = 0 >>> Properties Private Static >>> s_ >>> Properties Private Transient >>> t_ >>> Properties Private Volatile >>> v_ >>> >>> Properties Public >>> Pi_ >>> Properties Public Constant >>> Pc_ = 0 >>> Properties Public Static >>> Ps_ >>> Properties Public Transient >>> Pt_ >>> Properties Public Volatile >>> Pv_ >>> >>> Properties Inheritable >>> Ii_ >>> Properties Inheritable Constant >>> Ic_ = 0 >>> Properties Inheritable Static >>> Is_ >>> Properties Inheritable Transient >>> It_ >>> Properties Inheritable Volatile >>> Iv_ >>> >>> Properties Shared >>> Si_ >>> Properties Shared Constant >>> Sc_ = 0 >>> Properties Shared Static >>> Ss_ >>> Properties Shared Transient >>> St_ >>> Properties Shared Volatile >>> Sv_ >>> >>> Method main( a_args_1S = String[] ) Public Static >>> >>> _JB = NetRexxAndJavaPropertyCorrespondence( ) >>> >>> Say _JB.i_ _JB.c_ _JB.s_ _JB.t_ >>> _JB.v_ >>> Say _JB.P_ _JB.Pc_ _JB.Ps_ _JB.Pt_ _JB.Pv_ >>> Say _JB.Ii_ _JB.Ic_ _JB.Is_ _JB.It_ _JB.Iv_ >>> Say _JB.Si_ _JB.Sc_ _JB.Ss_ _JB.St_ _JB.Sv_ >>> >>> But if I embed the same statements (except for changing the class >>> name) in another working program, they compile successfully. >>> >>> The purpose BTW is to find the exact correspondence between Rexx >>> and >>> Java Properties. The result is >>> >>> /*{ >>> |=====================================|========================| >>> | NetRexx >>> | Java | >>> |=====================================|========================| >>> | properties Private | >>> private | >>> | properties Private Constant | private >>> static >>> final | >>> | properties Private Static | private >>> static | >>> | properties Private Transient | private >>> transient | >>> | properties Private Volatile | private >>> volatile | >>> >> > | >>> | | >>> | properties Public | >>> public | >>> | properties Public Constant | public >>> static >>> final | >>> | properties Public Static | public >>> static | >>> | properties Public Transient | public >>> transient | >>> | properties Public Volatile | public >>> volatile | >>> >> > | >>> | | >>> | properties Inheritable | >>> protected | >>> | properties Inheritable Constant | protected static >>> final | >>> | properties Inheritable Static | protected >>> static | >>> | properties Inheritable Transient | protected >>> transient | >>> | properties Inheritable Volatile | protected >>> volatile >>> | >>> >> > | >>> | | >>> | properties Shared >>> | | >>> | properties Shared Constant >>> | >>> static final | >>> | properties Shared Static >>> | static | >>> | properties Shared Transient >>> | >>> transient | >>> | properties Shared Volatile >>> | >>> volatile | >>> >> |=====================================|========================|}*/ >> >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] [1] >> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ [2] _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Thanks for the advice. Hopefully, some Windows user will try this. When I reach a stopping point I'll try the reboot (I usually can go 2 or 3 weeks without one).
On Tue, Jul 17, 2012 at 9:37 AM, rvjansen <[hidden email]> wrote: ecj is the eclipse batch compiler that I use when there is only a JRE and no SDK (JDK) available. It has slightly better (or more pedantic) diagnostics. -- "One can live magnificently in this world if one knows how to work and how to love." -- Leo Tolstoy _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by George Hovey-2
Hi George,
*many thanks for the attahed correspondance list* Very *useful*, for me at least ... ;-) Others, more knowledgeable than Iam, will for sure help you to find the issue in question, when it IS an issue at all. I personally do have no idea... :-( I'm switching at the minute between too many languages to keep all the details of all o them in my tiny brain ;-) Massa Thomas ;-) ================================================================= Am 17.07.2012 14:53, schrieb George Hovey: The class below fails to compile with the message --
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 |
Free forum by Nabble | Edit this page |