Where in the IFS should I download poi-3.6 to?
I found an old article that says to download files to: /QIBM/UserData/Java400/ext but I don't see any old poi files in this folder here at my work.
I do see a folder /poi that contains the following files:
My question is where should I have my files and in what structure?
I.E. Should I have a folder: /QIBM/UserData/Java400/ext/poi-3.6 and then have all the files under this folder?
or should I place the new files also in the /poi folder mixing them with the 3.0 files?
It's a matter of preference. I prefer to not put my jar files in the ext folder because IBM puts some stuff in here and I'd rather put my files in their own place, which makes it easier with backup and recovery and upgrades.
As far as which folder, I usually put my jar files in a folder named /Public/Java and I use the class path environment variable to point to the jar files contained in that folder, like this:
localPath = '/Public/Java/Excel_POI'
commandString = 'ADDENVVAR ENVVAR(CLASSPATH) '
+ ''') REPLACE(*YES)';
displayBytes = 'ERROR occurred on Class Path!';
You can see here that the class path is pointed directly to the jar file; not the folder. So, you could have multiple jar file versions and you could change the path, compile into a test library and test away.
Have a great day,
Tags for this Thread