Error: Could not find or load main class java

Discussion in 'Bukkit Help' started by Epics, Jul 25, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Epics

    This happens when I launch my server via bat file with the following code
    Code:
    @Echo off
    "C:\Program Files\Java\jre7\bin\java.exe" java  -Xms1024M -Xmx1024M -jar craftbukkit-1.2.5-R4.1-20120725.060223-37.jar
    pause
    Using Java 7 x64bit
    It's not (x86)
    All my environmental variables are set up correctly.

    Anyone know what's going on?
     
  2. Offline

    HunterE30633

    if you have all your variables set up correctly, just use

    Code:
    @Echo off
    java  -Xms1024M -Xmx1024M -jar craftbukkit-1.2.5-R4.1-20120725.060223-37.jar
    pause
     
  3. Offline

    Epics

    Error: Could not find or load main class java

    Path: C:\Program Files\Java\jdk1.7.0_05\bin\
    CLASSPATH: C:\Program Files\Java\jdk1.7.0_05\bin\
     
  4. Offline

    HunterE30633

    then try what you had the first time, just without adding "java" so:
    Code:
    @Echo off
    "C:\Program Files\Java\jre7\bin\java.exe" -Xms1024M -Xmx1024M -jar craftbukkit-1.2.5-R4.1-20120725.060223-37.jar
    pause
    
    And if that gives you the same error, then assuming Java is installed correctly and your path is correct, the problem is somewhere else. Either way, post when you have given it a shot
     
  5. Offline

    Epics

    That worked, thanks.
     
  6. Offline

    Aljed_The_Legit

    I get this error:
    java.lang.NullPointerException
    at java.io.Reader.<init>(Unknown Source)
    at java.io.InputStreamReader.<init>(Unknown Source)
    at net.minecraft.server.v1_5_R2.AchievementMap.<init>(SourceFile:15)
    at net.minecraft.server.v1_5_R2.AchievementMap.<clinit>(SourceFile:9)
    at net.minecraft.server.v1_5_R2.Statistic.g(SourceFile:37)
    at net.minecraft.server.v1_5_R2.CounterStatistic.g(SourceFile:15)
    at net.minecraft.server.v1_5_R2.StatisticList.<clinit>(SourceFile:30)
    at net.minecraft.server.v1_5_R2.MinecraftServer.main(MinecraftServer.jav
    a:601)
    at org.bukkit.craftbukkit.Main.main(Main.java:152)
    java.lang.ExceptionInInitializerError
    at net.minecraft.server.v1_5_R2.LocaleI18n.<clinit>(SourceFile:4)
    at net.minecraft.server.v1_5_R2.Item.u(SourceFile:487)
    at net.minecraft.server.v1_5_R2.StatisticList.a(SourceFile:142)
    at net.minecraft.server.v1_5_R2.StatisticList.c(SourceFile:88)
    at net.minecraft.server.v1_5_R2.Item.<clinit>(SourceFile:301)
    at net.minecraft.server.v1_5_R2.Block.<clinit>(Block.java:702)
    at net.minecraft.server.v1_5_R2.StatisticList.a(SourceFile:125)
    at net.minecraft.server.v1_5_R2.StatisticList.<clinit>(SourceFile:58)
    at net.minecraft.server.v1_5_R2.MinecraftServer.main(MinecraftServer.jav
    a:601)
    at org.bukkit.craftbukkit.Main.main(Main.java:152)
    Caused by: java.lang.NullPointerException
    at java.io.Reader.<init>(Unknown Source)
    at java.io.InputStreamReader.<init>(Unknown Source)
    at net.minecraft.server.v1_5_R2.LocaleLanguage.e(SourceFile:31)
    at net.minecraft.server.v1_5_R2.LocaleLanguage.<init>(SourceFile:18)
    at net.minecraft.server.v1_5_R2.LocaleLanguage.<clinit>(SourceFile:8)
    ... 10 more
    Press any key to continue . . .
     
  7. Offline

    Ikeelu2mon

    I had a similar error but i can't load my server at all.I don't know what that is so i tried to re-install the craftbukkit, but i was still unsuccessful. Please help -
    The error said"
    C:\Users\alex\Desktop\TropicCraft 1>C:\"Program Files (x86)"\Java\jre7\bin\java
    -Xms1024M -Xmx1024M -jar craftbukkit.jar -o true
    Error: Could not find or load main class Files

    C:\Users\alex\Desktop\TropicCraft 1>PAUSE
    Press any key to continue...​
     
Thread Status:
Not open for further replies.

Share This Page