This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Invalid Path Environment Variable Displayed by JAVA code!!! (unicode valued!!!!) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Invalid Path Environment Variable Displayed by JAVA code!!! (unicode valued!!!!)" Watch "Invalid Path Environment Variable Displayed by JAVA code!!! (unicode valued!!!!)" New topic
Author

Invalid Path Environment Variable Displayed by JAVA code!!! (unicode valued!!!!)

Safoura Seddigh
Greenhorn

Joined: Nov 28, 2011
Posts: 4
Hi

I have a JAR file which is supposed to run and then run a Python file using runtime.exec. The python files needs to look for a shared library to use for talking to a USB device.

On different machine, however I get different results. On some , the process id done perfectly. On some, not.
I found out that the Path variable the python sub process looks at is a really strange and has crazy value.
Turns out that java code is sending it a crazy value for the Path variable since it sees such crazy value itself. (I displayed the value in java code)

I have attached a screen shot of the results.

Why is it that on some systems, running JAR does not detect a valid Path variable and therefor displays a crazy value. AND the Path variable is the only invalid variable that the JAR file is seeing; the rest of the env variables and their values are fine .

Does any body have an idea of what could be the reason? Anything related to Java runtim....


[Thumbnail for path.jpg]

 
jQuery in Action, 2nd edition
 
subject: Invalid Path Environment Variable Displayed by JAVA code!!! (unicode valued!!!!)
 
Similar Threads
Jar file problems
Help with setting up Tomcat 6.018 for Python scripts
How to run .jar if pc doesnt have the java library environment variables set
Runtim.exec and running a python code? Why it only acts normal sometimes?
Scripts on Linux/Unix: PHP, Perl, and Python