JRebel Windows RegCreateKeyEx(...) returned error code 5.

作为一个JRebel的深度用户,在win10下用JRebel的eclipse插件使用的时候遇到了如下问题:

java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs
at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

这是一个warning,虽然不影响使用,但作为一个有洁癖的人怎么能容忍!

解决方案如下:

  1. Go into your Start Menu and type regedit into the search field.
  2. Navigate to path HKEY_LOCAL_MACHINE\Software\JavaSoft
  3. Right click on the JavaSoft folder and click on New -> Key
  4. Name the new Key Prefs and everything should work.

偷懒的同学可以直接新建一个1.reg的文本文件,将如下代码copy 保存,双击执行即可。

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs]

原因:

Well i can answer that one: java.util.prefs.Preferences default implementation on Windows saves User Preferences AND System Preferences to the Windows Registry

参考链接:

http://stackoverflow.com/questions/16428098/groovy-shell-warning-could-not-open-create-prefs-root-node/17552837#17552837

时间: 2024-10-09 08:16:59

JRebel Windows RegCreateKeyEx(...) returned error code 5.的相关文章

安装jmeter以后打开会弹出命令窗口提示:WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0 x80000002. Windows RegCreateKeyEx(...) returned error code 5.

安装jmeter以后打开会弹出命令窗口提示: WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0 x80000002. Windows RegCreateKeyEx(...) returned error code 5. 应该怎么解决: win+R输入regedit 打开REGEDIT.EXE(真恨微软和其regedit.reg). 然后找到HKEY_LOCAL_MACHINE \ SO

(转) WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

今天要用Jmeter测试服务器性能,发现GUI界面总是有warning提示: 今天要用Jmeter测试服务器性能,发现GUI界面总是有warning提示: WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5. 在网上搜了搜,发现是Jmeter需要写注册表. 解决办法如下

WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5

以下是我的程序(取自好headfirst Java): 1 import javax.sound.midi.*; 2 3 public class MiniMiniMusicApp { 4 public static void main(String[] args) { 5 MiniMiniMusicApp mini = new MiniMiniMusicApp(); 6 mini.play(); 7 } 8 public void play() { 9 try { 10 Sequencer p

启动Jmeter4.0 后弹出警告: WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0 x80000002. Windows RegCreateKeyEx(...) returned error code 5.

启动Jmeter4.0 后弹出命令窗口提示信息: WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0 x80000002. Windows RegCreateKeyEx(...) returned error code 5. 原因: 用管理员账户打开jmeter.bat不报此问题,用非管理员账户打开即报此问题. 解决方法: win+R输入regedit回车,打开注册表编辑器. 找到HKE

WebLogic安装过程--&gt;警告: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

系统:win10专业版 安装Oracle WebLogic,文件wls1036_generic.jar 安装过程.命令及遇到的警告见下图: 解决办法:“运行”-->"regedit";打开注册表,找到HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft,右键点击“权限”,更改权限为许可.

VS2010重新安装时,“MSI returned error code 1612”的解决方案

时间:Today 地点:420实验室 事件: 在重新安装VS2010 的过程中,总是在.NET Framework 4 Multi-Targeting Pack 这个地方失败. 错误代码如下: [07/19/14,13:41:48] .NET Framework 4 Multi-Targeting Pack: [2] Error: Installation failed for component .NET Framework 4 Multi-Targeting Pack. MSI return

SQL Server 2012安装错误案例:Error while enabling Windows feature: NetFx3, Error Code: -2146498298

案例环境: 服务器环境 :    Windows Server 2012 R2 Standard 数据库版本 :    SQL Server 2012 SP1 案例介绍:   在Windows Server 2012 R2 Standard版本上安装SQL SERVER 2012时,安装过程弹出如下错误提示: Error while enabling Windows feature: NetFx3, Error Code: -2146498298, Please try enabling Win

SQL Server 2012安装错误:Error while enabling Windows feature: NetFx3, Error Code: -2146498298

最近在安装SQL server 2012时,碰到错误:Error while enabling Windows feature: NetFx3, Error Code: -2146498298.原本以为Windows 2012配上SQL server 2012应该是一路顺畅才对啊.下面是这个问题的描述及解决方案. 1.安装环境 OS:Windows 2012 data center版本 SQL:SQL server 2012 Enterprise 2.故障描述 3.故障解决 经查,该问题是由于未

SSIS Error The Execute method on the task returned error code 0x80131621

Error Message: The Execute method on the task returned error code 0x80131621 (Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.). The Execute