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



This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]
In what environment do you use it? Websphere?

We had the same problem under websphere.

The reason why was QEJBSVR had no access rights to
the jar file. As a result, even if the jar file was
in the classpath, it was no accessed and the the error
message was "Not found"

We also noticed that to be sure that the class of your
jar file are accessed you must do the 3 following steps:

1) Do a DLTJVAPGM for that jar file (a temporary compilation is used
when the jar has been used before being compiled. And it seems that
this piece of code is always called if not deleted)

2) Add the authority to the jar for the job that will use it (QEJBSVR in
case of websphere)

3) Compile the jar CRTJVAPGM


These 3 steps really changed the behaviour of our application

Hope this will help

Gilles

-----Original Message-----
From: Mike Silvers [mailto:msilvers@hbs-inc.com]
Sent: mardi, 15. janvier 2002 19:47
To: Java400L List
Subject: JAR execution


OK...this is now officially driving me crazy.  I have created a java
application on the 400.  After all of the testing, etc, I was ready for
distribution.  I created a jar file containing all of the classes and the
import classes.  I looked at the jar file and it contains all of the classes
needed.  I try to run the class with no luck.  I keep getting the no class
definition found error (how I have come to hate that error....).  I can't
figure it out.  The classes are part of a package and the package structure
looks good when I view the jar file.  I change the current directory to the
directory that holds the jar file, then I try the java command.  I tried
naming the class to run, naming the qualified class to run, adding the jar
file to the classpath, adding the . to the classpath, everything I can think
of.

Any ideas?

Thanks

Mike

================================

Mike Silvers
AS/400 Senior Programmer/Analyst
AS/400 IBM Certified RPG IV Developer
AS/400 IBM Certified Solutions Expert
Hainey Business Systems
8 E. Canal St
Dover, PA 17315
Branch Office:  (410) 397-8739
Phone:  (800) 932-3380
Fax:  (717) 292-9474
Web: http://www.hbs-inc.com
________________________________
Providing E-Commerce, EDI, AS/400
Development and related services
nationwide.
================================


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


**********************************************************************
This E-mail and any files transmitted with it are confidential
and intended for the exclusive use of the addressee(s) only.
 You should not disclose its contents to any other person.
If you are not the intended recipient please notify the sender
immediately.
**********************************************************************


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.