• 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
Setting environment variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Setting environment variables
      • From: Timo Hoepfner <email@hidden>
    • Re: Setting environment variables
      • From: Pascal Robert <email@hidden>
  • Prev by Date: Re: Large to-many relationships and caching "Best Practise"
  • Next by Date: Re: WebObjects 4.5
  • Previous by thread: Re: WebObjects 4.5
  • Next by thread: Re: Setting environment variables
  • Index(es):
    • Date
    • Thread