× 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'm trying a Java call from RPG for the first time.

When I compile it, it fails during the binding step.


It complains about a definition of _QRNX_JNI_FREE_OBJ


Is this something to so with my CLASSPATH?


Any help would be appreciated.


Thanks!





RPG source and JOBLOG

1) SOURCE:


H DftActGrp(*NO) ActGrp(*CALLER)
H
D
DGetCodeRecord    PR              O   EXTPROC(*JAVA:'QueryReturn':
D                                     'GetCodeRecord')
D                                     CLASS(*JAVA:'java.lang.String')
DString2                          O   CLASS(*JAVA:'java.lang.String')
D                                     Const
D
D
DnewString        PR              O   EXTPROC *JAVA : 'java.lang.String':
D                                     *CONSTRUCTOR)
D                                     CLASS(*JAVA:'java.lang.String')
Dbytes                          30A   CONST VARYING
D
D
DString1          S               O   Class(*JAVA:'java.lang.String')
DString2          S               O   Class(*JAVA:'java.lang.String')
DStringR          S               O   Class(*JAVA:'java.lang.String')
D
D
Dkey1             C                   CONST('AVOC')
Dkey2             C                   CONST('0059')
D
D

   /Free

    // create string parameter objects
         String1 = newString(key1);
         String2 = newString(key2);


    // retrieve code description
         StringR = GetCodeRecord(String1:String2);

         *InLr = *On;

   /End-Free



2) JOBLOG
>From module . . . . . . . . :   QBNBSYMR
>From procedure  . . . . . . :   QBNBSYMR__UnresolvedReferenceIterator
Statement . . . . . . . . . :   31
To module . . . . . . . . . :   QBNBSYMR
To procedure  . . . . . . . :   QBNBSYMR__SignalUnresolvedReferences
Statement . . . . . . . . . :   8
Message . . . . :   Definition not found for symbol '_QRNX_JNI_FREE_OBJ'.
Cause . . . . . :   No definition was found for reference
_QRNX_JNI_FREE_OBJ
  in *MODULE object NBCALLJAV5 in library QTEMP. The definition either does
  not exist or is not of the same data or procedure type as the reference.
  Recovery  . . . :   Try the Create Program (CRTPGM) command again,
supplying
  an object that contains a definition for symbol _QRNX_JNI_FREE_OBJ.







Disclaimer
 
  
The information contained in this communication is confidential and may be 
legally privileged. It is intended solely for the use of the individual or 
entity to whom it is addressed and others authorized to receive it. If you are 
not the intended recipient you are hereby notified that any disclosure, 
copying, distribution or taking action in reliance of the contents of this 
information is strictly prohibited and may be unlawful. Views and opinions are 
those of the sender unless clearly stated as being that of Momentum. Momentum 
is neither liable for the proper, complete transmission of the information 
contained in this communication, nor any delay in its receipt or that the mail 
is virus-free. Momentum is not liable whatsoever for loss or damage resulting 
from the opening of this message and/or attachments and/or the use of the 
information contained in this message and/or attachments.
For a full disclaimer notice see 
http://content.momentum.co.za/ContentManagement/HTML/Disclaimer_Email.htm



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.