通过 Windows 客户端中的注册表进行 java 设置 [英] java settings via registry in windows client
问题描述
有谁知道如何通过注册表项从下面的对话框中设置 JRE 值?在 HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment 中没有什么明显的(或者这些值到底存储在哪里?)
我们必须为我们的用户设置命令行内存分配,他们在输入参数、按回车键和点击确定时遇到困难.
我想只创建一个 SetCmdArgs.rgs 文件并让他们使用 regedit 来设置值.
来自 XP 上的C:\Program Files\Java\jre6\bin\javacpl.exe"来自 Win7 上的C:\Program Files (x86)\Java\jre6\bin\javacpl.exe"
谢谢,克雷格
好像是文件C:\Users\%USER%\AppData\LocalLow\Sun\Java\Deployment\deployment.properties
命令行参数的存储位置.
在命令行参数中添加 test123
会将文件更改为以下内容:
deployment.javaws.jre.1.location=http\://java.sun.com/products/autodl/j2sedeployment.javaws.jre.1.args=test123deployment.javaws.jre.1.enabled=truedeployment.javaws.jre.1.registered=truedeployment.javaws.jre.1.product=1.6.0_22deployment.javaws.jre.1.path=C\:\\Program Files\\Java\\jre6\\bin\\javaw.exedeployment.javaws.jre.1.osarch=amd64deployment.javaws.jre.1.osname=Windowsdeployment.javaws.jre.1.platform=1.6
至少,我可以手动编辑文件,更改会显示在 Java 控制面板中.可以在此处找到该文件的文档.>
Does anyone know how to set the JRE values from the below dialog via a registry key ? nothing obvious in HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment (or where the heck these values are stored ?)
We have to set the command line memory allocation for our users and they have difficulty typing the arguments, hitting return and the clicking OK.
I was figuring just create a SetCmdArgs.rgs file and have them use regedit to set the values.
from "C:\Program Files\Java\jre6\bin\javacpl.exe" on XP from "C:\Program Files (x86)\Java\jre6\bin\javacpl.exe" on Win7
Thanks, Craig
It seems to be the file
C:\Users\%USER%\AppData\LocalLow\Sun\Java\Deployment\deployment.properties
where the command line arguments are stored.
Adding test123
in the command line arguments changes the file to the following:
deployment.javaws.jre.1.location=http\://java.sun.com/products/autodl/j2se
deployment.javaws.jre.1.args=test123
deployment.javaws.jre.1.enabled=true
deployment.javaws.jre.1.registered=true
deployment.javaws.jre.1.product=1.6.0_22
deployment.javaws.jre.1.path=C\:\\Program Files\\Java\\jre6\\bin\\javaw.exe
deployment.javaws.jre.1.osarch=amd64
deployment.javaws.jre.1.osname=Windows
deployment.javaws.jre.1.platform=1.6
At least, I can manually edit the file and the changes show up in the Java Control Panel. The file's documentation can be found here.
这篇关于通过 Windows 客户端中的注册表进行 java 设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!