× 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.



Basilio,

java.lang.NoSuchMethodError could be caused by com.lowagie.text.pdf package
not included in your Classpath. Have you set the CLASSPATH environment
variable to include the com.lowagie.text.pdf package?

Also, have you checked that the spelling (including case) for the class and
methods in your prototype matches those in the actual class.

What compile errors did you get? I've only glanced at your code but I did
see the typo on the PR: likt(ITXTBaseFont)

Cheers

Keith


-----Original Message-----
From: Basilio Merlino [mailto:bmerlino@xxxxxxx]
Sent: 16 January 2008 09:26
To: rpg400-l@xxxxxxxxxxxx
Subject: Itext CreateFont Problem

Dear All

i have the following definition
D ITXTBaseFont...
D S O CLASS(*JAVA
D
:'com.lowagie.text.pdf.BaseFont')
D bf_CP1252...
D C 'Cp1252'

*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
* ITXTCreateBasefont
* Create a new Basefont Object
*
* Returns the new Basefont
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
D ITXTCreateBaseFont...
D PR likt(ITXTBaseFont)
D ExtProc(*JAVA:
D
'com.lowagie.text.pdf.BaseFont':
D 'createFont')
D name like(jstring) const
D encoding like(jstring) const
D embedded n value
D

I call the procedure " ITXTCreateBaseFont" in the following way

d jtesto s like(jstring)
d jtesto2 s like(jstring)
d bf s like(ITXTBaseFont)
d embedded s n
/free
embedded = *Off;
jtesto = new_String(font);
jtesto2 = new_String(bf_CP1252);

ITXTCreateBaseFont(bf:jtesto:jtesto2:embedded);
Itext return the following error

Message . . . . : Java exception received when calling Java
method.
Cause . . . . . : RPG procedure ITXT_ADDTE in program ITTOOL/ITEXT
received
Java exception "java.lang.NoSuchMethodError: createFont" when calling
method
"crea" with signature "" in class
"com.lowagie.text.pdf.BaseFont".

If i try to change the program like this

bf = ITXTCreateBaseFont(jtesto:jtesto2:embedded) i can't compile the
program

Someone can help me

Thanks & Regards
Basilio

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.