Eclipse “Run” Not finding the class

我们两清 提交于 2019-12-13 06:13:58

问题


Trying to test my project with Eclipse's run, but it generates the following error:

Jul 31, 2013 9:32:50 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Using tweak class name cpw.mods.fml.common.launcher.FMLTweaker
Jul 31, 2013 9:32:50 PM net.minecraft.launchwrapper.LogWrapper log
SEVERE: Unable to launch
java.lang.ClassNotFoundException: cpw.mods.fml.common.launcher.FMLTweaker
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:99)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:49)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

Yet

I try clicking the run from different places, yet it still doesn't work. Anyone know why?


回答1:


Refreshed my classpath by pressing F5 on the folder, thanks Adam.



来源:https://stackoverflow.com/questions/17984343/eclipse-run-not-finding-the-class

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!