pluginapi.PluginException: Unable to find main class

  • Windows 10 (x64) 10.0 Java: 1.8.0_91 amd64 0.7.3.2_30 -H:3072 -D:3072 (Steam)
    Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz, N751JK, 8074 MB (3151 MB Heap)
    NVIDIA GeForce GTX 850M 20160801000000.000000-000 21.21.13.6909
    Intel(R) HD Graphics 4600 20160422000000.000000-000 20.19.15.4444
    ______________________________________________________________________
    LoadingState: Error while loading singleplayer game
    pluginapi.PluginException: SimpleCar: Unable to find main class: "de.simple.car.SimpleCar"
    at pluginapi.PluginLoader.loadPlugin(SourceFile:217)
    at pluginapi.PluginLoader.loadPluginFromProject(SourceFile:151)
    at pluginapi.PluginLoader.loadPlugins(SourceFile:57)
    at pluginapi.PluginManager.initialize(SourceFile:60)
    at u.t.c(SourceFile:294)
    at u.t.a(SourceFile:172)
    at u.j.run(SourceFile:195)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


    But this is the content of the projectinfo.txt, that's placed in D:\Programme\Steam\steamapps\common\RisingWorld\plugins\SimpleCar:


    and that's the structure ob E:/Info/Java/RW/SimpleCar

    Code
    |
    |---src
    |----de
    | |---simple
    | |---car
    | |-SimpleCar.java
    |
    |---resources
    |---plugin.yml


    And that's the content of the plugin.yml:


    I really don't know what I'm doing wrong ?(;(

  • Have you tried this method?




    Hmm... this might be a little bit tricky with the Steam version :| I'm afraid it doesn't work properly, since the Steam version is delivered with an own JVM. We are looking for a solution for that!
    As a workaround, you could use the dedicated server instead (set server_hive_verification in the server.properties to false, and connect to it to "localhost")


    A link to the original post that could help you set up the correct JDK outside of Steam for the server.

  • Did you add the path to the JDK to the "config.properties" (or "server.properties" when running a server)? At least that's needed when you want to compile the project on the fly^^ You have to set plugins_jdk_path to the path of your JDK, make sure you escape colons and backslashes. For example: plugins_jdk_path=C\:\\\\Program Files\\Java\\jdk1.8.0_91

  • That's strange... maybe post a full log, to do that, enable debug logging in the "config.properties" file in the game directory (set "game_debug_console" to true), save the file, run the game, and once the error occurred, go to the "Logs" folder in your game directory and upload the latest logfile here :)

  • @Galveston01: If it still does not work, maybe try the latest nightly in Steam. To do that, rightclick on RW in your Steam lib -> Properties -> Betas -> select "testbranch - technical". Try to run the game again (but make sure the classpath is still in the config.properties file), do you still run into the same issue?

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!