Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » adding system variable PATH to Info.plist for RCP application on Mac OSX
adding system variable PATH to Info.plist for RCP application on Mac OSX [message #463255] Wed, 07 February 2007 13:41 Go to next message
Eclipse UserFriend
Originally posted by: paul.proxml.be

Context.

The RCP application needs to find the binary "dot" which is located in /usr/local/graphviz-2.12/bin.
The PATH environment variable works in the shell but not from within the RCP. "java.io.IOException: dot not found."


Can I add the path to look into to the info.plist somewhere?

<key>Eclipse</key>
<array>
<string>-startup</string>
<string>../../../startup.jar</string>
<string>-keyring</string>
<string>~/.eclipse_keyring</string>
<string>-consoleLog</string>
<string>-showlocation</string>
</array>

Regards,

Paul
Re: adding system variable PATH to Info.plist for RCP application on Mac OS [message #463262 is a reply to message #463255] Wed, 07 February 2007 15:07 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
You can do this, but if you open Terminal.app you can then run Eclipse.app/Contents/MacOS/Eclipse and it should inherit the PATH variable from Terminal. However, if you run it from Finder, the environment variable won't be seen, unless you've defined it in the magic environment.plist in your home directory (or wherever it is).

If you want to, you can modify the Info.plist to add the path; there's a list of what you can put in at:

http://developer.apple.com/documentation/Java/Conceptual/Jav aPropVMInfoRef/Articles/JavaSystemProperties.html

http://developer.apple.com/documentation/MacOSX/Conceptual/B PRuntimeConfig/index.html

I don't know what the entry for PATH is in these environments. Of course, modifying the Info.plist is unlikely to help since it would be very specific to that file. You could search for it yourself e.g. look in /usr/local/graphviz* /usr/graphviz* etc. to find it and then execute it. A preference pane could specify where it is if it's not found automatically.

Alex.
Re: adding system variable PATH to Info.plist for RCP application on Mac OSX [message #463264 is a reply to message #463255] Wed, 07 February 2007 15:15 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The entries in the info.plist file are processed by eclipse the same as if
they were on the command line. I don't believe Eclipse has any command line
options to modify the path, but your RCP application could check the command
line and do something with it.

-Andrew

Paul Hermans wrote:
> Context.
>
> The RCP application needs to find the binary "dot" which is located in /usr/local/graphviz-2.12/bin.
> The PATH environment variable works in the shell but not from within the RCP. "java.io.IOException: dot not found."
>
>
> Can I add the path to look into to the info.plist somewhere?
>
> <key>Eclipse</key>
> <array>
> <string>-startup</string>
> <string>../../../startup.jar</string>
> <string>-keyring</string>
> <string>~/.eclipse_keyring</string>
> <string>-consoleLog</string>
> <string>-showlocation</string>
> </array>
>
> Regards,
>
> Paul
Previous Topic:Table viewer vs grid Viewer
Next Topic:ProgressBar in SplashScreen
Goto Forum:
  


Current Time: Mon Oct 07 00:00:02 GMT 2024

Powered by FUDForum. Page generated in 0.05265 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top