×
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.
1.4 and maybe 1.5 may already be on your system. Display the installed
licensed programs (10 on GO LICPGM). If 5722JV1 for Java Developer Kit
1.4 or Java Developer Kit 5.0 is not installed you'll have to upgrade as
Paul suggests.
If either is installed then you have to figure out how to tell the RPG
program which version of Java to run.
There are several ways to do this.
- globally for the entire system (that might mess up something)
- by user
- by passing the JVM parameters (not simple since RPG is calling Java)
The simplest and safest way to do this is by user. Create the file
SystemDefault.properties
in the home directory of the user profile which executes the RPG
program.
That way you won't change the global values, just for the job(s) running
under that user ID. This is a very simple one that I use:
First line comments out the 1.4.2 version, second uses java 1.5 (or 5.0
as Sun like to call it). The 3rd line is my timezone.
Good luck
Bill Blalock
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Clapham, Paul
Sent: Monday, October 06, 2008 12:28 PM
To: Java Programming on and around the iSeries / AS400
Subject: RE: Newbie Question about NoClassDefFoundError
Are you using a version of Java that's earlier than Java 1.4? If so,
you'll need to upgrade your version to at least 1.4 to be able to use
that class. The API documentation for the java.util.regex.Pattern class
says "Since: 1.4".
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Marvin Radding
Sent: October 6, 2008 09:12
To: java400-l@xxxxxxxxxxxx
Subject: Newbie Question about NoClassDefFoundError
I am new at this (first time using Java routines from RPGLE) but I have
a problem that I have not been able to find in the archives.
I am attempting to demonstrate the feasibility of using Java routines to
create XLS spreadsheets to replace many of the reports that we deliver
to the users as CSV now. I got Scott Klement's "Excel Spreadsheets from
RPG" article with the source code (Thanks Scott). I am trying to compile
and run the XLCRTDEMO program. When I run it, it is attempting to define
a formula when the Java Machine throws this error
Date sent . . . . . . : 10/06/08 Time sent . . . . . . :
08:59:46
Message . . . . : Java exception received when calling Java method.
Cause . . . . . : RPG procedure HSSF_FORMU in program MR0473/HSSFR4
received
Java exception "java.lang.NoClassDefFoundError:
java/util/regex/Pattern"
when calling method "setCellFormula" with signature
"(Ljava.lang.String;)V"
in class "org.apache.poi.hssf.usermodel.HSSFCell".
As an Amazon Associate we earn from qualifying purchases.
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.