Get Enviorment Variables with Java

April 26, 2007 at 1:13 am 1 comment

I’m getting back into programming in Java, and I found something really cool today. I know a lot of you probably already know this (forgive me I’m fairly new at Java and programming in general), but to get enviorment variables (like $PATH) just use System.out.getenv(String var).

Just goes to show there’s tons of good stuff in the API. 😉

Advertisements

Entry filed under: Uncategorized. Tags: , .

First Screenshot Ubuntu Bug Number 1

1 Comment Add your own

  • 1. dosnlinux  |  April 26, 2007 at 1:16 am

    Whoops! I should have read more. Turns out that way’s been depreciated. Now use getProperty() instead of getenv().

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Feeds


%d bloggers like this: