The classpath statement needs to specify the jt400.jar file itself, not the directory you placed it in. eg : set classpath = .;c:dir1dir2jt400.jar
Unconfigured Ad Widget
Collapse
Announcement
Collapse
No announcement yet.
get in touch with JT400.jar
Collapse
X
-
get in touch with JT400.jar
I suggest you place your program source file and a copy of jt400.jar in the same directory. Then compile your program using the javac command with the -classpath option, eg: javac -classpath yourdir;yourdirjt400.jar yourpgm.java (I'm not suggesting you always compile like this in the future. This is just a simple way of establishing that your PC has the correct software loaded, and that your problem isn't due to IDE configuration).
Comment
-
get in touch with JT400.jar
ok, My java code is written in notepad and following steps were taken. All the command executed were from DOS prompt 1. path c:Program filesjavajdk1.5.0in 2. set classpath = .;c:dir1dir2jt400.jar (my destination for program source is not the same as jt400.jar.) 3. javac pgm1.java Then compilation error as mentioned in my previous post. Thanks
Comment
-
get in touch with JT400.jar
echo %path% gives me ONLY the path I specified in the path command but it flushes out the existing path it has. echo %classpath% does not show me the classpath i specified, it just returns me the text %classpath%. If this means that my classpath is not being set then where am i going wrong? Is it something to do with the authority? Thanks
Comment
-
get in touch with JT400.jar
Hi All, I am writing a simple java program in which i read the file on AS/400. I have set the classpath correctly (at least I think so). The classpath points to jt400.jar on my workstation,but my program doesnt compile it says: package com.ibm.as400.access does not exist. This is how set the classpath set classpath = .;c:dir1dir2 No matter what i do I am unable to compile this program. Please help !
Comment
Comment