Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/381.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JavaMIDI产生注册表错误_Java_Windows_Registry_Runtime Error_Midi - Fatal编程技术网

JavaMIDI产生注册表错误

JavaMIDI产生注册表错误,java,windows,registry,runtime-error,midi,Java,Windows,Registry,Runtime Error,Midi,是否有任何方法可以在不手动更改注册表的情况下解决此常见Midi错误。 Jan 05, 2015 1:17:05 PM 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.

是否有任何方法可以在不手动更改注册表的情况下解决此常见Midi错误。

Jan 05, 2015 1:17:05 PM 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.
2015年1月5日下午1:17:05 java.util.prefs.WindowsPreferences
警告:无法在根0x8000002处打开/创建prefs根节点Software\JavaSoft\prefs。Windows RegCreateKeyEx(…)返回错误代码5。
这似乎每次我尝试
open()
MidiSystem.getSequencer()时都会发生


我还没有找到任何解决方案,我已经搜索了一段时间。

自动更改注册表?@ElliottFrisch问题是,我很确定这需要管理员权限,我正试图避免提示用户输入管理员密码,因为这是为我正在创建的游戏引擎设置的。您遇到的问题是操作系统问题(在较低的级别上是Java虚拟机)。通常的解决方案是使用shell脚本或安装程序自动化注册表设置过程;例如,它是开源的,可用于构建图形安装程序和设置注册表项。安装程序可能需要管理员权限这一事实对于您的软件将作为(AFAIK)运行的权限并不重要。我试图避免运行Windows。