-bash: ./minecraft.sh: line 2: java: command not found

Discussion in 'Bukkit Help' started by maniacmusic, Mar 24, 2011.

Thread Status:
Not open for further replies.
  1. Just rented my new Root.
    Installed Java (jre-6u24-linux-x64)
    Wanted to install Bukkit...
    following the Install Guide from the Bukkit Wiki (http://wiki.bukkit.org/Setting_up_a_server#Linux)...
    Typing in './minecraft.sh' ...
    Getting this Message:
    Code:
    -bash: ./minecraft.sh: line 2: java: command not found


    Any suggestions what i am doing wrong? Havnt found anything on the Forum...
    Thanks in advance!

    -Server is running Ubuntu 10.04 LTS - minimal - 64bit
     
  2. Offline

    Godspeed

  3. Yeah.....
    thanks for the Link;
    i have installed Java but my problem is :
    when im execute "./minecraft.sh" Linux says me "Java : not Found"
    Please can anybody help me out quick.
    I wanna get this thing started ^^
    Do i may need to reboot the server?
     
  4. Offline

    TnT

    Your java path isn't included in your path variable (or you didn't install Java correctly). Fix that up and you'll be good to go. You don't need to reboot.
     
  5. ok you were totaly right and your tut's help me alot THANX MATE
    Thread can be closed :)

    This solved it:
    Code:
    sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/64/jre1.6.0_23/bin/java" 1
     
Thread Status:
Not open for further replies.

Share This Page