“拾起_JAVA_OPTIONS”当没有这样的环境变量时 [英] "Picked up _JAVA_OPTIONS" when no such environment variable exists

查看:4260
本文介绍了“拾起_JAVA_OPTIONS”当没有这样的环境变量时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题专门针对Minecraft,但它影响了我的计算机上运行的所有Java程序。

This issue pertains specifically to Minecraft, but it is affecting all Java programs that run on my computer.

似乎有些东西强行设置了_JAVA_OPTIONS环境变量。当我运行我的服务器时,我已指定为其分配4 GB的RAM

It would seem that something is forcibly setting a _JAVA_OPTIONS environment variable. When I run my server, I have specified to allocate 4 GB of RAM to it with

-Xms4G -Xmx4G

。但是,当服务器运行时,它会向控制台输出Picked up _JAVA_OPTIONS:-Xms2048M -Xmx2048M,仅分配2 GB。我检查了系统设置,列表中没有_JAVA_OPTIONS环境变量。我不想添加一个,因为那也将尝试为Minecraft本身分配4 GB,这是不必要的并且使用太多RAM。

in the startup batch file. However, when the server runs, It prints "Picked up _JAVA_OPTIONS: -Xms2048M -Xmx2048M" to the console, only allocating 2 GB. I have checked my system settings and there is no _JAVA_OPTIONS environment variable in the list. I do not want to add one, since that will also try to allocate 4 GB to Minecraft itself, which is unnecessary and uses too much RAM.

可能导致这个要设置的变量? (Windows 8.1 64位,Java 7)

What could be causing this variable to be set? (Windows 8.1 64-bit, Java 7)

推荐答案

您可能拥有Razer设备。他们被神弃绝的软件秘密添加了_JAVA_OPTIONS,但只有在启动游戏时,你才能从CMD中看到它。理想情况下卸载该软件,并可能在您的PC上泼一些神圣的水。如果做不到这一点,你可以通过关闭Synapse并重新启动minecraft.exe来实现。

You probably have a Razer device. Their god-forsaken software secretly adds _JAVA_OPTIONS, but only when launching games, so you won't even see it from CMD. Ideally uninstall the software, and maybe splash some holy water on your PC. Failing that, you can probably get by with shutting down Synapse and restarting minecraft.exe

在这里找到(最终): http://www.minecraftforum.net/forums/support/unmodified-minecraft -client / 2183431-_java_options-picked-up-without-existing#reply

Found (eventually) here: http://www.minecraftforum.net/forums/support/unmodified-minecraft-client/2183431-_java_options-picked-up-without-existing#reply

这篇关于“拾起_JAVA_OPTIONS”当没有这样的环境变量时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆