LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2014, 04:48 PM   #1
Gaunce
LQ Newbie
 
Registered: Sep 2014
Posts: 3

Rep: Reputation: Disabled
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
 
Old 09-20-2014, 04:56 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,072

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
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
 
Old 09-20-2014, 05:07 PM   #3
Gaunce
LQ Newbie
 
Registered: Sep 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
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"
 
Old 09-20-2014, 07:24 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,072

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
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"
 
Old 09-20-2014, 08:05 PM   #5
notKlaatu
Member
 
Registered: Sep 2010
Location: Wellington, New Zealand
Distribution: Slackware, Fedora
Posts: 998

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error message "Jar file 'mail.jar' was not found in the extended library directory" AussieAndrew Linux - Newbie 1 07-17-2013 01:40 PM
[SOLVED] Gotta weird file showing up on a .jar file while loading.... EODSteven Linux - Newbie 6 10-03-2012 10:49 AM
How to set mail.jar(JavaMail) and mysql-connector-java.jar in Linux class path Terry56 Linux - Software 3 01-19-2010 09:06 AM
I got error with this command 'java -jar NodeView-v1.1.jar' mohdismiaswaly Linux - Software 3 04-23-2009 06:24 AM
Fedora Core 1 Associating .jar files with java -jar command pymehta Fedora 0 01-13-2005 05:26 AM


All times are GMT -5. The time now is 08:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration