Sign in with
Sign up | Sign in
Your question
Solved

Unable To Run minecraft.jar in XFCE4?

Tags:
  • Java
  • Chrome OS
  • Linux
  • Minecraft
  • Debian
  • Chromebook
Last response: in Linux/Free BSD
Share
September 12, 2014 10:50:22 AM

So I installed java and tried to open minecraft.jar. The file didn't open. In fact, there was no error message, nothing happened. Nothing changed on my screen. No programs were closed or opened. Does anyone know how to fix this?

More about : unable run minecraft jar xfce4

a b 5 Linux
September 12, 2014 11:12:05 AM

Hi there. Welcome to Linux.

Unlike windows or Mac, In Linux the standard way to install software is through the repository.

First install Java (openJDK 7 is reccomended) or check if already installed.. Open the terminal and type :
  1. java -version

  1. sudo apt-get install openjdk-7-jre


(from here you can try to run the mincraft jar with:) 
  1. java minecraft.jar


However it is recommended that you use the unoffical installer, as this will keep minecraft up to date. Then add this [unoffical] repository and install minecraft-installer
https://launchpad.net/~minecraft-installer-peeps/+archi...

  1. sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer
  2. sudo apt-get update
  3. sudo apt-get install minecraft-installer
m
0
l
September 12, 2014 11:47:07 AM

skittle said:
Hi there. Welcome to Linux.

Unlike windows or Mac, In Linux the standard way to install software is through the repository.

First install Java (openJDK 7 is reccomended) or check if already installed.. Open the terminal and type :
  1. java -version

  1. sudo apt-get install openjdk-7-jre


(from here you can try to run the mincraft jar with:) 
  1. java minecraft.jar


However it is recommended that you use the unoffical installer, as this will keep minecraft up to date. Then add this [unoffical] repository and install minecraft-installer
https://launchpad.net/~minecraft-installer-peeps/+archi...

  1. sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer
  2. sudo apt-get update
  3. sudo apt-get install minecraft-installer


I've already installed the latest java. Also, [java minecraft.jar] gives me the error that it can't find the file.
m
0
l
Related resources
a b 5 Linux
September 12, 2014 11:53:25 AM

Are you in the directory with the minecraft.jar when you try to run the command? Really though you should just try to use the minecraft-installer package if you are having trouble... it even adds a nice icon to your launcher.
m
0
l
September 12, 2014 11:58:28 AM

skittle said:
Are you in the directory with the minecraft.jar when you try to run the command? Really though you should just try to use the minecraft-installer package if you are having trouble... it even adds a nice icon to your launcher.


When I run [sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer] I get this error:

[apt-get-repository: command not found]
m
0
l
a b 5 Linux
September 12, 2014 12:05:41 PM

Sorry I assumed you were using Ubuntu. What Linux are you using?

Please note that it is
add-apt-repository
not
apt-add-repository (add vs apt)
m
0
l
September 12, 2014 1:02:59 PM

skittle said:
Sorry I assumed you were using Ubuntu. What Linux are you using?

Please note that it is
add-apt-repository
not
apt-add-repository (add vs apt)


I'm using xfce4 with the crouton installer on an Acer C720 Chromebook. I just checked and I think it's Debian.
m
0
l
a b 5 Linux
September 15, 2014 1:57:07 AM

XtremeAero426 said:
skittle said:
Hi there. Welcome to Linux.

Unlike windows or Mac, In Linux the standard way to install software is through the repository.

First install Java (openJDK 7 is reccomended) or check if already installed.. Open the terminal and type :
  1. java -version

  1. sudo apt-get install openjdk-7-jre


(from here you can try to run the mincraft jar with:) 
  1. java minecraft.jar


However it is recommended that you use the unoffical installer, as this will keep minecraft up to date. Then add this [unoffical] repository and install minecraft-installer
https://launchpad.net/~minecraft-installer-peeps/+archi...

  1. sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer
  2. sudo apt-get update
  3. sudo apt-get install minecraft-installer


I've already installed the latest java. Also, [java minecraft.jar] gives me the error that it can't find the file.


You're trying to run it incorrectly.

What you're trying to have Java do is find a Java class named "minecraft.jar" on the classpath and start executing at the Main entry point in that class. No such thing exists.

What you have is an entire Java application bundled into a Java archive (jar, which is just a zip file with a different file extension). All of the java class files that it needs are contained within it. The entrypoint of this application is specified in a file inside of this archive. What you need to do instead is tell Java to execute the jar file and use the metadata contained within to figure out where to start. Do this as follows:

  1. java -jar minecraft.jar


that was easy!
m
0
l
September 15, 2014 8:00:51 AM

Pinhedd said:
XtremeAero426 said:
skittle said:
Hi there. Welcome to Linux.

Unlike windows or Mac, In Linux the standard way to install software is through the repository.

First install Java (openJDK 7 is reccomended) or check if already installed.. Open the terminal and type :
  1. java -version

  1. sudo apt-get install openjdk-7-jre


(from here you can try to run the mincraft jar with:) 
  1. java minecraft.jar


However it is recommended that you use the unoffical installer, as this will keep minecraft up to date. Then add this [unoffical] repository and install minecraft-installer
https://launchpad.net/~minecraft-installer-peeps/+archi...

  1. sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer
  2. sudo apt-get update
  3. sudo apt-get install minecraft-installer


I've already installed the latest java. Also, [java minecraft.jar] gives me the error that it can't find the file.


You're trying to run it incorrectly.

What you're trying to have Java do is find a Java class named "minecraft.jar" on the classpath and start executing at the Main entry point in that class. No such thing exists.

What you have is an entire Java application bundled into a Java archive (jar, which is just a zip file with a different file extension). All of the java class files that it needs are contained within it. The entrypoint of this application is specified in a file inside of this archive. What you need to do instead is tell Java to execute the jar file and use the metadata contained within to figure out where to start. Do this as follows:

  1. java -jar minecraft.jar


that was easy!


I got the error: [Unable to access jarfile minecraft.jar]
m
0
l
a b 5 Linux
September 15, 2014 10:47:38 AM

XtremeAero426 said:
Pinhedd said:
XtremeAero426 said:
skittle said:
Hi there. Welcome to Linux.

Unlike windows or Mac, In Linux the standard way to install software is through the repository.

First install Java (openJDK 7 is reccomended) or check if already installed.. Open the terminal and type :
  1. java -version

  1. sudo apt-get install openjdk-7-jre


(from here you can try to run the mincraft jar with:) 
  1. java minecraft.jar


However it is recommended that you use the unoffical installer, as this will keep minecraft up to date. Then add this [unoffical] repository and install minecraft-installer
https://launchpad.net/~minecraft-installer-peeps/+archi...

  1. sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer
  2. sudo apt-get update
  3. sudo apt-get install minecraft-installer


I've already installed the latest java. Also, [java minecraft.jar] gives me the error that it can't find the file.


You're trying to run it incorrectly.

What you're trying to have Java do is find a Java class named "minecraft.jar" on the classpath and start executing at the Main entry point in that class. No such thing exists.

What you have is an entire Java application bundled into a Java archive (jar, which is just a zip file with a different file extension). All of the java class files that it needs are contained within it. The entrypoint of this application is specified in a file inside of this archive. What you need to do instead is tell Java to execute the jar file and use the metadata contained within to figure out where to start. Do this as follows:

  1. java -jar minecraft.jar


that was easy!


I got the error: [Unable to access jarfile minecraft.jar]


then the file is not in the same folder in which you are invoking the JVM
m
0
l
September 15, 2014 12:06:08 PM

Pinhedd said:
XtremeAero426 said:
Pinhedd said:
XtremeAero426 said:
skittle said:
Hi there. Welcome to Linux.

Unlike windows or Mac, In Linux the standard way to install software is through the repository.

First install Java (openJDK 7 is reccomended) or check if already installed.. Open the terminal and type :
  1. java -version

  1. sudo apt-get install openjdk-7-jre


(from here you can try to run the mincraft jar with:) 
  1. java minecraft.jar


However it is recommended that you use the unoffical installer, as this will keep minecraft up to date. Then add this [unoffical] repository and install minecraft-installer
https://launchpad.net/~minecraft-installer-peeps/+archi...

  1. sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer
  2. sudo apt-get update
  3. sudo apt-get install minecraft-installer


I've already installed the latest java. Also, [java minecraft.jar] gives me the error that it can't find the file.


You're trying to run it incorrectly.

What you're trying to have Java do is find a Java class named "minecraft.jar" on the classpath and start executing at the Main entry point in that class. No such thing exists.

What you have is an entire Java application bundled into a Java archive (jar, which is just a zip file with a different file extension). All of the java class files that it needs are contained within it. The entrypoint of this application is specified in a file inside of this archive. What you need to do instead is tell Java to execute the jar file and use the metadata contained within to figure out where to start. Do this as follows:

  1. java -jar minecraft.jar


that was easy!


I got the error: [Unable to access jarfile minecraft.jar]


then the file is not in the same folder in which you are invoking the JVM


So how would I fix this?
m
0
l

Best solution

a b 5 Linux
September 15, 2014 12:08:33 PM

XtremeAero426 said:
Pinhedd said:
XtremeAero426 said:
Pinhedd said:
XtremeAero426 said:
skittle said:
Hi there. Welcome to Linux.

Unlike windows or Mac, In Linux the standard way to install software is through the repository.

First install Java (openJDK 7 is reccomended) or check if already installed.. Open the terminal and type :
  1. java -version

  1. sudo apt-get install openjdk-7-jre


(from here you can try to run the mincraft jar with:) 
  1. java minecraft.jar


However it is recommended that you use the unoffical installer, as this will keep minecraft up to date. Then add this [unoffical] repository and install minecraft-installer
https://launchpad.net/~minecraft-installer-peeps/+archi...

  1. sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer
  2. sudo apt-get update
  3. sudo apt-get install minecraft-installer


I've already installed the latest java. Also, [java minecraft.jar] gives me the error that it can't find the file.


You're trying to run it incorrectly.

What you're trying to have Java do is find a Java class named "minecraft.jar" on the classpath and start executing at the Main entry point in that class. No such thing exists.

What you have is an entire Java application bundled into a Java archive (jar, which is just a zip file with a different file extension). All of the java class files that it needs are contained within it. The entrypoint of this application is specified in a file inside of this archive. What you need to do instead is tell Java to execute the jar file and use the metadata contained within to figure out where to start. Do this as follows:

  1. java -jar minecraft.jar


that was easy!


I got the error: [Unable to access jarfile minecraft.jar]


then the file is not in the same folder in which you are invoking the JVM


So how would I fix this?


If you used a browser to download Minecraft it will most likely deposit the file in /home/<your username>/Downloads. Navigate there in the terminal and run the command.
Share
!