[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swarm-Support] no javaswarm in java.library.path
From: |
Bill Northcott |
Subject: |
Re: [Swarm-Support] no javaswarm in java.library.path |
Date: |
Tue, 23 Jan 2007 10:23:55 +1100 |
On 21/01/2007, at 11:48 PM, Alexander Stomper wrote:
i am trying to install Swarm to run it out of Eclipse (2.3.1). I
followed
the install guides
http://www.swarm.org/wiki/Swarm_FAQ:Macintosh_installation
and
http://www.swarm.org/images/e/ec/How-to_use_JavaSwarm_in_Eclipse.pdf
That is, I wrote the following .profile file to be included in my
home:
-----
set SWARMHOME="/usr/local/swarm2.2"
export SWARMHOME
set DISPLAY=:0.0
.........................................
The HowTo is written for Windows, in which you can set environment
variables for GUI applications using a tab in System properties.
MacOS X does not have an equivalent GUI. Application programmers are
supposed to setup their environment and not expect the user to do it!
Altering ~/.profile, as you are doing, will only set up the
environment for a bash shell or anything started from it. ~/.profile
is not run at login. So you need to start Eclipse from within the
bash shell with a command like:
open /Applications/eclipse/Eclipse.app
Obviously the path needs to reflect where you have the Eclipse.app
installed.
If you start Eclipse by double clicking in the Finder, you will
inherit the Finder's environment. This can be set up with an XML file
~/.MacOSX/Environment.plist containing key/value pairs for the
environment variables. This IS read at login. So to activate
changes, you need to log out and back in again - a pain. There is a
handy editor for XML plist files included in Apple's free developer
tools, which I presume you have.
If you are happy to grovel in the Eclipse package, you can add
environment variables purely for Eclipse by adding an LSEnvironment
dictionary to the file Eclipse.app/Contents/Info.plist
See:
http://developer.apple.com/qa/qa2001/qa1067.html
http://developer.apple.com/documentation/MacOSX/Conceptual/
BPRuntimeConfig/Articles/EnvironmentVars.html
http://developer.apple.com/documentation/MacOSX/Conceptual/
BPRuntimeConfig/Articles/PListKeys.html#//apple_ref/doc/uid/
20001431-106825
http://developer.apple.com/documentation/MacOSX/Conceptual/
OSX_Technology_Overview/CommandLine/chapter_8_section_4.html
Hope this works for you.
Bill Northcott