-
-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IntelliJ Class not found bug #357
Comments
you probably have the run configurations set for the wrong module. |
I still don;t understand what I'm supposed to do to resolve this. |
Run |
@AbrarSyed I meet this problem too, it says something like |
Yal need to learn to use your chosen IDE. Inyelloj 2016 made it so that a standard gradle project has 3 modules. Project, project-main, and project-test. |
Oh thanks. |
I wasn't aware of that addition to IntellijJ thank you Abrar :) |
By the way @AbrarSyed how to launch dev inv with test mods for forge? I could only launch without test mods. |
For those using IntelliJ to correct this error: After you have setup your project and run the 'genIntellijRuns' task from Gradle panel
Tested using Intellij 2016.1.3 and the 10.2 experimental mdk |
@shaneknysh when i click on "Use classpath of module" i do not get [modname]_main in the dropdown menu at all. The only two choises i get is "" and "[modname]" |
@RexTheCapt Because you need to separate each source set into a module when you import |
@liach how do i do that? |
@RexTheCapt https://youtu.be/G2aPT36kf60 |
Closing this issue as it does not appear to be applicable to the currently supported ForgeGradle branch ( If I am incorrect in this regard, please create a new issue prefixed with
Note that an ongoing effort to update legacy MinecraftForge branches to utilize FG_3.0 is ongoing and accepting informed contributions. (For more information join the Discord and read through the #mcpconfig channel) |
Whenever I try to run Sponge through IntellijIDEA (Latest version) I get this error
Exception in thread "main" java.lang.ClassNotFoundException: GradleStartServer
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
The text was updated successfully, but these errors were encountered: