Importing Classes

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

Re: Error Message Guide (was Importing Classes)

Thomas.Schneider.Wien
May I offer to translate all NetRexx error messages to *german*, when
need arises ??

When someone would send me the complete list of error messages, I could
start immediately.

Thomas Schneider.
==================================================================
Chip Davis schrieb:

> It would be a considerable challenge to make NetRexx smart enough to
> prevent Java execution error messages, wouldn't it? :-)
>
> However, a comprehensive explanation of NetRexx error messages sounds
> like a great stand-alone project for someone.  As would national
> language translations.
>
> -Chip-
>
> On 3/24/10 16:38 Mike Cowlishaw said:
>> Also, if the message was weird/obscure, it could well have come from
>> Java  [which is still a NetRexxC problem, as NetRexxC should prevent
>> anything bad getting to Java, specifically to avoid the horrible Java
>> messages ... :-) ].
>>
>>    
>> ------------------------------------------------------------------------
>>     *From:* Kermit Kiser
>>
>>     NetRexx needs a comprehensive guide to all error and warning
>>     messages with detailed descriptions of meanings and possible causes.
>>     It seems like a good idea to create one for the open source release.
>>     Anyone else agree?
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>
>

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

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

Re: Error Message Guide (was Importing Classes)

David Requena
In reply to this post by Mike Cowlishaw
Mike,

This is definitely a NetRexxC compile time warning message
in the format shown bellow (I guess the '<<<<' markers were
Quique's way of emphasizing the actual text)

[C:\Britto\myxls.nrx 2 8 3] Warning: No classes found for import from package 'org.apache.poi.ss.usermodel.'

I've seen this warning in 3 different situations over time:

- an import instruction for a package which indeed exists but contains
  no classes (at the time the directory contained *.nrx sources but
  not the corresponding *.class classes). Here I think the warning is
  absolutely OK.

- an import for a package which does not exist (misspelled, for instance).
  I'd rather flag this as an error than a warning. I would also change
  the text to some variation of 'Package not found ...' instead of the current
  somewhat misleading one.

- a correct import instruction without the actual classes properly
  included in the classpath. This is really a variant of the second one.

---
Saludos / Kind regards.
David Requena

El 24/03/2010 21:23, Mike Cowlishaw escribió:
OK, thanks.  Pretty sure anything starting '<<<<' is not a NetRexxC message.
 
Mike


From: [hidden email] [[hidden email]] On Behalf Of Kermit Kiser
Sent: 24 March 2010 20:02
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Error Message Guide (was Importing Classes)

Hi Mike ;

Quique's original message was the following:


Quique Britto wrote:
Hi all.

I have extracted the poi-bin-3.6-20091214.zip to my c: and the C:\poi-3.6\poi-3.6-20091214.jar is shown in my classpath. This set of classes allows the reading and writing of XLS files from within java.

My program shows import org.apache.poi.ss.usermodel. and program compiles ok but shows the following warning.:

<<<<  no classes found for import from package  org.apache.poi.ss.usermodel  >>>>

but this class (and more) can be seen inside the jar file. 


Am I missing something?
  
I have no idea what is in the jar file he mentioned.

My question is this:  If an import ends with a period as in "a.b.c." will class "a.b.c" be imported along with anything that begins with "a.b.c."?

-- Kermit



Mike Cowlishaw wrote:
Note my careful use of 'NetRexxC' .. yes, runtime messages outside of scope
:-).  (Still no idea if the message in question was runtime or
compiletime).

Mike
_______________________________________________ Ibm-netrexx mailing list [hidden email]

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Importing Classes

David Requena
In reply to this post by measel
Quique,

Was that it? Tried miscasing on my box but still couldn't reproduce.


---
Saludos / Kind regards.
David Requena

El 24/03/2010 14:49, Measel, Mike escribió:

Quique, in your example the directory is uppercase but on the classpath it is lower ?  Java is case sensitive even though windows is not.

 

From: [hidden email] [[hidden email]] On Behalf Of David Requena
Sent: Wednesday, March 24, 2010 8:04 AM
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Importing Classes

 

Quique,

Oh I see, that's why you get the warning but no compilation error.

The classpath shows? You have this on a CLASSPATH environment variable?

Tried your code and could not reproduce the behaviour. It compiled ok with:

 java -cp ".;C:\home\drequena\dev\NetRexx\lib\NetRexxC.jar;C:\Java\jdk1.6.0_16\lib\tools.jar;.\poi-3.6-20091214.jar" COM.ibm.netrexx.process.NetRexxC myxls.nrx

Note that 'Program Files' includes a space. Did you use quotes when adding it to classpath?
I would expect a ClassNotFoundException if this was the culprit but you never know.

---
Saludos / Kind regards.
David Requena


El 24/03/2010 11:59, Quique Britto escribió:

Hi again,

the compilation is successful because I have not tried to access the classes, I want to get rid of this warning.
here is a cut down version of my program which reproduces this warning.

the poi package is located at C:\POI-3.6\poi-3.6-20091214.jar and the classpath shows (using copy n paste)
.;C:\Program Files\Java\jdk1.6.0_10\lib\tools.jar;C:\poi-3.6\poi-3.6-20091214.jar;

import javax.swing.
import org.apache.poi.ss.usermodel.

class myxls
method main( args=String[] ) static
  mainwindow = JFrame( "Excel Example" )
  mainwindow.setLayout( GridLayout( 1,1 ))

  -- create label
  txtlabel   = JLabel( "excel contents will be shown here", Jlabel.CENTER )
  mainwindow.add( txtlabel )
 
  -- open excel file
 
  -- read contents & show in label

  -- set default operation for the Frame
  mainwindow.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE )

  -- set frame size and make visible
  mainwindow.setSize( 600,100 )
  mainwindow.setVisible( 1 )

_______________________________________________ Ibm-netrexx mailing list [hidden email]

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Error Message Guide (was Importing Classes)

Quique Britto
In reply to this post by Mike Cowlishaw
the "<<<<" was added by me and not the compiler.

On 24 March 2010 21:23, Mike Cowlishaw <[hidden email]> wrote:
OK, thanks.  Pretty sure anything starting '<<<<' is not a NetRexxC message.
 
Mike


From: [hidden email] [mailto:[hidden email]] On Behalf Of Kermit Kiser
Sent: 24 March 2010 20:02

To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Error Message Guide (was Importing Classes)

Hi Mike ;

Quique's original message was the following:


Quique Britto wrote:
Hi all.

I have extracted the poi-bin-3.6-20091214.zip to my c: and the C:\poi-3.6\poi-3.6-20091214.jar is shown in my classpath. This set of classes allows the reading and writing of XLS files from within java.

My program shows import org.apache.poi.ss.usermodel. and program compiles ok but shows the following warning.:

<<<<  no classes found for import from package  org.apache.poi.ss.usermodel  >>>>

but this class (and more) can be seen inside the jar file. 


Am I missing something?
  
I have no idea what is in the jar file he mentioned.

My question is this:  If an import ends with a period as in "a.b.c." will class "a.b.c" be imported along with anything that begins with "a.b.c."?

-- Kermit



Mike Cowlishaw wrote:
Note my careful use of 'NetRexxC' .. yes, runtime messages outside of scope
:-).  (Still no idea if the message in question was runtime or
compiletime).

Mike

_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Importing Classes

Quique Britto
In reply to this post by David Requena
when i show the c:\poi-3.6\...jar in the classpath in the entryfield of jedit it works. (no warning is shown and access to the package classes works.
when i do not indicate the poi package in the jedit entryfield and ONLY in the windows "enviromental variables" I get the message mentioned in my original post.

Quique

On 24 March 2010 22:42, David Requena <[hidden email]> wrote:
Quique,

Was that it? Tried miscasing on my box but still couldn't reproduce.



---
Saludos / Kind regards.
David Requena

El 24/03/2010 14:49, Measel, Mike escribió:

Quique, in your example the directory is uppercase but on the classpath it is lower ?  Java is case sensitive even though windows is not.

 

From: [hidden email] [[hidden email]] On Behalf Of David Requena
Sent: Wednesday, March 24, 2010 8:04 AM
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Importing Classes

 

Quique,

Oh I see, that's why you get the warning but no compilation error.

The classpath shows? You have this on a CLASSPATH environment variable?

Tried your code and could not reproduce the behaviour. It compiled ok with:

 java -cp ".;C:\home\drequena\dev\NetRexx\lib\NetRexxC.jar;C:\Java\jdk1.6.0_16\lib\tools.jar;.\poi-3.6-20091214.jar" COM.ibm.netrexx.process.NetRexxC myxls.nrx

Note that 'Program Files' includes a space. Did you use quotes when adding it to classpath?
I would expect a ClassNotFoundException if this was the culprit but you never know.

---
Saludos / Kind regards.
David Requena


El 24/03/2010 11:59, Quique Britto escribió:

Hi again,

the compilation is successful because I have not tried to access the classes, I want to get rid of this warning.
here is a cut down version of my program which reproduces this warning.

the poi package is located at C:\POI-3.6\poi-3.6-20091214.jar and the classpath shows (using copy n paste)
.;C:\Program Files\Java\jdk1.6.0_10\lib\tools.jar;C:\poi-3.6\poi-3.6-20091214.jar;

import javax.swing.
import org.apache.poi.ss.usermodel.

class myxls
method main( args=String[] ) static
  mainwindow = JFrame( "Excel Example" )
  mainwindow.setLayout( GridLayout( 1,1 ))

  -- create label
  txtlabel   = JLabel( "excel contents will be shown here", Jlabel.CENTER )
  mainwindow.add( txtlabel )
 
  -- open excel file
 
  -- read contents & show in label

  -- set default operation for the Frame
  mainwindow.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE )

  -- set frame size and make visible
  mainwindow.setSize( 600,100 )
  mainwindow.setVisible( 1 )

_______________________________________________ Ibm-netrexx mailing list

_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Importing Classes

Quique Britto
forgot to mention on my last post, i checked and changed the upper case lowercase but the error still showed.
that was no the problem.



On 24 March 2010 22:51, Quique Britto <[hidden email]> wrote:
when i show the c:\poi-3.6\...jar in the classpath in the entryfield of jedit it works. (no warning is shown and access to the package classes works.
when i do not indicate the poi package in the jedit entryfield and ONLY in the windows "enviromental variables" I get the message mentioned in my original post.

Quique


On 24 March 2010 22:42, David Requena <[hidden email]> wrote:
Quique,

Was that it? Tried miscasing on my box but still couldn't reproduce.



---
Saludos / Kind regards.
David Requena

El 24/03/2010 14:49, Measel, Mike escribió:

Quique, in your example the directory is uppercase but on the classpath it is lower ?  Java is case sensitive even though windows is not.

 

From: [hidden email] [[hidden email]] On Behalf Of David Requena
Sent: Wednesday, March 24, 2010 8:04 AM
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Importing Classes

 

Quique,

Oh I see, that's why you get the warning but no compilation error.

The classpath shows? You have this on a CLASSPATH environment variable?

Tried your code and could not reproduce the behaviour. It compiled ok with:

 java -cp ".;C:\home\drequena\dev\NetRexx\lib\NetRexxC.jar;C:\Java\jdk1.6.0_16\lib\tools.jar;.\poi-3.6-20091214.jar" COM.ibm.netrexx.process.NetRexxC myxls.nrx

Note that 'Program Files' includes a space. Did you use quotes when adding it to classpath?
I would expect a ClassNotFoundException if this was the culprit but you never know.

---
Saludos / Kind regards.
David Requena


El 24/03/2010 11:59, Quique Britto escribió:

Hi again,

the compilation is successful because I have not tried to access the classes, I want to get rid of this warning.
here is a cut down version of my program which reproduces this warning.

the poi package is located at C:\POI-3.6\poi-3.6-20091214.jar and the classpath shows (using copy n paste)
.;C:\Program Files\Java\jdk1.6.0_10\lib\tools.jar;C:\poi-3.6\poi-3.6-20091214.jar;

import javax.swing.
import org.apache.poi.ss.usermodel.

class myxls
method main( args=String[] ) static
  mainwindow = JFrame( "Excel Example" )
  mainwindow.setLayout( GridLayout( 1,1 ))

  -- create label
  txtlabel   = JLabel( "excel contents will be shown here", Jlabel.CENTER )
  mainwindow.add( txtlabel )
 
  -- open excel file
 
  -- read contents & show in label

  -- set default operation for the Frame
  mainwindow.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE )

  -- set frame size and make visible
  mainwindow.setSize( 600,100 )
  mainwindow.setVisible( 1 )

_______________________________________________ Ibm-netrexx mailing list

_______________________________________________
Ibm-netrexx mailing list
[hidden email]





_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Importing Classes

David Requena
In reply to this post by Quique Britto

Oh, I see.
Something must be wrong on your CLASSPATH environment variable then.

jEdit/NetRexxDE is immune because it is launched with -jar option so it does ignore this variable.
NetRexxDE uses the -cp switch to java which is what you should probably be doing too.

In general, forget about the CLASSPATH env. var. as it's been deprecated for ages now.
---
Saludos / Kind regards.
David Requena

El 24/03/2010 22:51, Quique Britto escribió:
when i show the c:\poi-3.6\...jar in the classpath in the entryfield of jedit it works. (no warning is shown and access to the package classes works.
when i do not indicate the poi package in the jedit entryfield and ONLY in the windows "enviromental variables" I get the message mentioned in my original post.

Quique

On 24 March 2010 22:42, David Requena <[hidden email]> wrote:
Quique,

Was that it? Tried miscasing on my box but still couldn't reproduce.



---
Saludos / Kind regards.
David Requena

El 24/03/2010 14:49, Measel, Mike escribió:

Quique, in your example the directory is uppercase but on the classpath it is lower ?  Java is case sensitive even though windows is not.

 

From: [hidden email] [[hidden email]] On Behalf Of David Requena
Sent: Wednesday, March 24, 2010 8:04 AM
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Importing Classes

 

Quique,

Oh I see, that's why you get the warning but no compilation error.

The classpath shows? You have this on a CLASSPATH environment variable?

Tried your code and could not reproduce the behaviour. It compiled ok with:

 java -cp ".;C:\home\drequena\dev\NetRexx\lib\NetRexxC.jar;C:\Java\jdk1.6.0_16\lib\tools.jar;.\poi-3.6-20091214.jar" COM.ibm.netrexx.process.NetRexxC myxls.nrx

Note that 'Program Files' includes a space. Did you use quotes when adding it to classpath?
I would expect a ClassNotFoundException if this was the culprit but you never know.

---
Saludos / Kind regards.
David Requena


El 24/03/2010 11:59, Quique Britto escribió:

Hi again,

the compilation is successful because I have not tried to access the classes, I want to get rid of this warning.
here is a cut down version of my program which reproduces this warning.

the poi package is located at C:\POI-3.6\poi-3.6-20091214.jar and the classpath shows (using copy n paste)
.;C:\Program Files\Java\jdk1.6.0_10\lib\tools.jar;C:\poi-3.6\poi-3.6-20091214.jar;

import javax.swing.
import org.apache.poi.ss.usermodel.

class myxls
method main( args=String[] ) static
  mainwindow = JFrame( "Excel Example" )
  mainwindow.setLayout( GridLayout( 1,1 ))

  -- create label
  txtlabel   = JLabel( "excel contents will be shown here", Jlabel.CENTER )
  mainwindow.add( txtlabel )
 
  -- open excel file
 
  -- read contents & show in label

  -- set default operation for the Frame
  mainwindow.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE )

  -- set frame size and make visible
  mainwindow.setSize( 600,100 )
  mainwindow.setVisible( 1 )

_______________________________________________ Ibm-netrexx mailing list

_______________________________________________
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: Importing Classes

Quique Britto
thks

i will use this way as from now.



On 24 March 2010 23:04, David Requena <[hidden email]> wrote:

Oh, I see.
Something must be wrong on your CLASSPATH environment variable then.

jEdit/NetRexxDE is immune because it is launched with -jar option so it does ignore this variable.
NetRexxDE uses the -cp switch to java which is what you should probably be doing too.

In general, forget about the CLASSPATH env. var. as it's been deprecated for ages now.

---
Saludos / Kind regards.
David Requena

El 24/03/2010 22:51, Quique Britto escribió:
when i show the c:\poi-3.6\...jar in the classpath in the entryfield of jedit it works. (no warning is shown and access to the package classes works.
when i do not indicate the poi package in the jedit entryfield and ONLY in the windows "enviromental variables" I get the message mentioned in my original post.

Quique

On 24 March 2010 22:42, David Requena <[hidden email]> wrote:
Quique,

Was that it? Tried miscasing on my box but still couldn't reproduce.



---
Saludos / Kind regards.
David Requena

El 24/03/2010 14:49, Measel, Mike escribió:

Quique, in your example the directory is uppercase but on the classpath it is lower ?  Java is case sensitive even though windows is not.

 

From: [hidden email] [[hidden email]] On Behalf Of David Requena
Sent: Wednesday, March 24, 2010 8:04 AM
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Importing Classes

 

Quique,

Oh I see, that's why you get the warning but no compilation error.

The classpath shows? You have this on a CLASSPATH environment variable?

Tried your code and could not reproduce the behaviour. It compiled ok with:

 java -cp ".;C:\home\drequena\dev\NetRexx\lib\NetRexxC.jar;C:\Java\jdk1.6.0_16\lib\tools.jar;.\poi-3.6-20091214.jar" COM.ibm.netrexx.process.NetRexxC myxls.nrx

Note that 'Program Files' includes a space. Did you use quotes when adding it to classpath?
I would expect a ClassNotFoundException if this was the culprit but you never know.

---
Saludos / Kind regards.
David Requena


El 24/03/2010 11:59, Quique Britto escribió:

Hi again,

the compilation is successful because I have not tried to access the classes, I want to get rid of this warning.
here is a cut down version of my program which reproduces this warning.

the poi package is located at C:\POI-3.6\poi-3.6-20091214.jar and the classpath shows (using copy n paste)
.;C:\Program Files\Java\jdk1.6.0_10\lib\tools.jar;C:\poi-3.6\poi-3.6-20091214.jar;

import javax.swing.
import org.apache.poi.ss.usermodel.

class myxls
method main( args=String[] ) static
  mainwindow = JFrame( "Excel Example" )
  mainwindow.setLayout( GridLayout( 1,1 ))

  -- create label
  txtlabel   = JLabel( "excel contents will be shown here", Jlabel.CENTER )
  mainwindow.add( txtlabel )
 
  -- open excel file
 
  -- read contents & show in label

  -- set default operation for the Frame
  mainwindow.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE )

  -- set frame size and make visible
  mainwindow.setSize( 600,100 )
  mainwindow.setVisible( 1 )

_______________________________________________ Ibm-netrexx mailing list

_______________________________________________
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: Importing Classes

Kermit Kiser
In reply to this post by Quique Britto
Assuming you are using the standard jEdit launcher setup which starts jEdit with the jedit.jar file, the Windows CLASSPATH variable will not normally affect anything running under jEdit since the "java -jar" command cancels all classpath information. If you are using NetRexxDE, then you need to use the classpath field provided by the plugin.

-- Kermit

Quique Britto wrote:
when i show the c:\poi-3.6\...jar in the classpath in the entryfield of jedit it works. (no warning is shown and access to the package classes works.
when i do not indicate the poi package in the jedit entryfield and ONLY in the windows "enviromental variables" I get the message mentioned in my original post.

Quique

On 24 March 2010 22:42, David Requena <[hidden email]> wrote:
Quique,

Was that it? Tried miscasing on my box but still couldn't reproduce.



---
Saludos / Kind regards.
David Requena

El 24/03/2010 14:49, Measel, Mike escribió:

Quique, in your example the directory is uppercase but on the classpath it is lower ?  Java is case sensitive even though windows is not.

 

From: [hidden email] [[hidden email]] On Behalf Of David Requena
Sent: Wednesday, March 24, 2010 8:04 AM
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Importing Classes

 

Quique,

Oh I see, that's why you get the warning but no compilation error.

The classpath shows? You have this on a CLASSPATH environment variable?

Tried your code and could not reproduce the behaviour. It compiled ok with:

 java -cp ".;C:\home\drequena\dev\NetRexx\lib\NetRexxC.jar;C:\Java\jdk1.6.0_16\lib\tools.jar;.\poi-3.6-20091214.jar" COM.ibm.netrexx.process.NetRexxC myxls.nrx

Note that 'Program Files' includes a space. Did you use quotes when adding it to classpath?
I would expect a ClassNotFoundException if this was the culprit but you never know.

---
Saludos / Kind regards.
David Requena


El 24/03/2010 11:59, Quique Britto escribió:

Hi again,

the compilation is successful because I have not tried to access the classes, I want to get rid of this warning.
here is a cut down version of my program which reproduces this warning.

the poi package is located at C:\POI-3.6\poi-3.6-20091214.jar and the classpath shows (using copy n paste)
.;C:\Program Files\Java\jdk1.6.0_10\lib\tools.jar;C:\poi-3.6\poi-3.6-20091214.jar;

import javax.swing.
import org.apache.poi.ss.usermodel.

class myxls
method main( args=String[] ) static
  mainwindow = JFrame( "Excel Example" )
  mainwindow.setLayout( GridLayout( 1,1 ))

  -- create label
  txtlabel   = JLabel( "excel contents will be shown here", Jlabel.CENTER )
  mainwindow.add( txtlabel )
 
  -- open excel file
 
  -- read contents & show in label

  -- set default operation for the Frame
  mainwindow.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE )

  -- set frame size and make visible
  mainwindow.setSize( 600,100 )
  mainwindow.setVisible( 1 )

_______________________________________________ Ibm-netrexx mailing list

_______________________________________________
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: Error Message Guide (was Importing Classes)

Mike Cowlishaw
In reply to this post by David Requena
Ah I see -- yes, I'd agree "Package not found" (or another message for the third case) would be more helpful there.
 
The message file is nrc.prp -- probably extractable from the binaries -- if anyone wanted to get a head start on translating the messages :-).  It would need a code change to the Import clause handler (NrImport) to improve that particular message.
 
Mike


From: [hidden email] [mailto:[hidden email]] On Behalf Of David Requena
Sent: 24 March 2010 21:34
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Error Message Guide (was Importing Classes)

Mike,

This is definitely a NetRexxC compile time warning message
in the format shown bellow (I guess the '<<<<' markers were
Quique's way of emphasizing the actual text)

[C:\Britto\myxls.nrx 2 8 3] Warning: No classes found for import from package 'org.apache.poi.ss.usermodel.'

I've seen this warning in 3 different situations over time:

- an import instruction for a package which indeed exists but contains
  no classes (at the time the directory contained *.nrx sources but
  not the corresponding *.class classes). Here I think the warning is
  absolutely OK.

- an import for a package which does not exist (misspelled, for instance).
  I'd rather flag this as an error than a warning. I would also change
  the text to some variation of 'Package not found ...' instead of the current
  somewhat misleading one.

- a correct import instruction without the actual classes properly
  included in the classpath. This is really a variant of the second one.

---
Saludos / Kind regards.
David Requena

El 24/03/2010 21:23, Mike Cowlishaw escribió:
OK, thanks.  Pretty sure anything starting '<<<<' is not a NetRexxC message.
 
Mike


From: [hidden email] [[hidden email]] On Behalf Of Kermit Kiser
Sent: 24 March 2010 20:02
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Error Message Guide (was Importing Classes)

Hi Mike ;

Quique's original message was the following:


Quique Britto wrote:
Hi all.

I have extracted the poi-bin-3.6-20091214.zip to my c: and the C:\poi-3.6\poi-3.6-20091214.jar is shown in my classpath. This set of classes allows the reading and writing of XLS files from within java.

My program shows import org.apache.poi.ss.usermodel. and program compiles ok but shows the following warning.:

<<<<  no classes found for import from package  org.apache.poi.ss.usermodel  >>>>

but this class (and more) can be seen inside the jar file. 


Am I missing something?
  
I have no idea what is in the jar file he mentioned.

My question is this:  If an import ends with a period as in "a.b.c." will class "a.b.c" be imported along with anything that begins with "a.b.c."?

-- Kermit



Mike Cowlishaw wrote:
Note my careful use of 'NetRexxC' .. yes, runtime messages outside of scope
:-).  (Still no idea if the message in question was runtime or
compiletime).

Mike
_______________________________________________ Ibm-netrexx mailing list [hidden email]

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

NetRexxC internationalization (was Error Message Guide (was Importing Classes))

David Requena

El 25/03/2010 8:58, Mike Cowlishaw escribió:
The message file is nrc.prp -- probably extractable from the binaries -- if anyone wanted to get a head start on translating the messages :-).  It would need a code change to the Import clause handler (NrImport) to improve that particular message.

hmm... been looking a bit into this.

Found a NetRexxC.properties file at COM\ibm\netrexx\process which contains
some 450 strings.

What I did was to generate a separate jar file NetRexxCi18n.jar which contains
versions of this resource bundle for other locales (NetRexxC_de
.properties,
NetRexxC_es
.properties, etc.). Some strings were of course translated.

Now, when including
NetRexxCi18n.jar in the classpath at compilation time,
I get the translated strings back :-)

Great, NetRexxC can be fully internationalized without modifying it at all!
This is just a further example of how much we can do to improve things without
access to the source code.

I won't be translating all these strings as I preffer them in English but I'm
willing to host a mini project for this at http://netrexx-misc.kenai.com for
this if anyone is interested in supplying NetRexx_XX.properties files.

Not sure if I can do this but I've posted a copy of the file at kenai as a
convenience for people interested in using it as a template. Get it at
http://kenai.com/projects/netrexx-misc/downloads/download/misc%252FNetRexxC.properties

---
Saludos / Kind regards.
David Requena


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: NetRexxC internationalization (was Error Message Guide (was Importing Classes))

Mike Cowlishaw
Glad it works as I intended :-))   Long time ago ...
 
Thanks for checking it out!
 
I suspect there's no problem in posting it, because it's not code :-).   And once translated, the original content is all but gone in any case.
 
 
Mike


From: [hidden email] [mailto:[hidden email]] On Behalf Of David Requena
Sent: 25 March 2010 13:39
To: IBM Netrexx
Subject: [Ibm-netrexx] NetRexxC internationalization (was Error Message Guide (was Importing Classes))


El 25/03/2010 8:58, Mike Cowlishaw escribió:
The message file is nrc.prp -- probably extractable from the binaries -- if anyone wanted to get a head start on translating the messages :-).  It would need a code change to the Import clause handler (NrImport) to improve that particular message.

hmm... been looking a bit into this.

Found a NetRexxC.properties file at COM\ibm\netrexx\process which contains
some 450 strings.

What I did was to generate a separate jar file NetRexxCi18n.jar which contains
versions of this resource bundle for other locales (NetRexxC_de
.properties,
NetRexxC_es
.properties, etc.). Some strings were of course translated.

Now, when including
NetRexxCi18n.jar in the classpath at compilation time,
I get the translated strings back :-)

Great, NetRexxC can be fully internationalized without modifying it at all!
This is just a further example of how much we can do to improve things without
access to the source code.

I won't be translating all these strings as I preffer them in English but I'm
willing to host a mini project for this at http://netrexx-misc.kenai.com for
this if anyone is interested in supplying NetRexx_XX.properties files.

Not sure if I can do this but I've posted a copy of the file at kenai as a
convenience for people interested in using it as a template. Get it at
http://kenai.com/projects/netrexx-misc/downloads/download/misc%252FNetRexxC.properties

---
Saludos / Kind regards.
David Requena


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: NetRexxC internationalization (was Error Message Guide (was Importing Classes))

Thomas.Schneider.Wien
Hello Mike, David,
   thanks for publishing the messages on www.KENAI.com, David.

I will now proceed to translate the messages to *GERMAN* (file
NetRexxC_DE.txt) and mail it back to David
when ready.

We should, however, wait until Rene is back from ARUBA before we decide
how to activate
this MULTI Linguag feature for NetRexx, IMHO :-)

It also will help me to re-use the same messages whenever possible in my
ReyC project, by the way.

Sincerely, your's,
Thomas Schneider.
===================================================================

Mike Cowlishaw schrieb:

> Glad it works as I intended :-))   Long time ago ...
>  
> Thanks for checking it out!
>  
> I suspect there's no problem in posting it, because it's not code
> :-).   And once translated, the original content is all but gone in
> any case.
>  
>  
> Mike
>
>     ------------------------------------------------------------------------
>     *From:* [hidden email]
>     [mailto:[hidden email]] *On Behalf Of *David
>     Requena
>     *Sent:* 25 March 2010 13:39
>     *To:* IBM Netrexx
>     *Subject:* [Ibm-netrexx] NetRexxC internationalization (was Error
>     Message Guide (was Importing Classes))
>
>
>     El 25/03/2010 8:58, Mike Cowlishaw escribió:
>>     The message file is nrc.prp -- probably extractable from the
>>     binaries -- if anyone wanted to get a head start on translating
>>     the messages :-).  It would need a code change to the Import
>>     clause handler (NrImport) to improve that particular message.
>
>     hmm... been looking a bit into this.
>
>     Found a NetRexxC.properties file at COM\ibm\netrexx\process which
>     contains
>     some 450 strings.
>
>     What I did was to generate a separate jar file NetRexxCi18n.jar
>     which contains
>     versions of this resource bundle for other locales
>     (NetRexxC_de.properties,
>     NetRexxC_es.properties, etc.). Some strings were of course translated.
>
>     Now, when including NetRexxCi18n.jar in the classpath at
>     compilation time,
>     I get the translated strings back :-)
>
>     Great, NetRexxC can be fully internationalized without modifying
>     it at all!
>     This is just a further example of how much we can do to improve
>     things without
>     access to the source code.
>
>     I won't be translating all these strings as I preffer them in
>     English but I'm
>     willing to host a mini project for this at
>     http://netrexx-misc.kenai.com for
>     this if anyone is interested in supplying NetRexx_XX.properties files.
>
>     Not sure if I can do this but I've posted a copy of the file at
>     kenai as a
>     convenience for people interested in using it as a template. Get it at
>     http://kenai.com/projects/netrexx-misc/downloads/download/misc%252FNetRexxC.properties
>
>     ---
>     Saludos / Kind regards.
>     David Requena
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>
>  

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

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

Re: NetRexxC internationalization (was Error Message Guide (was Importing Classes))

David Requena
In reply to this post by Mike Cowlishaw

El 25/03/2010 16:12, Mike Cowlishaw escribió:
Glad it works as I intended :-))   Long time ago ...

Obviously you did 'The Right Thing' (TM) using resource bundles for literal strings :-)

 
Thanks for checking it out!

Well, I was confident it would work but was in doubt about including localized files in a separate jar archive.

 
I suspect there's no problem in posting it, because it's not code :-).   And once translated, the original content is all but gone in any case.


I thought so but you never know with these legal matters..

---
Saludos / Kind regards.
David Requena


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: NetRexxC internationalization (was Error Message Guide (was Importing Classes))

David Requena
In reply to this post by Thomas.Schneider.Wien
Thomas,

No modification is required for this at all. It would be just a jar file
which can be put in the classpath or not depending on users preference.

P.S.: No offence intended but...I guess if René wanted everyone at the
list knowing
he's on a trip, he would have posted the info himself. Please, do not
post personal info
on other members in a public forum like this.

---
Saludos / Kind regards.
David Requena


El 25/03/2010 16:58, Thomas Schneider escribió:

> Hello Mike, David,
>   thanks for publishing the messages on www.KENAI.com, David.
>
> I will now proceed to translate the messages to *GERMAN* (file
> NetRexxC_DE.txt) and mail it back to David
> when ready.
>
> We should, however, wait until Rene is back from ARUBA before we
> decide how to activate
> this MULTI Linguag feature for NetRexx, IMHO :-)
>
> It also will help me to re-use the same messages whenever possible in
> my ReyC project, by the way.
>
> Sincerely, your's,
> Thomas Schneider.
> ===================================================================
>
> Mike Cowlishaw schrieb:
>> Glad it works as I intended :-))   Long time ago ...
>>
>> Thanks for checking it out!
>>
>> I suspect there's no problem in posting it, because it's not code
>> :-).   And once translated, the original content is all but gone in
>> any case.
>>
>>
>> Mike
>>
>>    
>> ------------------------------------------------------------------------
>>     *From:* [hidden email]
>>     [mailto:[hidden email]] *On Behalf Of *David
>>     Requena
>>     *Sent:* 25 March 2010 13:39
>>     *To:* IBM Netrexx
>>     *Subject:* [Ibm-netrexx] NetRexxC internationalization (was Error
>>     Message Guide (was Importing Classes))
>>
>>
>>     El 25/03/2010 8:58, Mike Cowlishaw escribió:
>>>     The message file is nrc.prp -- probably extractable from the
>>>     binaries -- if anyone wanted to get a head start on translating
>>>     the messages :-).  It would need a code change to the Import
>>>     clause handler (NrImport) to improve that particular message.
>>
>>     hmm... been looking a bit into this.
>>
>>     Found a NetRexxC.properties file at COM\ibm\netrexx\process which
>>     contains
>>     some 450 strings.
>>
>>     What I did was to generate a separate jar file NetRexxCi18n.jar
>>     which contains
>>     versions of this resource bundle for other locales
>>     (NetRexxC_de.properties,
>>     NetRexxC_es.properties, etc.). Some strings were of course
>> translated.
>>
>>     Now, when including NetRexxCi18n.jar in the classpath at
>>     compilation time,
>>     I get the translated strings back :-)
>>
>>     Great, NetRexxC can be fully internationalized without modifying
>>     it at all!
>>     This is just a further example of how much we can do to improve
>>     things without
>>     access to the source code.
>>
>>     I won't be translating all these strings as I preffer them in
>>     English but I'm
>>     willing to host a mini project for this at
>>     http://netrexx-misc.kenai.com for
>>     this if anyone is interested in supplying NetRexx_XX.properties
>> files.
>>
>>     Not sure if I can do this but I've posted a copy of the file at
>>     kenai as a
>>     convenience for people interested in using it as a template. Get
>> it at
>>    
>> http://kenai.com/projects/netrexx-misc/downloads/download/misc%252FNetRexxC.properties 
>>
>>
>>     ---
>>     Saludos / Kind regards.
>>     David Requena
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Ibm-netrexx mailing list
>> [hidden email]
>>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>
_______________________________________________
Ibm-netrexx mailing list
[hidden email]

12