Solved Java version error

Discussion in 'Plugin Development' started by Tecno_Wizard, Jan 31, 2015.

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

    Tecno_Wizard

    So I recently installed Java 8 to work with the android api, but when I went to launch my plugin testing server i got this from the console:

    Code:
    C:\Users\Ethan\Desktop\Plugin Testing Server>java -Xmx1024M -jar craftbukkit.jar
    
    Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'
    
    has value '1.8', but '1.7' is required.
    Error: could not find java.dll
    Error: Could not find Java SE Runtime Environment.
    
    C:\Users\Ethan\Desktop\Plugin Testing Server>PAUSE
    Press any key to continue . . .
    So I uninstalled Java 8 to see if that would fix it, and now I have this error, which makes no sense whatsoever.

    Code:
    C:\Users\Ethan\Desktop\Plugin Testing Server>java -Xmx1024M -jar craftbukkit.jar
    
    Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'
    
    has value '1.7', but '1.8' is required.
    Error: could not find java.dll
    Error: Could not find Java SE Runtime Environment.
    
    C:\Users\Ethan\Desktop\Plugin Testing Server>PAUSE
    Press any key to continue . . .
    Anyone know what to do? I currently have the Java 1.7 SDK on my system.
     
  2. Offline

    DaveLillo

    I have both on my System, and i choose in my Coding Programm (Eclipse) always 1.7, and it works.
     
  3. Offline

    Tecno_Wizard

    @DaveLillo, All java related programs run without an issue, it's when they are run in the cmd that this happens.

    EDIT: having 7 and 8 installed at the same time seems to have fixed it.
     
    Last edited: Jan 31, 2015
Thread Status:
Not open for further replies.

Share This Page