LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I need help with a .jar file (https://www.linuxquestions.org/questions/linux-newbie-8/i-need-help-with-a-jar-file-4175519551/)

Gaunce 09-20-2014 04:48 PM

I need help with a .jar file
 
Ok so i am trying to run a minecraft server on mint 17 and i have the wiki tutorial and when i enter the terminal command to access the minecraft_server.1.8.jar it says unable to access. I have full permissions and i am following the tutorial directly. I have never had this problem on windows and I tried asking on the minecraft forums and no one could help, so i have come here. please answer this if you can ASAP

thanks

John VV 09-20-2014 04:56 PM

what is the command you are using ?

a average java line would be

Code:

cd /to/the/location/that/"minecraft_server.1.8.jar"/is

java -jar minecraft_server.1.8.jar


Gaunce 09-20-2014 05:07 PM

Quote:

Originally Posted by John VV (Post 5241512)
what is the command you are using ?

a average java line would be

Code:

cd /to/the/location/that/"minecraft_server.1.8.jar"/is

java -jar minecraft_server.1.8.jar


the command i am using is (without quotes)
"cd minecraft java -Xms1G -Xmx1G -jar minecraft_server.1.8.jar"
and
"java -Xms1G -Xmx1G -jar minecraft_server.1.8.jar"

John VV 09-20-2014 07:24 PM

are you 100% sure that you are indeed in the correct folder

Quote:

cd minecraft java -Xms1G -Xmx1G -jar minecraft_server.1.8.jar"
that will not work
you WILL get an error stating that there is no folder called "minecraft java"

notKlaatu 09-20-2014 08:05 PM

Gaunce, you are mixing two commands together and mangling one of them.

You need to do two things, independently of one another.

First, cd into the location containing the .jar file.
Secondly, run the jar file.

So, as John VV said:

Code:

cd /to/the/location/that/"minecraft_server.1.8.jar"/is
and then hit RETURN. This should take you in to the folder (whatever it may be). If you do not know enough about the terminal to cd to this directory, try typing "cd" (without the quotes) and then dragging-and-dropping the directory (containing the jar file you want to execute) into the terminal. Its full path will be pasted as text into the terminal, and then you can press RETURN.

If you do:

Code:

pwd
You should see, in the terminal, that you are now located in the directory containing your jar file.

Assuming you have gotten this far, you can execute the jar file. It looks to me like you got from the wiki link that the command should be 'java -Xmx1G -jar minecraft_server.1.8.jar', so I'll assume you are correct about all those fancy flags (although they're greek to me). So you would execute the jar file like this:

Code:

java -Xmx1G -jar minecraft_server*jar
And that should do it.


All times are GMT -5. The time now is 05:03 AM.