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



Hi Richard.

I don't know what your runtime problem is other than
the obvious.  It sounds like the AS400JDBCDriver ISN'T
in the classpath at the time you try register it with
the driver manager.

1) I assume you do a
Class.forName("com.ibm.as400.access.AS400JDBCDriver")
to force load the class before trying to register
it...

2) verify the classpath is what you want with the java
command:

java -classpath myjar.jar;%classpath%  myclass


I have easily exported the jt400.jar to a directory,
pulled that into Eclipse and created my own jar file
as well.  That works fine.  I assume you are using
Eclipse 2.0x.  1.0x didn't work well for Java
testing..

Jim Mason


--- Richard Casey <casey_r@popmail.firn.edu> wrote:
> Hi!
> 
> I'm using the Eclipse IDE to develop an application
> that uses the Toolbox
> driver (com.ibm.as400.access.AS400JDBCDriver) to
> connect to and update a
> database on the AS/400. It runs fine from within
> Eclipse. However, if I
> export my application and try to run it directly
> from Windows, I get the
> dreaded "ClassNotFoundException" when I try to
> register the driver with
> DriverManager.
> 
> jt400.jar is in my classpath. I've tried exporting
> to a jar file and using
> "java -jar myjar.jar" and have also exported the
> individual class files and
> used "java myapp". The application's GUI interface
> comes up, but when I
> click on the button that actually makes the
> connection, I get the
> ClassNotFoundException. I've also tried the
> -classpath option on the java
> command to no avail.
> 
> Any suggestions? FYI I'm using JDK 1.4 and the
> JTOpen toolbox.
> 
> Is it possible to extract the necessary classes from
> jt400.jar and put them
> in my jar so I can just distribute a single file?
> 
> Thanks in advance!
> Richard Casey
> 
> _______________________________________________
> 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/mailman/listinfo.cgi/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.
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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.