Java could not find the main class:

    JNC

    Joined
    Nov 11, 2013
    Messages
    142
    Reaction score
    139
    • Purchased!
    • Legacy Citizen 5
    Hi guys,

    I recently updated my Java to 7 update 67 and now when i try to launch SM I get an error message stating "could not find the main class: org.schema.game.common.updater.launcher. program will exit"

    I tried reverting back to Java 6 update 45 but that hasnt helped...

    I also tried redownloading StarMade but i get the same error when trying to run the starter.exe

    ;( any ideas?
     
    Joined
    May 26, 2013
    Messages
    1,176
    Reaction score
    939
    • Legacy Citizen 7
    • Modder
    • Top Forum Contributor
    Try downloading the Linux version and putting it in the same location as the Windows launcher, then try running the Windows launcher.
     

    JNC

    Joined
    Nov 11, 2013
    Messages
    142
    Reaction score
    139
    • Purchased!
    • Legacy Citizen 5
    Hey, that worked! Thanks Crusade!

    Now, do you have an idea of what the root of the issue may be? :D
     

    AndyP

    Customer Experience Manager
    Joined
    Aug 15, 2013
    Messages
    1,199
    Reaction score
    264
    • Schine
    • Wired for Logic
    Open a console and type:
    Code:
    Java -d32 -version
    Java -d64 -version
    I have seen this error on systems with different 32bit and 64bit java versions.
    The recent update forces to use the 64bit version on the game,
    while the launcher may be natively started in 32bit by the OS when using one of those problematic Java versions that seem to prefer 32bit.

    When you got that error from one of the recent updates, you may have been running starmade in 32bit-java all the time before, without noticing. (Bad performance.. xD)

    Best fix is:
    Uninstall all Java versions, and install the 32bit and 64bit variant manually.
    (OR if already on newest: removing the older 32bit variant worked on my computer too..)

    - Andy
     

    JNC

    Joined
    Nov 11, 2013
    Messages
    142
    Reaction score
    139
    • Purchased!
    • Legacy Citizen 5
    Yup, I cleared everything out, put both 32 and 64bit back on, and it's all working great now! :D

    Is there a way to determine if SM is using 32/64bit Java? I have them both enabled under the user tab in the Java control panel.

    Thanks a bunch you guys!
     
    Joined
    Jan 22, 2014
    Messages
    1,047
    Reaction score
    299
    Is there a way to determine if SM is using 32/64bit Java? I have them both enabled under the user tab in the Java control panel.
    The most easiest way should be: Start the game and look what it says in the game window's title bar.