Since the ini file is essentially used like a properties file, the Java
application will be loading it and specifying the path to it when it does.
You need to put it where the application expects it (where the path to it
is).
According to instructions, "must be placed under a user account folder,
preferable the user used by your application" one would deduce that the
application is looking for it in the home directory of the userid that the
application is run under.
How does this application run on the system? Is it started to run in a
subsystem? What is the user it is started with? Do you feed the ini file
path and name when it starts?
Kristen
-----Original Message-----
From: JAVA400-L [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of John
Allen
Sent: Friday, June 27, 2014 3:22 PM
To: 'Java Programming on and around the IBM i'
Subject: RE: HOpefully quick easy question for some java experts
David,
Thanks for your help/suggestions/guidance on my issue.
I greatly appreciate it.
I tried putting the ini file in '/home/jallen/ATJ0804/'
I also tried putting it in '/home/ATJ0804/'
I also tried putting it in the directory with the jar file.
Whatever directory I put it in, does the path have to be included in the
class path?
-----Original Message-----
From: David Gibbs [mailto:david@xxxxxxxxxxxx]
Sent: Friday, June 27, 2014 3:54 PM
To: Java Programming on and around the IBM i
Subject: Re: HOpefully quick easy question for some java experts
On 6/27/2014 2:46 PM, John Allen wrote:
But.................. " Same place you would put it if
running on
another platform." Does not mean anything to me because I
have never
done anything with Java on another platform.
Well, the java application would normally be put in a directory on any other
system.
You put the application in a similar directory on the IFS on the IBM i.
Your ini file would be placed in the same relative location in the IFS as it
would be on any other platform.
I have attached a zip file to this email. The archive
contains a
folder ATJ0804 and the .ini file. The ATJ0804 folder and
the .ini file
must be placed under a user account folder, preferable the
user used
by your application, like C:\Documents and
Settings\user\ATJ0804\ATJ0804.ini for Windows OS.
The user home directory on the IFS is
/home/<youruserprofile>
It sounds like the you should create directory named
'/home/jallen/ATJ0804 and put everything in that directory.
david
--
IBM i on Power Systems: For when you can't afford to be out of business!
I rode a metric century (100 km / 62 miles) in the 2014 Chicagoland Tour de
Cure to raise money for diabetes research, education, and advocacy. You can
still sponsor me by visiting
http://email.diabetessucks.net. Any amount is
appreciated.
See where I get my donations from ... visit
http://email.diabetessucks.net/mapdonations.php for an interactive map (it's
a geeky thing).
--
This is the Java Programming on and around the IBM i
(JAVA400-L) mailing list To post a message email:
JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/java400-l.
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.