简体   繁体   English

如何在调试模式下运行Minecraft

[英]How to run minecraft in Debug mode

I'm not even sure if you can ask this question here but i have the MCP which decompiles minecrafts code and allows you to edit it using eclipse. 我什至不知道您是否可以在这里问这个问题,但是我有MCP,它可以反编译Minecrafts代码并允许您使用Eclipse编辑它。 As you may know in Eclipse there is a feature called debug mode, whenever i click it, it says in the console. 您可能在Eclipse中知道有一种称为调试模式的功能,每当我单击它时,它就会在控制台中显示。

Error: Could not find or load main class Start
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

I went to the Start.java file and tried the debug button again but it didnt work so i was just wondering if you guy's know any way around it, The MCP is for 1.7.10 and it's default not Minecraft Forge. 我去了Start.java文件,然后再次尝试了调试按钮,但是它没有起作用,所以我只是想知道你们是否知道它周围的任何地方,MCP是1.7.10,默认不是Minecraft Forge。 If this is not the right place to ask just ignore it. 如果这不是合适的地方,请忽略它。 ` `

Making my comment an answer and adding the details you asked for: 让我的评论成为答案,并添加您要求的详细信息:

Make sure that Start.java 's folder is defined as a source folder of the Eclipse project into which you imported Minecraft: 确保将Start.java的文件夹定义为导入了Minecraft的Eclipse项目的源文件夹:

  1. Right-click the project in Project Explorer view. 在“ Project Explorer视图中右键单击该项目。
  2. From the popup menu choose Build Path --> Configure Build Path... . 从弹出菜单中选择Build Path > Configure Build Path...
  3. In the popup dialog, if the source tab on the right pane isn't chosen - choose it. 在弹出对话框中,如果未选择右侧窗格中的“ source选项卡,请选择它。
  4. If your source folder already appears on the folder list Source folders on build path - this isn't the problem. 如果您的源文件夹已经出现在文件夹列表中Source folders on build path上的Source folders on build path -这不是问题。 Otherwise - 除此以外 -
  5. Click Add Folder... . 单击Add Folder...
  6. In the popup Source Folder Selection dialog, select your source folder and click OK . 在弹出的“ Source Folder Selection对话框中,选择您的源文件夹,然后单击“ OK
  7. Click OK in the former dialog. 在前一个对话框中单击“ OK ”。
  8. Wait for Eclipse to rebuild your project. 等待Eclipse重建您的项目。
  9. Run your main class again and see what happens. 再次运行您的主类,看看会发生什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM