Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to run a Minecraft Server with Bukkit in 12.04.

In the .sh file I'm using to start the Server, I wrote java -Xms1024M -Xmx1024M -jar (and then I wrote the location of where the craftbukkit file is).

When I try to run it in terminal, it opens then closes immediately and I can't start the server. How can I keep terminal open and get the file to run?

share|improve this question
    
Is the file marked as executable? Right click on the file in nautilus (file manager) and goto properties, click on permissions, and see if the box is checked, if not check it then try. –  John Sep 2 '12 at 15:31
add comment

1 Answer

The syntax to run a jar-file is

java -jar jarfilename.jar

Not sure if the order java filename -jar causes the problem, but you could try change it.

Did you make the jar executable?

sudo chmod a+x file-to-make-executable

Navigate to the folder that holds the jar-file and run that command.

Hope this helps

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.