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



Gary,

Your response gave me the clue I needed. I compiled with a
version of javac out of /QIBM/ProdData/Java400/jdk15/bin/ and it
compiled fine. I'm obviously unfamiliar with the java environment so I
hope I'm not doing something bizarre here.

Thanks for the replies...
- Steve

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Gary L Peskin
Sent: Tuesday, April 28, 2009 5:23 PM
To: 'Java Programming on and around the iSeries / AS400'
Subject: RE: Classpath question

Version 49.0 is for J2SE 5.0, version 48.0 is for JDK 1.4. If seems
that at
runtime you're pointing to version 1.4 but at compile time, you're
pointing
to 5.0.

Gary

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-
bounces@xxxxxxxxxxxx] On Behalf Of Coyle, Stephen F.
Sent: Tuesday, April 28, 2009 12:48 PM
To: Java Programming on and around the iSeries / AS400
Subject: RE: Classpath question

Thanks Gary,

That brought my error total down to 1. This is what I get now.

javac p57301.java

p57301.java:5: cannot access iseries.wsbeans.wsgetpo.DATADS

bad class file:

/www/WSERVICE1/webservices/services/wsGetPO/iseries/wsbeans/wsgetpo/DATA
DS.class
class file has wrong version 49.0, should be 48.0

Please remove or make sure it appears in the correct subdirectory of
the
classpath.
import iseries.wsbeans.wsgetpo.DATADS;

^

1 error


A quick search got hits related to the JDK version. But this code
compiled before through the integrated web services wizard so I don't
think that's really the problem.






-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Gary L Peskin
Sent: Tuesday, April 28, 2009 2:57 PM
To: 'Java Programming on and around the iSeries / AS400'
Subject: RE: Classpath question

Steve --

When javac is looking for class DATADS, it will append
/iseries/wsbeans/wsgetpo/DATADS.class to every entry in the classpath
(except .jar files) looking for the class. You need to include
/www/WSERVICE1/webservices/services/wsGetPO if you want this to get
found.

HTH,
Gary

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-
bounces@xxxxxxxxxxxx] On Behalf Of Coyle, Stephen F.
Sent: Tuesday, April 28, 2009 11:17 AM
To: java400-l@xxxxxxxxxxxx
Subject: Classpath question

Hi All,

I have a web service that was created through the integrated web
services server. I needed to go in and change a loop counter so as
not
to return the maximum number of elements, only the populated
elements.

I've done this but now I cannot seem to get the java compiled.
Here are snippets of the code.

Program p57301.java imports:
package iseries.wsbeans.wsgetpo;
import java.lang.Integer;
import iseries.wsbeans.wsgetpo.DATADS;
import java.math.BigDecimal;
import iseries.programcall.base.AbstractProgramCallBean;
import com.ibm.as400.access.AS400Message;
import com.ibm.as400.access.AS400;
import com.ibm.as400.access.Trace;
import iseries.programcall.base.RuntimeContext;
import com.ibm.as400.data.ProgramCallDocument;
import iseries.programcall.base.Constants;
import iseries.programcall.base.Messages;
import iseries.wsbeans.wsgetpo.F4311DS;
import iseries.wsbeans.wsgetpo.DSDTL;
import iseries.wsbeans.wsgetpo.DSASSOC;
import iseries.wsbeans.wsgetpo.DSBOND;

My compile process:
QSH
export -s CLASSPATH=.:
/QIBM/ProdData/OS400/jt400/lib/jt400Native.jar:/www/WSERVI
CE1/webservices/services/wsGetPO/iseries/wsbeans/wsgetpo/:
cd ':/www/WSERVI CE1/
webservices/services/wsGetPO/iseries/wsbeans/wsgetpo/'
javac p57301.java

Classes residing in my current directory:
DSBOND.class
DSASSOC.class
DSDTL.class
F4311DS.class
DATADS.class
P57301.class
WsGetPOServices.class
P57301Input.class
P57301Result.class

Sample errors:
p57301.java:5: cannot resolve symbol
symbol : class DATADS
location: package wsgetpo
import iseries.wsbeans.wsgetpo.DATADS;
^
p57301.java:7: package iseries.programcall.base does not exist
import iseries.programcall.base.AbstractProgramCallBean;
^

I've tried several variations to my classpath but cannot seem to
point
to the right place.

Thanks for any help....
- Steve
--
This is the Java Programming on and around the iSeries / AS400
(JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


--
This is the Java Programming on and around the iSeries / AS400
(JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.

--
This is the Java Programming on and around the iSeries / AS400
(JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.