× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi
I am not a Java programmere but have done some work in the past calling
java from RPG. Incidentally a technique we have abandoned in a move to
full Java.

I think what you are missing here is the object identifier which is
initialized when you construct the object

Then on method calls you need to supply this identifier as the first
parameter.
Get_string is passed a variable of type object and returns an object.
However on the call the first parameter is
that returned by the construction method.



Eg
d gobject_identifier_message...
s O
Class( *Java:
'com.ibm.jms.JMSMapMessage')
D get_string...
D PR O Class(*Java:
D 'java.lang.String')
D Extproc(*Java:
d 'com.ibm.jms.JMSMapMes
d 'getString')
D O Class(*Java:
D 'java.lang.String')

D Construct_the_JMS_publisher...
Pr O Extproc(*Java:
'fr.slib.ex.jms.JMS-
TopicPublisher':
*Constructor)
*----------------------------------------------------------

gobject_identifier_message =
Construct_the_JMS_message(gobject_identifier_publisher) ;

// Appel method qui retourne un objet de type string

gstring_identifier3 =
get_string(
gobject_identifier_message:
gstring_identifier ) ;

I am having trouble with the autoSizeColumn. The spec says that it take
an
int but when I try to compile, it says that I need to pass it an object.

D Column S LIKE(jint)
D HSSFSheet_autoSizeColumn...
D PR extproc(*JAVA:
D 'org.apache.poi.hssf.-
D usermodel.HSSFSheet'
D :'autoSizeColumn')

/free
HSSFSheet_autoSizeColumn(COLUMN);
/end-free

the error message:
*RNF7588 30 1 The first parameter for a non-static Java method call

must be
an Object.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.