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



Hello everybody!

I'm attempting to access a MS SQL Server database from RPG and am basing
my attempts on Scott Klement's article on the subject (Here -
http://www.systeminetwork.com/artarchive/newsletter/w/1001/i/-1/a/54759/
index.html)

I have created all of the objects recommended in the article but when I
run the program, I get the following error:

java.lang.NoClassDefFoundError:
com/microsoft/sqlserver/jdbc/SqlServerDriver
at java.lang.Throwable.<init>(Throwable.java:195)

at java.lang.Error.<init>(Error.java:49)

at
java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:40
)



This error seems to be telling me the classpath is set incorrectly or
that the correct class cannot be found at the location. I have
msbase.jar, mssqlserver.jar, msutil.jar and sqljdbc.jar in directory
/QIBM/UserData/Java400/ext. I'm under the impression that the java
virtual machine on the System I defaults to looking in that directory
without any modifications to the classpath variable.

I also have tried adding the QIBM_RPG_JAVA_PROPERTIES environment
variable to the list but still got the error. I tried manually setting
the classpath at both the *sys and *job level.

I'm sorry if this is a stupid question but I'm running out of ideas.
What am I missing?

Thank you,
Chris Anderson
Waukesha, WI


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.