|
As mentioned in a previous append, it sounds like the versions of jt400.jar are different. The following link will take you to an article in developer works for resolving class path problems. Code the small servlet in the article and put in your project. Run the servlet and you will be prompted for a class name. Type in your class and press submit. It will return the path to where the class was found. I've used this servlet a couple of times. It is very handy for resolving class path problems. Here's the link: http://www-106.ibm.com/developerworks/websphere/techjournal/0406_brown/0406_brown.html Larry Schweyer iSeries AD, IBM Toronto Lab schweyer@xxxxxxxxxx (905)413-4084 Tie-line: 969-4084 "Pokrzywinski, Darren" <PokrzywD@wagners To praytech.com> "'java400-l@xxxxxxxxxxxx'" Sent by: <java400-l@xxxxxxxxxxxx> java400-l-bounces cc @midrange.com Subject runtime problem 27/07/2004 03:15 PM Please respond to Java Programming on and around the iSeries / AS400 I am new to java programming. So I hope my question isn"t to trivial. I have a program that reads an IFS file, then does some updating to a database. This program worked up until last week. I wrote program in WDSC works fine in the development studio, moved the class to 400 gives this error any thoughts. Any help would be appreciated. Here is the error java.lang.NoSuchMethodError: setState (Lcom/ibm/as400/access/SSLOptions;ZZILjava/util/Locale;)V java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:85) java/lang/Error.<init>(Ljava/lang/String;)V+1 (Error.java:41) java/lang/IncompatibleClassChangeError.<init>(Ljava/lang/String;)V+1 (I ncompatibleClassChangeError.java:34) java/lang/NoSuchMethodError.<init>(Ljava/lang/String;)V+1 (NoSuchMethod Error.java:37) com/ibm/as400/access/AS400.chooseImpl()V+95 (AS400.java:719) com/ibm/as400/access/AS400.connectService(I)V+63 (AS400.java:785) com/ibm/as400/access/AS400JDBCConnection.setProperties(Lcom/ibm/as400/a ccess/JDDataSourceURL;Lcom/ibm/as400/access/JDProperties;Lcom/ibm/as400/acce s s/AS400;)V+1 (AS400JDBCConnection.java:2713) com/ibm/as400/access/AS400JDBCDriver.prepareConnection(Lcom/ibm/as400/a ccess/AS400;Lcom/ibm/as400/access/JDDataSourceURL;Ljava/util/Properties;Lcom / ibm/as400/access/JDProperties;)Ljava/sql/Connection;+56 (AS400JDBCDriver.java :1031) com/ibm/as400/access/AS400JDBCDriver.initializeConnection(Lcom/ibm/as40 0/access/JDDataSourceURL;Lcom/ibm/as400/access/JDProperties;Ljava/util/Prope r ties;)Ljava/sql/Connection;+374 (AS400JDBCDriver.java:922) com/ibm/as400/access/AS400JDBCDriver.connect(Ljava/lang/String;Ljava/ut il/Properties;)Ljava/sql/Connection;+411 (AS400JDBCDriver.java:355) java/sql/DriverManager.getConnection(Ljava/lang/String;Ljava/util/Prope rties;Ljava/lang/ClassLoader;)Ljava/sql/Connection;+144 (DriverManager.java:5 12) java/sql/DriverManager.getConnection(Ljava/lang/String;Ljava/lang/Strin g;Ljava/lang/String;)Ljava/sql/Connection;+37 (DriverManager.java:172) File8.main([Ljava/lang/String;)V+272 (File8.java:105) Java program completed with exit code 1 Darren -- 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 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.