|
Ok guys, I told you I would be back after I upgraded to V5R4. I'm BACK I wanted to update you on where I'm at. I won't go through all the things I've tried, but I have made significant progress. I am now able to get my class file to run(well partially). I am now exporting my classes as a .jar file and using a manifest file. My problem now is that I'm referencing a file in my class, but I'm getting a 'No such path or directory' error. I know that the path is valid, because I can run successfully within WDSC. My manifest file looks like this. Main-Class: lockBox.UploadLockBox Class-Path: /javadir/lockBox/ ../../QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar The statement I'm having difficulty with is this. BufferedReader in = new BufferedReader(new FileReader("\\\\rgc-ad\\Public\\customer Service\\Lockbox\\Lockbox Payment Datafiles\\020707P.txt")); Do I need to specify this path differently because its on the IFS? Any ideas? Thanks. Michael Smith iSeries.mySeries. -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Carl Sent: Wednesday, February 14, 2007 6:13 PM To: Java Programming on and around the iSeries / AS400 Subject: Re: RUNJVA problems On 2/14/07, Smith, Mike <Mike_Smith@xxxxxxxxxxxxxxxx> wrote:
Thanks for input John. I've been through most of what you have listed, still a couple things to check, but I thought for the sake of it, I would go ahead and post my code. Don't laugh at the code, as I'm really just getting my feet wet with java.
Mike, I've taken your code and compiled it. Here is my directory structure. /home/carl/test/ /home/carl/test/jt400.jar /home/carl/test/lockBox/ /home/carl/test/lockBox/ConnectDB2.class /home/carl/test/lockBox/UploadLockBox.class And I can successfully call the application using: RUNJVA CLASS(lockBox.UploadLockBox) CLASSPATH('/home/carl/test/jt400.jar:/home/carl/test/')
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.