Results 1 to 1 of 1
- 02-06-2008, 03:07 PM #1Member
- Join Date
- Feb 2008
- Rep Power
How do I update a WINDOWS user env variable from my java code ?
This is the problem I'm trying to solve. I have a java thick client (v1.3.1) which will create a socket server on a port number. The port number is determined at runtime. Once the socket server is running, I need to make the port number available to an active x control running in a browser on the same desktop. The active x control will then open a socket connection to the socket server running in my java thick client.
My problem is how do I communicate the port number back to the active x control ? I thought of having my java code update a Windows user environment variable which the active x control could then read from.
However I do not how to do this as the System.setProperty(key, value) method only updates the property within the JVM, not on the actual desktop.
Please note that for security reasons that I wont go into, we've been told that we cannot do this via updating some local file on the filesystem.
Any help is appreciated.
- By guest in forum New To JavaReplies: 1Last Post: 12-01-2007, 05:36 AM
- By patricknowow in forum New To JavaReplies: 1Last Post: 11-30-2007, 04:57 AM
- By cecily in forum XMLReplies: 2Last Post: 08-01-2007, 05:49 PM
- By umashankar in forum Advanced JavaReplies: 1Last Post: 07-27-2007, 02:29 PM
- By derrickD in forum Java SoftwareReplies: 1Last Post: 05-06-2007, 07:46 AM