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



I solved the JDK issue. Just needed to make some more changes in Eclipse.

Now I have a prototype issue. Will work on that and may have some more questions later.

Thanks,

Joe

From: Joe Wells
Sent: Saturday, September 15, 2012 12:37 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Calling Java From RPGLE

First, let me say that I am not sure if this is the appropriate forum so please let me know if I should post elsewhere (the JAVA forum did not seem to have much activity).

Second, I have never tried to do this task before so I am quite the novice!

Here is the scenario -

- java program written and jar created using Eclipse.

- Java methods prototyped in an RPG program.

- Classpath set and RPG called.

- Error received is '... received Java exception "java.lang.UnsupportedClassVersionError: (edu/uabmc/convert/pdf/IMGTIFF2PDF) bad major version at off"...'

I Googled and it appears that the JDK of the JAR file is incompatible that that of the 400. The 400 JDK is 1.5.0.

I changed eclipse.ini to include
-vm
C:\Program Files\Java\jre1.5.0_12\bin\javaw.exe

I then recreated the jar file, but received the same error.

How can I confirm the JDK level of the jar?

I used jarmaker to extract the jar file contents to the IFS and thought I might could recreate the jar on the 400 using the native JDK......but have not found how to do this.

Any and all thoughts, comments and suggestions are welcomed.

Thanks,

Joe


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.