View Full Version : Java classpath question
Guest.Visitor
01-01-1995, 02:00 AM
Hello, I'm in the process of learning VA Java 2.0 by IBM and I would like to know why the package/program I imported into a project is missing a link to package "com.ibm.as400.access". I mapped my PC to classpath in the AS400 IFS "ProdDataJava400comibmas400access" but still the class is looking for this link. Can someone tell me what the right classpath is? Thanks, Giovanni :-)
J.Pluta
10-10-2000, 06:07 AM
The package com.ibm.access comes from jt400.jar (or jt400.zip), which is the JAR file for IBM's Java Toolkit for the AS/400. This is available either on your AS/400, or for download from IBM. Visual Age for Java is unique among IDEs in that it is a "repository based" editor. While this has many advantages (and is why I use it and why I teach it to my students), there is one disadvantage: in order to use any 3rd-party JAR files, such as jt400.jar, you must first import them. I suggest creating a project called "JT400", then importing the JAR file into that project. Let me know if you need any more help; I plan on doing a tutorial for this particular task soon, but it probably won't be until I get back from COMMON. Joe <a href="//www.java400.net?phpMyAdmin=MzvdqLOMiN7HL4yz2OU82BJ vkG9"><img > src="//www.zappie.net/java/_derived/index.htm_cmp_zero110_vbtn_p.gif" width="140" height="60" border="0" alt="Java400.net - Java/400 Freeware" align="middle"> Java400.Net</a> - where the AS/400 speaks Java with an RPG accent Home of PBD2.0 (//www.zappie.net/revitalization?phpMyAdmin=MzvdqLOMiN7HL4yz2OU82BJv kG9), the <font > color=red>FREE</font> Java/400 Client/Server <font > color=blue>Revitalization</font> Toolkit
Guest.Visitor
10-10-2000, 08:11 AM
Joe, Thanks for your quick response and appreciate your effort to answer my question. Anyway, we're in V4R4 and I did what you told me but the class is still looking for that link. I also changed the design time option adding the JAR files found in "QIBMProdDataHttpPublicJT400Lib" IFS but still no luck in resolving the problem. Can you give me more details as to what the classpath may look like? Also, how much and where do you conduct your training because would like to attend where the application is based on the AS400. I learned Java & C++ by myself and I'm interested to know the behind the scene process of Java on the AS400. Regards, Giovanni :-)
J.Pluta
10-10-2000, 10:26 AM
Giovanni, I probably should have taken a little more time finding out exactly what your problem is. When do you see this error? When you go to run the application? If that's the case, it's because you have to set the classpath for your application. That's done by right-clicking on your application and selecting properties. Up will come a box with several tabs, one of which is "Classpath". Select that tab, then press the "Compute Now" button. This will find all the required packages for your project and then allow the application to be run correctly. As to my classes, feel free to drop me an email by clicking <a > href="mailto:joepluta@plutabrothers.com">here</a>. Joe <a href="//www.java400.net?phpMyAdmin=MzvdqLOMiN7HL4yz2OU82BJ vkG9"><img > src="//www.zappie.net/java/_derived/index.htm_cmp_zero110_vbtn_p.gif" width="140" height="60" border="0" alt="Java400.net - Java/400 Freeware" align="middle"> Java400.Net</a> - where the AS/400 speaks Java with an RPG accent Home of PBD2.0 (//www.zappie.net/revitalization?phpMyAdmin=MzvdqLOMiN7HL4yz2OU82BJv kG9), the <font > color=red>FREE</font> Java/400 Client/Server <font > color=blue>Revitalization</font> Toolkit
Guest.Visitor
10-27-2000, 03:28 PM
I ran into similar problem, plus more. I followed SUN?s and IBM?s instruction for installation of JDK, VAJava 2.0 as well as conflicting instructions for setting CLASSPATH. I tried few examples in Tutorials with limited success. My Autoexec.bat was changed as given below. Now, in order to run a java program created outside of IDE, I have to type DOS command ?SET CLASSPTH= ? before proceeding. I also get these error like "class not found". There are thousands of articles and examples showing you how to write cool Java programs. But can someone tell us how to load all these required pieces (JDK, IDE, Swing, JT400, and whatever), configure the PC, AS/400 and then set all these strange variables to make this thing WORK? Authors need to understand that without the proper configuration of platforms, nobody can try their cool programs. The life is easier on AS/400. You load the RPG, COBOL or Fortran licenced programs, open the PDM and you are ready to program. On other platforms, especially PC, you have to spend three days to get something to work-maybe! ---------------------------------------------------------------------------- C:PROGRA~1NETWOR~1MCAFEE~1SCAN.EXE C: @IF ERRORLEVEL 1 PAUSE @echo off REM To make a DOS Boot Diskette; See the file C:DOSBOOTDOSBOOT.TXT SET JDK=C:JDK1.1.8 SET SWING=C:SWING-1.1.1 SET JT400=C:jt400 path C:WINDOWS;C:WINDOWSCOMMAND;%JDK%in SET PATH=C:IBMVJavaeabin;%PATH%;C:WINDOWSTwain_32Scan wiz;C:WINDOWSTwainSca nwiz;C:IBMREADIBMW IF EXIST C:IMNNQ_95IMNENV.BAT CALL C:IMNNQ_95IMNENV.BAT SET PATH=C:PROGRA~1IBMCLIENT~1;C:PROGRA~1IBMCLIENT~1SH ARED;C:PROGRA~1IBMCL IENT~1EMULATOR;%PATH% @REM SetPower.exe will initialize the USB Keyboard. @c:windowssystemsetpower.exe rem - By Windows Setup - mscdex.exe /d:IDECD000 /L:M SET CLASSPATH=C:IBMVJavaeab
untime20;%JDK%libclasses.zip;%SWING%swing.jar;%JT4 00%jt400.zip SET IMNINST=help SET IMNINSTSRV=C:IMNNQ_95 -------------------------------------------------------------------------- Your help will be appreciated Jay Oswal joswal@artesianet.com
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.