Using classes in Jar files

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

Using classes in Jar files

Quique Britto
Hi guys,

need yr help, I had this problem in the past and to be honest can't remember how it was solved. I am trying to use the jgoodies forms layout as it seems to make life easier but I am unable to be able to use the clases.

My classpath shows .;C:\NetRexx\Projects\XXX\jgoodies-forms-1.4.0\jgoodies-forms-1.4.0.jar;

My Code shows.:
/* snip */
import javax.swing.
import com.jgoodies.forms.layout.

class XXX implements ...
...
...


when compiling (using jEdit 4.3.2 with NetrexxDE & Java version 1.6.0_23)  I get the following warning which says.:

compilation of "XXX" successful [9 classes, one warning]
Warning: no classes found for import from package "com.jgoodies.forms.layout."



I open the Jar file and the directory structure and class files are there!


Any help will be appreciated.

Thks.


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

Quique Britto
SOLVED



On 3 February 2011 12:42, Quique Britto <[hidden email]> wrote:
Hi guys,

need yr help, I had this problem in the past and to be honest can't remember how it was solved. I am trying to use the jgoodies forms layout as it seems to make life easier but I am unable to be able to use the clases.

My classpath shows .;C:\NetRexx\Projects\XXX\jgoodies-forms-1.4.0\jgoodies-forms-1.4.0.jar;

My Code shows.:
/* snip */
import javax.swing.
import com.jgoodies.forms.layout.

class XXX implements ...
...
...


when compiling (using jEdit 4.3.2 with NetrexxDE & Java version 1.6.0_23)  I get the following warning which says.:

compilation of "XXX" successful [9 classes, one warning]
Warning: no classes found for import from package "com.jgoodies.forms.layout."



I open the Jar file and the directory structure and class files are there!


Any help will be appreciated.

Thks.



_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

Robert L Hamilton
And, what was the solution?

Bobh

On Fri, Feb 4, 2011 at 6:47 AM, Quique Britto <[hidden email]> wrote:
SOLVED




On 3 February 2011 12:42, Quique Britto <[hidden email]> wrote:
Hi guys,

need yr help, I had this problem in the past and to be honest can't remember how it was solved. I am trying to use the jgoodies forms layout as it seems to make life easier but I am unable to be able to use the clases.

My classpath shows .;C:\NetRexx\Projects\XXX\jgoodies-forms-1.4.0\jgoodies-forms-1.4.0.jar;

My Code shows.:
/* snip */
import javax.swing.
import com.jgoodies.forms.layout.

class XXX implements ...
...
...


when compiling (using jEdit 4.3.2 with NetrexxDE & Java version 1.6.0_23)  I get the following warning which says.:

compilation of "XXX" successful [9 classes, one warning]
Warning: no classes found for import from package "com.jgoodies.forms.layout."



I open the Jar file and the directory structure and class files are there!


Any help will be appreciated.

Thks.



_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

Fernando Cassia-2
I´m not familiar with the way NetRexx works but in an ideal world, the
end user wouldn´t have to ever touch the classpath.

The best Java apps are those which can be run with

java -jar appname.jar

With the default class in the manifest file, and all files packaged in
a single .jar.

FC

On Fri, Feb 4, 2011 at 10:37 AM, Robert Hamilton <[hidden email]> wrote:
> And, what was the solution?

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

Nix, Robert P.
In reply to this post by Quique Britto
Re: [Ibm-netrexx] Re: Using classes in Jar files Ah... But what was the solution, so that others don’t fall into the same pit?

--
Robert P. Nix          Mayo Foundation        .~.
RO-OC-1-18             200 First Street SW    /V\
507-284-0844           Rochester, MN 55905   /( )\
-----                                        ^^-^^
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."



On 2/4/11 6:47 AM, "Quique Britto" <ebm1991@...> wrote:

SOLVED



On 3 February 2011 12:42, Quique Britto <ebm1991@...> wrote:
Hi guys,

need yr help, I had this problem in the past and to be honest can't remember how it was solved. I am trying to use the jgoodies forms layout as it seems to make life easier but I am unable to be able to use the clases.

My classpath shows .;C:\NetRexx\Projects\XXX\jgoodies-forms-1.4.0\jgoodies-forms-1.4.0.jar;

My Code shows.:
/* snip */
import javax.swing.
import com.jgoodies.forms.layout.

class XXX implements ...
...
...

when compiling (using jEdit 4.3.2 with NetrexxDE & Java version 1.6.0_23)  I get the following warning which says.:

compilation of "XXX" successful [9 classes, one warning]
Warning: no classes found for import from package "com.jgoodies.forms.layout."


I open the Jar file and the directory structure and class files are there!


Any help will be appreciated.

Thks.




_______________________________________________
Ibm-netrexx mailing list
Ibm-netrexx@...


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

Robert L Hamilton
Some people get the help but never share . . . .

BobH

On Fri, Feb 4, 2011 at 8:23 AM, RPN01 <[hidden email]> wrote:
Ah... But what was the solution, so that others don’t fall into the same pit?

--
Robert P. Nix          Mayo Foundation        .~.
RO-OC-1-18             200 First Street SW    /V\
507-284-0844           Rochester, MN 55905   /( )\
-----                                        ^^-^^
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."



On 2/4/11 6:47 AM, "Quique Britto" <ebm1991@...> wrote:

SOLVED



On 3 February 2011 12:42, Quique Britto <ebm1991@...> wrote:
Hi guys,

need yr help, I had this problem in the past and to be honest can't remember how it was solved. I am trying to use the jgoodies forms layout as it seems to make life easier but I am unable to be able to use the clases.

My classpath shows .;C:\NetRexx\Projects\XXX\jgoodies-forms-1.4.0\jgoodies-forms-1.4.0.jar;

My Code shows.:
/* snip */
import javax.swing.
import com.jgoodies.forms.layout.

class XXX implements ...
...
...

when compiling (using jEdit 4.3.2 with NetrexxDE & Java version 1.6.0_23)  I get the following warning which says.:

compilation of "XXX" successful [9 classes, one warning]
Warning: no classes found for import from package "com.jgoodies.forms.layout."


I open the Jar file and the directory structure and class files are there!


Any help will be appreciated.

Thks.




_______________________________________________
Ibm-netrexx mailing list
Ibm-netrexx@...


_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

Quique Britto
I simply typed the whole classpath in the field marked "classpath in the NetrexxDE.
To be honest why I have to do it this way is beyond me as my first post showed the claspath in Windows indicated where the jar file was.

What does the classpath field in NetrexxDE do that the Windows classpath cannot?


Quique



On 4 February 2011 15:38, Robert Hamilton <[hidden email]> wrote:
Some people get the help but never share . . . .

BobH


On Fri, Feb 4, 2011 at 8:23 AM, RPN01 <[hidden email]> wrote:
Ah... But what was the solution, so that others don’t fall into the same pit?

--
Robert P. Nix          Mayo Foundation        .~.
RO-OC-1-18             200 First Street SW    /V\
507-284-0844           Rochester, MN 55905   /( )\
-----                                        ^^-^^
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."



On 2/4/11 6:47 AM, "Quique Britto" <ebm1991@...> wrote:

SOLVED



On 3 February 2011 12:42, Quique Britto <ebm1991@...> wrote:
Hi guys,

need yr help, I had this problem in the past and to be honest can't remember how it was solved. I am trying to use the jgoodies forms layout as it seems to make life easier but I am unable to be able to use the clases.

My classpath shows .;C:\NetRexx\Projects\XXX\jgoodies-forms-1.4.0\jgoodies-forms-1.4.0.jar;

My Code shows.:
/* snip */
import javax.swing.
import com.jgoodies.forms.layout.

class XXX implements ...
...
...

when compiling (using jEdit 4.3.2 with NetrexxDE & Java version 1.6.0_23)  I get the following warning which says.:

compilation of "XXX" successful [9 classes, one warning]
Warning: no classes found for import from package "com.jgoodies.forms.layout."


I open the Jar file and the directory structure and class files are there!


Any help will be appreciated.

Thks.




_______________________________________________
Ibm-netrexx mailing list
Ibm-netrexx@...


_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

Kermit Kiser
I think this has been discussed here a few times before. The standard startup command for jEdit is of the form "java -jar path\jEdit.jar". For reasons that escape me, Java ignores all classpath specifications when started with the "-jar" operand, even those on the command line. I don't know why this is a big secret, but that is one reason why plugins such as NetRexxDE and NetRexxScript which run inside jEdit have to provide their own classpath setting. The other reason is that you sometimes need to alter the classpath for a given program, of course.

-- Kermit


On 2/4/2011 12:18 PM, Quique Britto wrote:
I simply typed the whole classpath in the field marked "classpath in the NetrexxDE.
To be honest why I have to do it this way is beyond me as my first post showed the claspath in Windows indicated where the jar file was.

What does the classpath field in NetrexxDE do that the Windows classpath cannot?


Quique



On 4 February 2011 15:38, Robert Hamilton <[hidden email]> wrote:
Some people get the help but never share . . . .

BobH


On Fri, Feb 4, 2011 at 8:23 AM, RPN01 <[hidden email]> wrote:
Ah... But what was the solution, so that others don’t fall into the same pit?

--
Robert P. Nix          Mayo Foundation        .~.
RO-OC-1-18             200 First Street SW    /V\
507-284-0844           Rochester, MN 55905   /( )\
-----                                        ^^-^^
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."



On 2/4/11 6:47 AM, "Quique Britto" <ebm1991@...> wrote:

SOLVED



On 3 February 2011 12:42, Quique Britto <ebm1991@...> wrote:
Hi guys,

need yr help, I had this problem in the past and to be honest can't remember how it was solved. I am trying to use the jgoodies forms layout as it seems to make life easier but I am unable to be able to use the clases.

My classpath shows .;C:\NetRexx\Projects\XXX\jgoodies-forms-1.4.0\jgoodies-forms-1.4.0.jar;

My Code shows.:
/* snip */
import javax.swing.
import com.jgoodies.forms.layout.

class XXX implements ...
...
...

when compiling (using jEdit 4.3.2 with NetrexxDE & Java version 1.6.0_23)  I get the following warning which says.:

compilation of "XXX" successful [9 classes, one warning]
Warning: no classes found for import from package "com.jgoodies.forms.layout."


I open the Jar file and the directory structure and class files are there!


Any help will be appreciated.

Thks.




_______________________________________________
Ibm-netrexx mailing list
Ibm-netrexx@...


_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]



_______________________________________________ Ibm-netrexx mailing list [hidden email]

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

David Requena
In reply to this post by Fernando Cassia-2
Fernando,
 
That makes only limited sense to mo me.
Oh, yes, of course, that is the way to go for a simple java app to be distributed to end users.
By simple I mean 'not using third party jars' libraries. Would you advocate taking apart NetRexxR.jar and including its contained classes into your own app jar? would that even be allowed by the EWS license? Oh, you could include a classpath attribute in your app's manifest and start littering your user's systems with multiple copies of common 3rd party libs. Then let them handle the lib versioning issue...
 
Anyway, that is not the point.
 
NetRexx and the jEdit netrexx development plugins are not end user applications but development tools. Their distributions cannot (and should not try to) distribute every jar library in existence. We developers need to be able to include and exclude libraries from various providers, sometimes these implement similar features we must choose among, name clashes exist, etc. In other words: we need full control over the classpath.Once we're ready to distribute, we properly package our apps for our users so they don't have to muck with classpath as long as posible.
 
Other issues exist. Take NetRexx itself, what 'main class' would you specify in the manifest file? NetRexxC? NetRexxR? both are valid choices which lead to different behaviours..
 
In short, I think 'java -jar' is definitelly not the silver bullet you seem to believe it is.

 
2011/2/4 Fernando Cassia <[hidden email]>
I´m not familiar with the way NetRexx works but in an ideal world, the
end user wouldn´t have to ever touch the classpath.

The best Java apps are those which can be run with

java -jar appname.jar

With the default class in the manifest file, and all files packaged in
a single .jar.

FC

On Fri, Feb 4, 2011 at 10:37 AM, Robert Hamilton <[hidden email]> wrote:
> And, what was the solution?

_______________________________________________
Ibm-netrexx mailing list
[hidden email]




--
Saludos / Regards,
David Requena


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

David Requena
In reply to this post by Quique Britto
Quique,
 
Sorry I didn't come back to you earlier, really busy lately... :-(
 
That cp field lets you do any crazy experiment you migh imagine to the classpath without ever upsetting any other java software installed on your system. How's that in terms of flexibility and safety? :-)
 
Also, changes in that field become effective inmediately. No need to go to system properties, advanced, environment to change and then restarting jedit as you would otherwise.
 
See my reply to Fernando for reasons these are 'good things'
 
By the way. If you don't feel like typing a classpath, just click the 'Classpath' word. It's a button which lets you click your way building cp using file explorer.

2011/2/4 Quique Britto <[hidden email]>
I simply typed the whole classpath in the field marked "classpath in the NetrexxDE.
To be honest why I have to do it this way is beyond me as my first post showed the claspath in Windows indicated where the jar file was.

What does the classpath field in NetrexxDE do that the Windows classpath cannot?


Quique




On 4 February 2011 15:38, Robert Hamilton <[hidden email]> wrote:
Some people get the help but never share . . . .

BobH


On Fri, Feb 4, 2011 at 8:23 AM, RPN01 <[hidden email]> wrote:
Ah... But what was the solution, so that others don’t fall into the same pit?

--
Robert P. Nix          Mayo Foundation        .~.
RO-OC-1-18             200 First Street SW    /V\
507-284-0844           Rochester, MN 55905   /( )\
-----                                        ^^-^^
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."



On 2/4/11 6:47 AM, "Quique Britto" <ebm1991@...> wrote:

SOLVED



On 3 February 2011 12:42, Quique Britto <ebm1991@...> wrote:
Hi guys,

need yr help, I had this problem in the past and to be honest can't remember how it was solved. I am trying to use the jgoodies forms layout as it seems to make life easier but I am unable to be able to use the clases.

My classpath shows .;C:\NetRexx\Projects\XXX\jgoodies-forms-1.4.0\jgoodies-forms-1.4.0.jar;

My Code shows.:
/* snip */
import javax.swing.
import com.jgoodies.forms.layout.

class XXX implements ...
...
...

when compiling (using jEdit 4.3.2 with NetrexxDE & Java version 1.6.0_23)  I get the following warning which says.:

compilation of "XXX" successful [9 classes, one warning]
Warning: no classes found for import from package "com.jgoodies.forms.layout."


I open the Jar file and the directory structure and class files are there!


Any help will be appreciated.

Thks.




_______________________________________________
Ibm-netrexx mailing list
Ibm-netrexx@...


_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]





--
Saludos / Regards,
David Requena


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

David Requena
In reply to this post by Kermit Kiser
Kermit,
 
I'd say the '-jar' is meant to deliver self-contained applications which is a different intent.
 
OTH jEdit implements a quite sofisticated class-loading mechanism that will load any classes contained in jar files located at its 'jars' directories.
That NetRexxR implements a non-standard class-lading mechanism which doesn't chain to that of the hosting environment, and how that impacts the interpreter behaviour under non plain-classpath loaders, is another story. One that we must look into ASAP if sources get ever released :-)
 
Note to MFC:
 
What I mean here (and Kermit in various previous instances too) is: on launch netrexx reads and inspects all classes available on the classpath system property. That yields major headaches when it is launched in an environment with a class loader other than de default one.
 
If that initial class readup cannot be avoided, then it should be targeted at 'all classes loadable by the current class loader and its parent class loaders'. That would give us:
 
- Access to classes loaded by any embedding environment but not in the classpath (jEdit, App servers, etc).
- Better behaviour when launched standalone. Try to compile an nrx file which seats at 'C:\' or '/' with '-cp .' and try to see which happens before: a) start of compilation, b) stack exahustion, c) the end of times. 
- Better feasibylity of the recently discused scripting jsr I think.
2011/2/5 Kermit Kiser <[hidden email]>
I think this has been discussed here a few times before. The standard startup command for jEdit is of the form "java -jar path\jEdit.jar". For reasons that escape me, Java ignores all classpath specifications when started with the "-jar" operand, even those on the command line. I don't know why this is a big secret, but that is one reason why plugins such as NetRexxDE and NetRexxScript which run inside jEdit have to provide their own classpath setting. The other reason is that you sometimes need to alter the classpath for a given program, of course.

-- Kermit



On 2/4/2011 12:18 PM, Quique Britto wrote:
I simply typed the whole classpath in the field marked "classpath in the NetrexxDE.
To be honest why I have to do it this way is beyond me as my first post showed the claspath in Windows indicated where the jar file was.

What does the classpath field in NetrexxDE do that the Windows classpath cannot?


Quique



On 4 February 2011 15:38, Robert Hamilton <[hidden email]> wrote:
Some people get the help but never share . . . .

BobH


On Fri, Feb 4, 2011 at 8:23 AM, RPN01 <[hidden email]> wrote:
Ah... But what was the solution, so that others don’t fall into the same pit?

--
Robert P. Nix          Mayo Foundation        .~.
RO-OC-1-18             200 First Street SW    /V\
507-284-0844           Rochester, MN 55905   /( )\
-----                                        ^^-^^
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."



On 2/4/11 6:47 AM, "Quique Britto" <ebm1991@...> wrote:

SOLVED



On 3 February 2011 12:42, Quique Britto <ebm1991@...> wrote:
Hi guys,

need yr help, I had this problem in the past and to be honest can't remember how it was solved. I am trying to use the jgoodies forms layout as it seems to make life easier but I am unable to be able to use the clases.

My classpath shows .;C:\NetRexx\Projects\XXX\jgoodies-forms-1.4.0\jgoodies-forms-1.4.0.jar;

My Code shows.:
/* snip */
import javax.swing.
import com.jgoodies.forms.layout.

class XXX implements ...
...
...

when compiling (using jEdit 4.3.2 with NetrexxDE & Java version 1.6.0_23)  I get the following warning which says.:

compilation of "XXX" successful [9 classes, one warning]
Warning: no classes found for import from package "com.jgoodies.forms.layout."


I open the Jar file and the directory structure and class files are there!


Any help will be appreciated.

Thks.




_______________________________________________
Ibm-netrexx mailing list
Ibm-netrexx@...


_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]



_______________________________________________ Ibm-netrexx mailing list [hidden email]

_______________________________________________
Ibm-netrexx mailing list
[hidden email]





--
Saludos / Regards,
David Requena


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

measel
In reply to this post by Kermit Kiser

The reason that –jar does not take a classpath specification is that executable jars are expected to be self contained by design.

 

The classes referenced are controlled by the manifest in the jar file.  Intentionally.

 

It’s easy enough to make your own jar file that contains the referenced jars and your code and a manifest that allows it to be executed with –jar.

 

From: [hidden email] [mailto:[hidden email]] On B
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Re: Using classes in Jar files

 

I think this has been discussed here a few times before. The standard startup command for jEdit is of the form "java -jar path\jEdit.jar". For reasons that escape me, Java ignores all classpath specifications when started with the "-jar" operand, even those on the command line. I don't know why this is a big secret, but that is one reason why plugins such as NetRexxDE and NetRexxScript which run inside jEdit have to provide their own classpath setting. The other reason is that you sometimes need to alter the classpath for a given program, of course.

-- Kermit


On 2/4/2011 12:18 PM, Quique Britto wrote:

I simply typed the whole classpath in the field marked "classpath in the NetrexxDE.
To be honest why I have to do it this way is beyond me as my first post showed the claspath in Windows indicated where the jar file was.

What does the classpath field in NetrexxDE do that the Windows classpath cannot?


Quique


On 4 February 2011 15:38, Robert Hamilton <[hidden email]> wrote:

Some people get the help but never share . . . .

BobH

 

On Fri, Feb 4, 2011 at 8:23 AM, RPN01 <[hidden email]> wrote:

Ah... But what was the solution, so that others don’t fall into the same pit?

--
Robert P. Nix          Mayo Foundation        .~.
RO-OC-1-18             200 First Street SW    /V\
507-284-0844           Rochester, MN 55905   /( )\
-----                                        ^^-^^
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."



On 2/4/11 6:47 AM, "Quique Britto" <ebm1991@...> wrote:

SOLVED



On 3 February 2011 12:42, Quique Britto <ebm1991@...> wrote:

Hi guys,

need yr help, I had this problem in the past and to be honest can't remember how it was solved. I am trying to use the jgoodies forms layout as it seems to make life easier but I am unable to be able to use the clases.

My classpath shows .;C:\NetRexx\Projects\XXX\jgoodies-forms-1.4.0\jgoodies-forms-1.4.0.jar;

My Code shows.:
/* snip */
import javax.swing.
import com.jgoodies.forms.layout.

class XXX implements ...
...
...

when compiling (using jEdit 4.3.2 with NetrexxDE & Java version 1.6.0_23)  I get the following warning which says.:

compilation of "XXX" successful [9 classes, one warning]
Warning: no classes found for import from package "com.jgoodies.forms.layout."


I open the Jar file and the directory structure and class files are there!


Any help will be appreciated.

Thks.

 


_______________________________________________
Ibm-netrexx mailing list
Ibm-netrexx@...


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

 


_______________________________________________
Ibm-netrexx mailing list
[hidden email]



 
 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
 

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

Mike Cowlishaw
In reply to this post by David Requena
The CLASSPATH in Java was (and by the sound of it, still is) a major headache, and as new 'features' were added it got more and more complex.  NetRexx tries/tried (I think) to make it work as easily as possible for new users by doing as much as it could to determine the classpath rather than relying on 'environment variables' and the like that would often be set up wrong.  There are also some complications when NetRexx itself is supplying a classloader (for interpretation).  I really have completely forgotten the details and I suspect I'd rather not remember them!  :-)
 
Perhaps you just need to add a  [NO]AUTOCLASSPATH option to turn that off when it is not helpful.
 
Mike
 
 


From: [hidden email] [mailto:[hidden email]] On Behalf Of David Requena
Sent: 05 February 2011 11:04
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Re: Using classes in Jar files

Kermit,
 
I'd say the '-jar' is meant to deliver self-contained applications which is a different intent.
 
OTH jEdit implements a quite sofisticated class-loading mechanism that will load any classes contained in jar files located at its 'jars' directories.
That NetRexxR implements a non-standard class-lading mechanism which doesn't chain to that of the hosting environment, and how that impacts the interpreter behaviour under non plain-classpath loaders, is another story. One that we must look into ASAP if sources get ever released :-)
 
Note to MFC:
 
What I mean here (and Kermit in various previous instances too) is: on launch netrexx reads and inspects all classes available on the classpath system property. That yields major headaches when it is launched in an environment with a class loader other than de default one.
 
If that initial class readup cannot be avoided, then it should be targeted at 'all classes loadable by the current class loader and its parent class loaders'. That would give us:
 
- Access to classes loaded by any embedding environment but not in the classpath (jEdit, App servers, etc).
- Better behaviour when launched standalone. Try to compile an nrx file which seats at 'C:\' or '/' with '-cp .' and try to see which happens before: a) start of compilation, b) stack exahustion, c) the end of times. 
- Better feasibylity of the recently discused scripting jsr I think.
2011/2/5 Kermit Kiser <[hidden email]>
I think this has been discussed here a few times before. The standard startup command for jEdit is of the form "java -jar path\jEdit.jar". For reasons that escape me, Java ignores all classpath specifications when started with the "-jar" operand, even those on the command line. I don't know why this is a big secret, but that is one reason why plugins such as NetRexxDE and NetRexxScript which run inside jEdit have to provide their own classpath setting. The other reason is that you sometimes need to alter the classpath for a given program, of course.

-- Kermit



On 2/4/2011 12:18 PM, Quique Britto wrote:
I simply typed the whole classpath in the field marked "classpath in the NetrexxDE.
To be honest why I have to do it this way is beyond me as my first post showed the claspath in Windows indicated where the jar file was.

What does the classpath field in NetrexxDE do that the Windows classpath cannot?


Quique



On 4 February 2011 15:38, Robert Hamilton <[hidden email]> wrote:
Some people get the help but never share . . . .

BobH


On Fri, Feb 4, 2011 at 8:23 AM, RPN01 <[hidden email]> wrote:
Ah... But what was the solution, so that others don’t fall into the same pit?

--
Robert P. Nix          Mayo Foundation        .~.
RO-OC-1-18             200 First Street SW    /V\
507-284-0844           Rochester, MN 55905   /( )\
-----                                        ^^-^^
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."



On 2/4/11 6:47 AM, "Quique Britto" <ebm1991@...> wrote:

SOLVED



On 3 February 2011 12:42, Quique Britto <ebm1991@...> wrote:
Hi guys,

need yr help, I had this problem in the past and to be honest can't remember how it was solved. I am trying to use the jgoodies forms layout as it seems to make life easier but I am unable to be able to use the clases.

My classpath shows .;C:\NetRexx\Projects\XXX\jgoodies-forms-1.4.0\jgoodies-forms-1.4.0.jar;

My Code shows.:
/* snip */
import javax.swing.
import com.jgoodies.forms.layout.

class XXX implements ...
...
...

when compiling (using jEdit 4.3.2 with NetrexxDE & Java version 1.6.0_23)  I get the following warning which says.:

compilation of "XXX" successful [9 classes, one warning]
Warning: no classes found for import from package "com.jgoodies.forms.layout."


I open the Jar file and the directory structure and class files are there!


Any help will be appreciated.

Thks.




_______________________________________________
Ibm-netrexx mailing list
Ibm-netrexx@...


_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]



_______________________________________________ Ibm-netrexx mailing list [hidden email]

_______________________________________________
Ibm-netrexx mailing list
[hidden email]





--
Saludos / Regards,
David Requena


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

Thomas.Schneider.Wien
May I add the the classpath is really helpful.

The problem is and was that you had to *manually* modify it for each package (software package, contained in a JAR File) in turn...

And that causes the headache, when adding all the pieces together :-(

Greeting from Vienna, Austria, Europe (*no Kanguroos, I'm sorry*)

Thomas.
======================================================
Am 07.02.2011 15:15, schrieb Mike Cowlishaw:
The CLASSPATH in Java was (and by the sound of it, still is) a major headache, and as new 'features' were added it got more and more complex.  NetRexx tries/tried (I think) to make it work as easily as possible for new users by doing as much as it could to determine the classpath rather than relying on 'environment variables' and the like that would often be set up wrong.  There are also some complications when NetRexx itself is supplying a classloader (for interpretation).  I really have completely forgotten the details and I suspect I'd rather not remember them!  :-)
 
Perhaps you just need to add a  [NO]AUTOCLASSPATH option to turn that off when it is not helpful.
 
Mike
 
 


From: [hidden email] [[hidden email]] On Behalf Of David Requena
Sent: 05 February 2011 11:04
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Re: Using classes in Jar files

Kermit,
 
I'd say the '-jar' is meant to deliver self-contained applications which is a different intent.
 
OTH jEdit implements a quite sofisticated class-loading mechanism that will load any classes contained in jar files located at its 'jars' directories.
That NetRexxR implements a non-standard class-lading mechanism which doesn't chain to that of the hosting environment, and how that impacts the interpreter behaviour under non plain-classpath loaders, is another story. One that we must look into ASAP if sources get ever released :-)
 
Note to MFC:
 
What I mean here (and Kermit in various previous instances too) is: on launch netrexx reads and inspects all classes available on the classpath system property. That yields major headaches when it is launched in an environment with a class loader other than de default one.
 
If that initial class readup cannot be avoided, then it should be targeted at 'all classes loadable by the current class loader and its parent class loaders'. That would give us:
 
- Access to classes loaded by any embedding environment but not in the classpath (jEdit, App servers, etc).
- Better behaviour when launched standalone. Try to compile an nrx file which seats at 'C:\' or '/' with '-cp .' and try to see which happens before: a) start of compilation, b) stack exahustion, c) the end of times. 
- Better feasibylity of the recently discused scripting jsr I think.
2011/2/5 Kermit Kiser <[hidden email]>
I think this has been discussed here a few times before. The standard startup command for jEdit is of the form "java -jar path\jEdit.jar". For reasons that escape me, Java ignores all classpath specifications when started with the "-jar" operand, even those on the command line. I don't know why this is a big secret, but that is one reason why plugins such as NetRexxDE and NetRexxScript which run inside jEdit have to provide their own classpath setting. The other reason is that you sometimes need to alter the classpath for a given program, of course.

-- Kermit



On 2/4/2011 12:18 PM, Quique Britto wrote:
I simply typed the whole classpath in the field marked "classpath in the NetrexxDE.
To be honest why I have to do it this way is beyond me as my first post showed the claspath in Windows indicated where the jar file was.

What does the classpath field in NetrexxDE do that the Windows classpath cannot?


Quique



On 4 February 2011 15:38, Robert Hamilton <[hidden email]> wrote:
Some people get the help but never share . . . .

BobH


On Fri, Feb 4, 2011 at 8:23 AM, RPN01 <[hidden email]> wrote:
Ah... But what was the solution, so that others don’t fall into the same pit?

--
Robert P. Nix          Mayo Foundation        .~.
RO-OC-1-18             200 First Street SW    /V\
507-284-0844           Rochester, MN 55905   /( )\
-----                                        ^^-^^
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."



On 2/4/11 6:47 AM, "Quique Britto" <ebm1991@...> wrote:

SOLVED



On 3 February 2011 12:42, Quique Britto <ebm1991@...> wrote:
Hi guys,

need yr help, I had this problem in the past and to be honest can't remember how it was solved. I am trying to use the jgoodies forms layout as it seems to make life easier but I am unable to be able to use the clases.

My classpath shows .;C:\NetRexx\Projects\XXX\jgoodies-forms-1.4.0\jgoodies-forms-1.4.0.jar;

My Code shows.:
/* snip */
import javax.swing.
import com.jgoodies.forms.layout.

class XXX implements ...
...
...

when compiling (using jEdit 4.3.2 with NetrexxDE & Java version 1.6.0_23)  I get the following warning which says.:

compilation of "XXX" successful [9 classes, one warning]
Warning: no classes found for import from package "com.jgoodies.forms.layout."


I open the Jar file and the directory structure and class files are there!


Any help will be appreciated.

Thks.




_______________________________________________
Ibm-netrexx mailing list
Ibm-netrexx@...


_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]



_______________________________________________ Ibm-netrexx mailing list [hidden email]

_______________________________________________
Ibm-netrexx mailing list
[hidden email]





--
Saludos / Regards,
David Requena

_______________________________________________ Ibm-netrexx mailing list [hidden email]


--
Thomas Schneider (www.thsitc.com)

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Tom. (ths@db-123.com)
Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

measel

MVS has DD statements, Java has a classpath.   Every OS has some way to specify where to find programs.

 

In newer versions of java you can specify a directory rather than individual jar files.

 

Stop whining about it and learn how it works. 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Thomas Schneider
Sent: Monday, February 07, 2011 8:28 AM
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Re: Using classes in Jar files

 

May I add the the classpath is really helpful.

The problem is and was that you had to *manually* modify it for each package (software package, contained in a JAR File) in turn...

And that causes the headache, when adding all the pieces together :-(

Greeting from Vienna, Austria, Europe (*no Kanguroos, I'm sorry*)

Thomas.
======================================================
Am 07.02.2011 15:15, schrieb Mike Cowlishaw:

The CLASSPATH in Java was (and by the sound of it, still is) a major headache, and as new 'features' were added it got more and more complex.  NetRexx tries/tried (I think) to make it work as easily as possible for new users by doing as much as it could to determine the classpath rather than relying on 'environment variables' and the like that would often be set up wrong.  There are also some complications when NetRexx itself is supplying a classloader (for interpretation).  I really have completely forgotten the details and I suspect I'd rather not remember them!  :-)

 

Perhaps you just need to add a  [NO]AUTOCLASSPATH option to turn that off when it is not helpful.

 

Mike

 

 

 


From: [hidden email] [[hidden email]] On Behalf Of David Requena
Sent: 05 February 2011 11:04
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Re: Using classes in Jar files

Kermit,

 

I'd say the '-jar' is meant to deliver self-contained applications which is a different intent.

 

OTH jEdit implements a quite sofisticated class-loading mechanism that will load any classes contained in jar files located at its 'jars' directories.

That NetRexxR implements a non-standard class-lading mechanism which doesn't chain to that of the hosting environment, and how that impacts the interpreter behaviour under non plain-classpath loaders, is another story. One that we must look into ASAP if sources get ever released :-)

 

Note to MFC:

 

What I mean here (and Kermit in various previous instances too) is: on launch netrexx reads and inspects all classes available on the classpath system property. That yields major headaches when it is launched in an environment with a class loader other than de default one.

 

If that initial class readup cannot be avoided, then it should be targeted at 'all classes loadable by the current class loader and its parent class loaders'. That would give us:

 

- Access to classes loaded by any embedding environment but not in the classpath (jEdit, App servers, etc).

- Better behaviour when launched standalone. Try to compile an nrx file which seats at 'C:\' or '/' with '-cp .' and try to see which happens before: a) start of compilation, b) stack exahustion, c) the end of times. 
- Better feasibylity of the recently discused scripting jsr I think.

2011/2/5 Kermit Kiser <[hidden email]>

I think this has been discussed here a few times before. The standard startup command for jEdit is of the form "java -jar path\jEdit.jar". For reasons that escape me, Java ignores all classpath specifications when started with the "-jar" operand, even those on the command line. I don't know why this is a big secret, but that is one reason why plugins such as NetRexxDE and NetRexxScript which run inside jEdit have to provide their own classpath setting. The other reason is that you sometimes need to alter the classpath for a given program, of course.

-- Kermit




On 2/4/2011 12:18 PM, Quique Britto wrote:

I simply typed the whole classpath in the field marked "classpath in the NetrexxDE.
To be honest why I have to do it this way is beyond me as my first post showed the claspath in Windows indicated where the jar file was.

What does the classpath field in NetrexxDE do that the Windows classpath cannot?


Quique


On 4 February 2011 15:38, Robert Hamilton <[hidden email]> wrote:

Some people get the help but never share . . . .

BobH

 

On Fri, Feb 4, 2011 at 8:23 AM, RPN01 <[hidden email]> wrote:

Ah... But what was the solution, so that others don’t fall into the same pit?

--
Robert P. Nix          Mayo Foundation        .~.
RO-OC-1-18             200 First Street SW    /V\
507-284-0844           Rochester, MN 55905   /( )\
-----                                        ^^-^^
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."



On 2/4/11 6:47 AM, "Quique Britto" <ebm1991@...> wrote:

SOLVED



On 3 February 2011 12:42, Quique Britto <ebm1991@...> wrote:

Hi guys,

need yr help, I had this problem in the past and to be honest can't remember how it was solved. I am trying to use the jgoodies forms layout as it seems to make life easier but I am unable to be able to use the clases.

My classpath shows .;C:\NetRexx\Projects\XXX\jgoodies-forms-1.4.0\jgoodies-forms-1.4.0.jar;

My Code shows.:
/* snip */
import javax.swing.
import com.jgoodies.forms.layout.

class XXX implements ...
...
...

when compiling (using jEdit 4.3.2 with NetrexxDE & Java version 1.6.0_23)  I get the following warning which says.:

compilation of "XXX" successful [9 classes, one warning]
Warning: no classes found for import from package "com.jgoodies.forms.layout."


I open the Jar file and the directory structure and class files are there!


Any help will be appreciated.

Thks.

 


_______________________________________________
Ibm-netrexx mailing list
Ibm-netrexx@...


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

 


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

 

 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
 


_______________________________________________
Ibm-netrexx mailing list
[hidden email]




--
Saludos / Regards,
David Requena

 
 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
 

 

--
Thomas Schneider (www.thsitc.com)


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

Kermit Kiser
I don't think classpath is the problem. The classloader mechanism which uses it is a mess however. There is no easy way to "unload" classes in a dynamic environment that needs to reload components at times. And in the NetRexx environment, things are just enough different from the standard to cause problems sometimes.

-- Kermit


On 2/7/2011 6:53 AM, Measel, Mike wrote:

MVS has DD statements, Java has a classpath.   Every OS has some way to specify where to find programs.

 

In newer versions of java you can specify a directory rather than individual jar files.

 

Stop whining about it and learn how it works. 

 

From: [hidden email] [[hidden email]] On Behalf Of Thomas Schneider
Sent: Monday, February 07, 2011 8:28 AM
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Re: Using classes in Jar files

 

May I add the the classpath is really helpful.

The problem is and was that you had to *manually* modify it for each package (software package, contained in a JAR File) in turn...

And that causes the headache, when adding all the pieces together :-(

Greeting from Vienna, Austria, Europe (*no Kanguroos, I'm sorry*)

Thomas.
======================================================
Am 07.02.2011 15:15, schrieb Mike Cowlishaw:

The CLASSPATH in Java was (and by the sound of it, still is) a major headache, and as new 'features' were added it got more and more complex.  NetRexx tries/tried (I think) to make it work as easily as possible for new users by doing as much as it could to determine the classpath rather than relying on 'environment variables' and the like that would often be set up wrong.  There are also some complications when NetRexx itself is supplying a classloader (for interpretation).  I really have completely forgotten the details and I suspect I'd rather not remember them!  :-)

 

Perhaps you just need to add a  [NO]AUTOCLASSPATH option to turn that off when it is not helpful.

 

Mike

 

 

 


From: [hidden email] [[hidden email]] On Behalf Of David Requena
Sent: 05 February 2011 11:04
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Re: Using classes in Jar files

Kermit,

 

I'd say the '-jar' is meant to deliver self-contained applications which is a different intent.

 

OTH jEdit implements a quite sofisticated class-loading mechanism that will load any classes contained in jar files located at its 'jars' directories.

That NetRexxR implements a non-standard class-lading mechanism which doesn't chain to that of the hosting environment, and how that impacts the interpreter behaviour under non plain-classpath loaders, is another story. One that we must look into ASAP if sources get ever released :-)

 

Note to MFC:

 

What I mean here (and Kermit in various previous instances too) is: on launch netrexx reads and inspects all classes available on the classpath system property. That yields major headaches when it is launched in an environment with a class loader other than de default one.

 

If that initial class readup cannot be avoided, then it should be targeted at 'all classes loadable by the current class loader and its parent class loaders'. That would give us:

 

- Access to classes loaded by any embedding environment but not in the classpath (jEdit, App servers, etc).

- Better behaviour when launched standalone. Try to compile an nrx file which seats at 'C:\' or '/' with '-cp .' and try to see which happens before: a) start of compilation, b) stack exahustion, c) the end of times. 
- Better feasibylity of the recently discused scripting jsr I think.

2011/2/5 Kermit Kiser <[hidden email]>

I think this has been discussed here a few times before. The standard startup command for jEdit is of the form "java -jar path\jEdit.jar". For reasons that escape me, Java ignores all classpath specifications when started with the "-jar" operand, even those on the command line. I don't know why this is a big secret, but that is one reason why plugins such as NetRexxDE and NetRexxScript which run inside jEdit have to provide their own classpath setting. The other reason is that you sometimes need to alter the classpath for a given program, of course.

-- Kermit




On 2/4/2011 12:18 PM, Quique Britto wrote:

I simply typed the whole classpath in the field marked "classpath in the NetrexxDE.
To be honest why I have to do it this way is beyond me as my first post showed the claspath in Windows indicated where the jar file was.

What does the classpath field in NetrexxDE do that the Windows classpath cannot?


Quique


On 4 February 2011 15:38, Robert Hamilton <[hidden email]> wrote:

Some people get the help but never share . . . .

BobH

 

On Fri, Feb 4, 2011 at 8:23 AM, RPN01 <[hidden email]> wrote:

Ah... But what was the solution, so that others don’t fall into the same pit?

--
Robert P. Nix          Mayo Foundation        .~.
RO-OC-1-18             200 First Street SW    /V\
507-284-0844           Rochester, MN 55905   /( )\
-----                                        ^^-^^
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."



On 2/4/11 6:47 AM, "Quique Britto" <ebm1991@...> wrote:

SOLVED



On 3 February 2011 12:42, Quique Britto <ebm1991@...> wrote:

Hi guys,

need yr help, I had this problem in the past and to be honest can't remember how it was solved. I am trying to use the jgoodies forms layout as it seems to make life easier but I am unable to be able to use the clases.

My classpath shows .;C:\NetRexx\Projects\XXX\jgoodies-forms-1.4.0\jgoodies-forms-1.4.0.jar;

My Code shows.:
/* snip */
import javax.swing.
import com.jgoodies.forms.layout.

class XXX implements ...
...
...

when compiling (using jEdit 4.3.2 with NetrexxDE & Java version 1.6.0_23)  I get the following warning which says.:

compilation of "XXX" successful [9 classes, one warning]
Warning: no classes found for import from package "com.jgoodies.forms.layout."


I open the Jar file and the directory structure and class files are there!


Any help will be appreciated.

Thks.

 


_______________________________________________
Ibm-netrexx mailing list
Ibm-netrexx@...


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

 


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

 

 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
 


_______________________________________________
Ibm-netrexx mailing list
[hidden email]




--
Saludos / Regards,
David Requena

 
 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
 

 

--
Thomas Schneider (www.thsitc.com)

_______________________________________________ Ibm-netrexx mailing list [hidden email]

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using classes in Jar files

Thomas.Schneider.Wien

Hello Kermit, good to hear that you are back in the U.S.A.!!!

I only hope you had an enjoyable vacation :-)

The rest are questions below! Thomas.
==========================================================
Am 07.02.2011 22:11, schrieb Kermit Kiser:
I don't think classpath is the problem. The classloader mechanism which uses it is a mess however. There is no easy way to "unload" classes in a dynamic environment that needs to reload components at times.
ok, so far !
And in the NetRexx environment, things are just enough different from the standard to cause problems sometimes.



Could you, please, explain in some more details which or what problems do arise in the NetRexx environment, please?

-- Kermit


On 2/7/2011 6:53 AM, Measel, Mike wrote:

MVS has DD statements, Java has a classpath.   Every OS has some way to specify where to find programs.

 

In newer versions of java you can specify a directory rather than individual jar files.

 

Stop whining about it and learn how it works. 

 

From: [hidden email] [[hidden email]] On Behalf Of Thomas Schneider
Sent: Monday, February 07, 2011 8:28 AM
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Re: Using classes in Jar files

 

May I add the the classpath is really helpful.

The problem is and was that you had to *manually* modify it for each package (software package, contained in a JAR File) in turn...

And that causes the headache, when adding all the pieces together :-(

Greeting from Vienna, Austria, Europe (*no Kanguroos, I'm sorry*)

Thomas.
======================================================
Am 07.02.2011 15:15, schrieb Mike Cowlishaw:

The CLASSPATH in Java was (and by the sound of it, still is) a major headache, and as new 'features' were added it got more and more complex.  NetRexx tries/tried (I think) to make it work as easily as possible for new users by doing as much as it could to determine the classpath rather than relying on 'environment variables' and the like that would often be set up wrong.  There are also some complications when NetRexx itself is supplying a classloader (for interpretation).  I really have completely forgotten the details and I suspect I'd rather not remember them!  :-)

 

Perhaps you just need to add a  [NO]AUTOCLASSPATH option to turn that off when it is not helpful.

 

Mike

 

 

 


From: [hidden email] [[hidden email]] On Behalf Of David Requena
Sent: 05 February 2011 11:04
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Re: Using classes in Jar files

Kermit,

 

I'd say the '-jar' is meant to deliver self-contained applications which is a different intent.

 

OTH jEdit implements a quite sofisticated class-loading mechanism that will load any classes contained in jar files located at its 'jars' directories.

That NetRexxR implements a non-standard class-lading mechanism which doesn't chain to that of the hosting environment, and how that impacts the interpreter behaviour under non plain-classpath loaders, is another story. One that we must look into ASAP if sources get ever released :-)

 

Note to MFC:

 

What I mean here (and Kermit in various previous instances too) is: on launch netrexx reads and inspects all classes available on the classpath system property. That yields major headaches when it is launched in an environment with a class loader other than de default one.

 

If that initial class readup cannot be avoided, then it should be targeted at 'all classes loadable by the current class loader and its parent class loaders'. That would give us:

 

- Access to classes loaded by any embedding environment but not in the classpath (jEdit, App servers, etc).

- Better behaviour when launched standalone. Try to compile an nrx file which seats at 'C:\' or '/' with '-cp .' and try to see which happens before: a) start of compilation, b) stack exahustion, c) the end of times. 
- Better feasibylity of the recently discused scripting jsr I think.

2011/2/5 Kermit Kiser <[hidden email]>

I think this has been discussed here a few times before. The standard startup command for jEdit is of the form "java -jar path\jEdit.jar". For reasons that escape me, Java ignores all classpath specifications when started with the "-jar" operand, even those on the command line. I don't know why this is a big secret, but that is one reason why plugins such as NetRexxDE and NetRexxScript which run inside jEdit have to provide their own classpath setting. The other reason is that you sometimes need to alter the classpath for a given program, of course.

-- Kermit




On 2/4/2011 12:18 PM, Quique Britto wrote:

I simply typed the whole classpath in the field marked "classpath in the NetrexxDE.
To be honest why I have to do it this way is beyond me as my first post showed the claspath in Windows indicated where the jar file was.

What does the classpath field in NetrexxDE do that the Windows classpath cannot?


Quique


On 4 February 2011 15:38, Robert Hamilton <[hidden email]> wrote:

Some people get the help but never share . . . .

BobH

 

On Fri, Feb 4, 2011 at 8:23 AM, RPN01 <[hidden email]> wrote:

Ah... But what was the solution, so that others don’t fall into the same pit?

--
Robert P. Nix          Mayo Foundation        .~.
RO-OC-1-18             200 First Street SW    /V\
507-284-0844           Rochester, MN 55905   /( )\
-----                                        ^^-^^
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."



On 2/4/11 6:47 AM, "Quique Britto" <ebm1991@...> wrote:

SOLVED



On 3 February 2011 12:42, Quique Britto <ebm1991@...> wrote:

Hi guys,

need yr help, I had this problem in the past and to be honest can't remember how it was solved. I am trying to use the jgoodies forms layout as it seems to make life easier but I am unable to be able to use the clases.

My classpath shows .;C:\NetRexx\Projects\XXX\jgoodies-forms-1.4.0\jgoodies-forms-1.4.0.jar;

My Code shows.:
/* snip */
import javax.swing.
import com.jgoodies.forms.layout.

class XXX implements ...
...
...

when compiling (using jEdit 4.3.2 with NetrexxDE & Java version 1.6.0_23)  I get the following warning which says.:

compilation of "XXX" successful [9 classes, one warning]
Warning: no classes found for import from package "com.jgoodies.forms.layout."


I open the Jar file and the directory structure and class files are there!


Any help will be appreciated.

Thks.

 


_______________________________________________
Ibm-netrexx mailing list
Ibm-netrexx@...


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

 


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

 

 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
 


_______________________________________________
Ibm-netrexx mailing list
[hidden email]




--
Saludos / Regards,
David Requena

 
 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
 

 

--
Thomas Schneider (www.thsitc.com)

_______________________________________________ Ibm-netrexx mailing list [hidden email]
_______________________________________________ Ibm-netrexx mailing list [hidden email]


--
Thomas Schneider (www.thsitc.com)

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Tom. (ths@db-123.com)