java - getenv() not working -


i've created stand alone java application in ubuntu 10.04 using netbeans 6.9. i'm not able use use getenv() command in netbeans, though if create separate java file in gedit , compile in terminal gives desired output.

system.out.println(system.getenv("trgraph")); 

the above code when executed through terminal gives desired output same code if try run in netbeans returns null string.
can tell me how output using netbeans??

you need launch netbeans same terminal after have set , exported trgraph.

example, in terminal:

$ export trgraph=foo $ netbeans& 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -