Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-06-2008, 03:07 PM
Member
 
Join Date: Feb 2008
Posts: 1
gavman99 is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Update Installation guest New To Java 1 12-01-2007 05:36 AM
Java Crashes on Mac 10.3.9 not sure how to update patricknowow New To Java 1 11-30-2007 04:57 AM
java frameworks for update a XML document cecily XML 2 08-01-2007 05:49 PM
How to update Existing Word Doc Using java umashankar Advanced Java 1 07-27-2007 02:29 PM
Java SE 6, Update 1 released derrickD Java Announcements 1 05-06-2007 07:46 AM


All times are GMT +3. The time now is 05:21 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org