• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting environment variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting environment variables


  • Subject: Re: Setting environment variables
  • From: Pascal Robert <email@hidden>
  • Date: Fri, 14 Aug 2009 09:59:48 -0400


Le 09-08-14 à 09:26, Timo Hoepfner a écrit :

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 (*).

It do have a home, it's /var/empty, but it doesn't have write access to his home, and the shell is set to /usr/bin/false



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,

It's replaced by dscl. Most of the time, it use the same commands as niutil, example :


	dscl . -list /Users

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


-------------------------------------------------------
Pascal Robert

Come to WOWODC'09 East in Montréal this August!
http://www.wocommunity.org/wowodc09/east

http://www.macti.ca | http://www.linkedin.com/in/macti

Skype | Twitter | AIM/iChat : MacTICanada

_______________________________________________
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


References: 
 >Setting environment variables (From: Timo Hoepfner <email@hidden>)

  • Prev by Date: Re: WebObjects 4.5
  • Next by Date: Re: Setting environment variables
  • Previous by thread: Setting environment variables
  • Next by thread: Re: Setting environment variables
  • Index(es):
    • Date
    • Thread