Setting environment variables
Setting environment variables
- Subject: Setting environment variables
- From: Timo Hoepfner <email@hidden>
- Date: Fri, 14 Aug 2009 15:26:18 +0200
Hi,
I'm using a native library (pdflib) which comes with it's own java
wrappers. To get this library to accept unicode file names, the LANG
environment variable (as in System.getEnv, not Sytem.getProperty)
needs to be set to something like en_US.UTF-8.
When I fire up Terminal, the environment variable is correctly set,
but when running from within eclipse, it isn't. Now there is a way to
set the environment via ~/.MacOSX/environment.plist, which should work
during development, but not for deployment later, as the appserver
user doesn't actually log in and also has no home dir (*).
Sooooo, would adding LSEnvironment to the Info.plist help? I guess in
the WO case it's interpreted from within java (=> no cookie). Any
other ideas? I'm almost about to write a JNA wrapper for setting the
environment programatically...
Timo
(*) at least I didn't find it. NetInfoManager is gone in 10.5,
Directory Utility is almost useless. To my surprise, the server
Workgroup Manger app works fine with Leopard client, but it doesn't
even list the special users...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden