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


  • Subject: RE: Yet Another Newbie Question
  • From: "Mohondro, Kevin" <KMohondro@xxxxxxxxxxxxx>
  • Date: Wed, 22 Nov 2000 07:00:25 -0800

Ed,

From the error you're giving, it sounds like you're trying 'java
CheckConnect.java'. Don't use the extension when you are calling
CheckConnect.

-Moe
+---------------------------------------+-------------------------+
|Kevin R Mohondro         858-373-2012  | create circle.summoning |
|Software Engineer        San Diego,CA  | initiate cast(dark_pact)|
|SalePoint Corporate Retail Solutions   | call demon              |
|kmohondro@salepoint.com                | bind=will(caster)       |
+---------------------------------------+-------------------------+ 

>  -----Original Message-----
> From:         Buckingham, Ed [mailto:Buckingham@AE.com] 
> Sent: Wednesday, November 22, 2000 5:55 AM
> To:   'JAVA400'
> Subject:      Yet Another Newbie Question
> 
> I am trying to install JAVA 1.1.8, Swing 1.1.1 and the Java Toolbox for
the AS/400 according to the instructions  found on the
http://www.zappie.net/ web site.  I made it through the install portion of
the instructions and completed the first java compile and test with no
problem.  The second test is to simply check the connection to the AS/400.
I have successfully compiled the CheckConnect.Java program with no errors,
but when I try to run it, I get the following error: Exception in thread
"main" java.lang.NoClassDefFoundError: CheckConnect/java Can anyone tell me
what I might be doing wrong?  I have included the program listing below:
> 
> import com.ibm.as400.access.*;
> 
> public class CheckConnect {
>   public static void main(String argv[]) {
>     try {
>       AS400 as400 = new AS400();
>       SystemValue model = new SystemValue(as400, "QMODEL");
>       SystemValue serial = new SystemValue(as400, "QSRLNBR");
> 
>       as400.connectService(AS400.COMMAND);
> 
>       System.out.println("System: " + as400.getSystemName());
>       System.out.println(" Model: " + model.getValue());
>       System.out.println("Serial: " + serial.getValue());
>     }
>     catch (Exception e) {
>       System.out.println("Error: " + e);
>     }
>     System.exit(0);
>   }
> }
> 
> I am trying to run this from the DOS prompt using JAVA CheckConnect.java
command.  My AUTOEXEC.BAT is a follows:
> 
> c:\windows\dlchlp.exe 
> @C:\PROGRA~1\NORTON~1\NAVDX.EXE /Startup
> @ECHO OFF
> set BLASTER=A220 I5 D1 T4
> REM [Header]
>  
> REM [CD-ROM Drive]
> REM C:\WINDOWS\COMMAND\MSCDEX /D:MSCD001
>  
> REM [Miscellaneous]
>  
> REM [Display]
>  
> set WIN32DMIPATH=C:\DMI\ 
> REM SET PATH=c:\windows;c:\windows\COMMAND;C:\DMI\BIN
> REM SET PATH=C:\LAWSON\TOOLS\PROAGENT;%PATH%
> IF EXIST C:\IMNNQ_95\IMNENV.BAT CALL C:\IMNNQ_95\IMNENV.BAT
> rem ---- These lines remove temp files during each reboot ----
> IF EXIST C:\*.CHK DEL C:\*.CHK
> IF EXIST C:\WINDOWS\TEMP\*.TMP DEL C:\WINDOWS\TEMP\*.TMP
> set IMNINST=help 
>  
> SET HELP=C:\ADTSWIN\HELP;C:\VRPGRT\SYSTEM
> SET
CLASSPATH=C:\IBMDEBUG\LIB\DERTRJRT.JAR;C:\IBMVJAVA\EAB\RUNTIME20;C:\ADTSWIN\
JAVA;C:\ADTSWIN\JAVA\CLASSES.JAR;C:\ADTSWIN\JAVA\JT400.JAR
> set IMNINSTSRV=C:\IMNNQ_95 
> 
>
PATH=C:\PROGRA~1\IBM\CLIENT~1\SHARED;C:\PROGRA~1\IBM\CLIENT~1\EMULATOR;C:\DM
I\BIN;C:\TC\BIN;C:\IMNNQ_95
> PATH=%PATH%;C:\orawin95\bin;C:\IBMVJava\eab\bin;C:\adtswin
> PATH=%PATH%;C:\VRPGRT\SYSTEM;C:\ADTSWIN\JAVA\JT400.JAR;C:\MANIFESTS\SYSTEM
> SET PATH=C:\WINDOWS;C:\WINDOWS\SYSTEM;C:\WINDOWS\COMMAND;%PATH%
> SET PATH=C:\IBMDEBUG\BIN;C:\ADTSWIN;%PATH%
> SET PATH=%PATH%
> SET PATH=%PATH%
> SET LOCPATH=C:\IBMDEBUG\LOCALE;C:\ADTSWIN\SYSTEM
> SET IPF_PATH32=C:\ADTSWIN\SYSTEM
> SET NLSPATH=C:\IBMDEBUG\msg\%L\%N;
> SET DER_DRIVER_PATH=C:\IBMDEBUG
> 
> REM Begin Java environment: JDK1.1.8, SWING1.1.1, JT/400
> 
> REM [JDK1.1.8]
> SET JAVAHOME=C:\JAVA\JDK11~1.8
> SET PATH=%PATH%;C:\JAVA\JDK11~1.8\BIN
> SET CLASSPATH=.;%CLASSPATH%;C:\JAVA\JDK11~1.8\LIB;
> 
> REM [Swing1.1.1]
> SET CLASSPATH=%CLASSPATH%;C:\JAVA\SWING-~1.1FC\SWINGALL.JAR;
> 
> REM [JT/400]
> SET CLASSPATH=%CLASSPATH%;C:\JAVA\JT400\LIB\JT400.JAR;
> 
> REM End Java Environment
> 
> I am able to PING to the AS/400 from my PC, QUSER is available, and
QSERVER is active.  If anyone can help I would greatly appreciate it.
Thanks in advance!
> 
> Ed Buckingham 
> IS Help Desk Consultant
> Phone (724) 779-5683
> buckingham@ae.com
> 
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

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.