Solved

How do i add "-Duser.language=en" parameter to a user's java runtime parameters via command prompt ?

Posted on 2010-08-25
10
3,414 Views
Last Modified: 2013-12-29
Hello,

At my company, i am connecting the user's computer via remote desktop and adding a parameter like that;

Clicking Start->Settings->Control Panel->Java and opening "Java Control Panel". At the "Java" tab, clicking "View..."

At the "User" tab, double clicking to "Runtime Parameters" column and adding "-Duser.language=en" parameter. And saving the changes.

Normally, i am logging into the user's computer one by one from my computer remotely and there are lots of computers of users to do that.

How can i do that via command line from my computer?

Attached a jpg file about the parameter..

We are using JRE 1.6.0_07.
OS : Windows XP Pro SP3

Best Regards,

Fatih jre_parameter
0
Comment
Question by:TAI-
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
10 Comments
 
LVL 26

Expert Comment

by:ksivananth
ID: 33521545
why are you doing that?
0
 
LVL 5

Expert Comment

by:blackfrancis75
ID: 33521680
you can use Windows admin tools to modify the Registry of each PC directly.

look under HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment

http://java.sun.com/j2se/1.3/runtime_win32.html
0
 

Author Comment

by:TAI-
ID: 33521844
Thanks at first...

ksivananth,
The user's regional setting must be our language (Turkish). But, for working a program here it must be English (United States).So, that parameter force jre to use English. However, it is still turkish at regional settings.

blackfrancis75,
I couldn't find a key about that parameter in the registry at my computer which added the parameter.
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 5

Expert Comment

by:blackfrancis75
ID: 33522312
oh, well based on your reasons for making the change, you're much better off adding the parameter to the launcher for that specific application (rather than the whole Windows platform).  If you're not familiar with the launching mechanism for that particular application, the Vendor should be able to advise how to add a startup parameter.
0
 

Author Comment

by:TAI-
ID: 33528504
blackfrancis75;
At the link you gave previous post, there is an example below;

java -Dfoo="some string" SomeClass

So, mine should be;

java -Duser.language=en {class}

but i dont know which class i will use..
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 33528752
is your application an applet? if so, check this link to pass runtime parameters http://download.oracle.com/javase/7/docs/technotes/guides/jweb/applet/applet_deployment.html

if yours is an application, how do you launch your application? webstart or batch script?
0
 
LVL 5

Expert Comment

by:blackfrancis75
ID: 33531793
TAI-: you should be able to determine how the application is being launched.  That's the key here.  If you can't tell ask the software vendor.
0
 

Author Comment

by:TAI-
ID: 33539315
it is an applet. There is an html page and the APPLET tags embedded into it.
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 33539321
then check the link in my last comment!
0
 

Accepted Solution

by:
TAI- earned 0 total points
ID: 33753888
1) Right Click My Computer.
2) Click Advanced tab
3) Click Environment Variables
4) At the 'System variablers' section, click New button
5) Add "_JAVA_OPTIONS"  to Variable Name section
6) Add "-Duser.language=en"  to Variable Value section
7) To see the change, log off and then log in to windows again.

Thanks everybody...

Fatih
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question