Minecraft 对崩溃并不陌生(Minecraft is no stranger to crashes),“退出代码:1”错误是一个常见问题。它通常表示Java配置有问题。但是,此故障相对容易修复。
退出代码为 1 的游戏崩溃也可能是由过时的视频驱动程序或模组冲突,甚至是不正确的启动器路径等原因引起的。所以这里是解决Minecraft Java 版(Minecraft Java Edition)中这些问题的所有方法。

修复 1:重新安装 Java
由于错误代码 1 主要与Java 配置问题(Java configuration issue)有关,因此这是首先要解决的问题。许多指南会告诉您修改Java可执行文件路径,但我们建议您完全重新安装Java。
除了升级Java版本之外,这修复了任何奇怪的配置问题。需要明确的是,当我们谈论重新安装Java时,我们指的是Java Runtime Environment ( JRE )。
- 要更新Java ,请从(Java)官方下载页面(the official download page)下载最新的安装程序。您也可以从 Oracle 的网站上获得相同的信息。

- 有适用于Microsoft Windows、Linux和Mac OS的(Mac OS)Java版本。为您的计算机选择正确的安装程序,如果适用,获取 64 位版本。

- 运行下载的安装程序以在您的计算机上安装Java 。

- 安装完成后关闭设置。

修复 2:修改Minecraft 启动器路径(Minecraft Launcher Path)
Minecraft游戏文件并不是游戏流畅运行的唯一组成部分。Minecraft启动器同样重要,如果无法正确连接 exe 文件
,可能会导致崩溃。(can cause crashes)
一个非常常见的故障是用户 ID(User ID)中的特殊字符会弄乱Launcher路径,从而阻止它找到游戏目录。值得庆幸的是,它很容易修复,只需要在快捷方式目标中添加一小部分。
- 要编辑 Minecraft 启动器的路径,请右键单击桌面上的快捷方式并选择属性。

- 切换到“属性(Properties)”窗口中的“快捷方式(Shortcut)”选项卡。

- 选择Target字段的条目并在末尾附加 –workDir % ProgramData %.minecraft。确保(Make)不要擦除现有文本。如果这样做,请按Ctrl + Z将其恢复。

- 单击(Click)确定关闭属性并应用更改。
修复 3:禁用模组
Minecraft 是目前改装最多的游戏之一。虽然正确的 mod(the right mods)可以极大地提升您的游戏体验,但过多的 mod 也会导致游戏崩溃。
模组错误往往难以诊断,多个模组文件的累积变化会触发罕见的问题。这就是为什么始终建议您保持 mod 列表简短的原因。

每当您遇到游戏问题时,尝试在没有任何模组的情况下运行Minecraft是个好主意。(Minecraft)如果一切顺利,您可以尝试将它们一次一个地添加回去,直到找到导致错误的模组。
修复 4:更新 GPU 驱动程序
驱动程序(Driver)问题是游戏错误的常见原因,Minecraft也不例外。将图形驱动程序更新(Updating your graphic drivers)到最新版本可以修复游戏中的许多潜在错误。
更新GPU(GPU)驱动程序的方法主要有两种——在设备管理器中卸载并重新安装显卡(uninstalling and reinstalling the video card in the Device Manager),或者手动查找软件包。我们推荐第二种方法,因为它可以针对您的特定硬件优化您的驱动程序。
- 要手动安装最新的 VGA 驱动程序,请导航至制造商的网站。宏碁(Acer)、联想、惠普等(Lenovo)笔记本电脑(Laptop)品牌为其所有型号提供驱动程序下载,而台式机用户可以前往Nvidia或AMD获取其显卡驱动程序。

- 您需要笔记本电脑(或显卡)的型号才能找到正确的驱动程序。您可以在笔记本电脑下方或GPU的产品包装盒上找到它。

- 在制造商的网站上搜索您的笔记本电脑型号应该会显示所有兼容驱动程序的列表。滚动(Scroll)查找VGA驱动程序,通常包括图形卡的名称。

- 无论您从何处下载,驱动程序设置都将来自GPU制造商。

- 没有获得错误包的风险 - 安装程序会自动检测您的硬件是否与驱动程序兼容,并且只有在一切都符合时才提供继续的选项。

- 安装完成后,重新启动计算机。

修复 5:重新安装 Minecraft
无论错误是什么,重新安装游戏往往可以解决许多问题。所有视频游戏都是如此,而不仅仅是Minecraft。
但是Minecraft没有提供方便的卸载程序来彻底删除游戏。您必须手动找到游戏文件夹并自行删除。
- Minecraft游戏文件夹位于“C:Users UserName AppData Roaming.minecraft”,其中UserName应替换为您的Windows帐户名。请注意,AppData文件夹通常是隐藏的,因此您需要显示隐藏文件(Show Hidden Files)才能手动导航到它。

- 您也可以使用运行(Run)直接打开游戏文件夹。通过搜索“开始”菜单(Start Menu)并输入 %appdata%.minecraft打开运行实用程序。(Run)

- 虽然我们的目标是删除Minecraft文件夹,但请先花点时间将 saves 文件夹复制到磁盘上的另一个位置。此备份将有助于在重新安装Minecraft后恢复您的进度。

- 现在删除该文件夹并从 Mojang 的官方网站再次安装Minecraft 。

修复Minecraft退出代码(Code)的最佳方法是什么:1?
没有灵丹妙药可以解决Minecraft 1错误代码的所有可能原因。您需要的是尝试多种解决方案,直到游戏再次顺利运行。
第一步是更新事物。更新 Java(Update Java),更新GPU驱动程序,并更新Minecraft。这解决了游戏的大部分问题。
如果Minecraft仍然崩溃并显示退出代码 1,请尝试重新安装游戏以替换任何可能损坏的文件。确保(Make)启动器可以找到游戏目录,并且您应该没有任何问题。
5 Ways to Fix Minecraft “Exit Code: 1”
Minecraft is no stranger to crashes, and the “Exit Code: 1” error is a common issue. It usually indicates a problem with Java configuration. However, this glitch is relatively easy to fix.
A game crash with exit code 1 can also be caused by things like outdated video drivers or mod conflicts, or even an incorrect launcher path. So here are all the methods of fixing these issues in Minecraft Java Edition.

Fix 1: Reinstall Java
As the error code 1 primarily pertains to a Java configuration issue, that is the first thing to fix. Many guides will tell you to modify the Java executable path, though we recommend simply reinstalling Java completely.
This fixes any odd configuration problems, apart from upgrading the Java version. And to be clear, when we talk about reinstalling Java, we are referring to the Java Runtime Environment (JRE).
- To update Java, download the latest installer from the official download page. You can also get the same from Oracle’s website.

- There are versions of Java available for Microsoft Windows, Linux, and Mac OS. Choose the correct installer for your computer, getting the 64-bit version if applicable.

- Run the downloaded setup to install Java on your computer.

- Close the setup once the installation is complete.

Fix 2: Modify the Minecraft Launcher Path
The Minecraft game files aren’t the only component in the smooth running of the game. The Minecraft launcher is equally important and can cause crashes if it fails to connect with the exe file properly.
A very common glitch is for special characters in your User ID to mess up the Launcher path, preventing it from finding the game directory. Thankfully it’s easy to fix, requiring just a small addition to the shortcut target.
- To edit the Minecraft Launcher’s path, right-click on its shortcut on the desktop and select Properties.

- Switch to the Shortcut tab in the Properties window.

- Select the entry of the Target field and append –workDir %ProgramData%.minecraft at the end. Make sure not to wipe out the existing text. If you do, press Ctrl + Z to restore it.

- Click on OK to close Properties and apply the changes.
Fix 3: Disable Mods
Minecraft is one of the most modded games out there. While the right mods can greatly elevate your gameplay experience, too many mods can crash the game as well.
Mod errors tend to be hard to diagnose, with the cumulative changes from multiple mod files triggering rare issues. This is why it’s always recommended to keep your mod list short.

It’s a good idea to try running Minecraft without any mods whenever you’re facing any problems with the game. If things work out, you can try adding them back in one at a time until you find the mod causing the error.
Fix 4: Update GPU Drivers
Driver issues are a common cause of gaming errors, and Minecraft is no exception. Updating your graphic drivers to the latest version can fix many potential bugs with the game.
There are two main ways of updating the GPU drivers – uninstalling and reinstalling the video card in the Device Manager, or finding a package manually. We recommend the second method as it optimizes your drivers for your specific hardware.
- To manually install the latest VGA drivers, navigate to the manufacturer’s website. Laptop brands like Acer, Lenovo, HP, etc. offer driver downloads for all of their models, while desktop users can head to Nvidia or AMD for their graphics card’s driver.

- You’ll need the model number of your laptop (or the graphics card) to find the correct drivers. You can find this underneath the laptop, or on the product box of your GPU.

- Searching the manufacturer’s website for your laptop model should bring up a list of all compatible drivers. Scroll through to find the VGA drivers, often including the name of the graphic card.

- No matter where you downloaded it from, the driver setup will be from the GPU manufacturer.

- There’s no risk of getting the wrong package – the setup automatically detects if your hardware is compatible with the driver, and only gives the option to proceed if everything lines up.

- Once installation is complete, restart your computer.

Fix 5: Reinstall Minecraft
No matter what the error is, reinstalling the game tends to fix many issues. And that’s true for all video games, not just Minecraft.
But Minecraft does not come with a convenient uninstaller to cleanly remove the game. You have to manually locate the game folder and delete it yourself.
- The Minecraft game folder is located in “C:\Users\UserName\AppData\Roaming\.minecraft,” where UserName should be replaced with your Windows account name. Note that the AppData folder is normally hidden, so you need to Show Hidden Files to be able to navigate to it manually.

- You can also use Run to open the game folder straightaway. Open the Run utility by searching the Start Menu and enter %appdata%\.minecraft.

- Though our aim is to delete the Minecraft folder, take a moment to first copy the saves folder to another location on the disk. This backup will be useful to restore your progress after reinstalling Minecraft.

- Now delete the folder and install Minecraft again from Mojang’s official website.

What Is the Best Way of Fixing Minecraft Exit Code: 1?
There is no silver bullet that can fix every possible cause of the Minecraft 1 error code. What you need is to try multiple solutions until the game works smoothly again.
The first step is to update things. Update Java, update the GPU drivers, and update Minecraft. That fixes a majority of problems with the game.
If Minecraft still crashes with an exit code 1, try reinstalling the game to replace any potentially corrupted files. Make sure the launcher can find the game directory, and you shouldn’t have any issues.