Results 1 to 1 of 1
- 02-06-2008, 02:07 PM #1
Member
- Join Date
- Feb 2008
- Posts
- 1
- Rep Power
- 0
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.
Similar Threads
-
Java Update Installation
By guest in forum New To JavaReplies: 1Last Post: 12-01-2007, 04:36 AM -
Java Crashes on Mac 10.3.9 not sure how to update
By patricknowow in forum New To JavaReplies: 1Last Post: 11-30-2007, 03:57 AM -
java frameworks for update a XML document
By cecily in forum XMLReplies: 2Last Post: 08-01-2007, 04:49 PM -
How to update Existing Word Doc Using java
By umashankar in forum Advanced JavaReplies: 1Last Post: 07-27-2007, 01:29 PM -
Java SE 6, Update 1 released
By derrickD in forum Java SoftwareReplies: 1Last Post: 05-06-2007, 06:46 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks