Page 1 of 1
extension .jar

Posted:
Aug 10th, '12, 14:44
by torinese24
hello all
I'm new, sorry if I do not speak well, but I'm using the google translator,
on the Italian forum mageia 2, almost no one there, so instead here is my problem:
I would like to start a (small) game with the extension. jar
I do not know how to start, I do not know if you have to extract it or start it? how can I do?
I issue the commands to do and the instructions
thanks
hello
Re: extension .jar

Posted:
Aug 10th, '12, 14:47
by isadora
Hi and welcome to the Mageia-forum torinese24!!!!
Your topic has been moved to the "Basic support"-forum.
Re: extension .jar

Posted:
Aug 10th, '12, 14:48
by torinese24
hello, thanks
could you help me?
Re: extension .jar

Posted:
Aug 10th, '12, 14:54
by isadora
Well i guess you need to have Java installed.
Can you give the output in console of:
- Code: Select all
rpm -qa | grep java
Re: extension .jar

Posted:
Aug 10th, '12, 14:58
by torinese24
and after I do this command
What should I do?
Java already installed
Re: extension .jar

Posted:
Aug 10th, '12, 15:04
by isadora
You should be able to execute those .jar-files with
- Code: Select all
java -jar your.jar
where
your is of course the name of the .jar-file you want to run.
Re: extension .jar

Posted:
Aug 10th, '12, 15:08
by torinese24
me an error
I said:
Unable to access jarfile minecraft.jar
"minecraft.jar" is the game
Re: extension .jar

Posted:
Aug 10th, '12, 15:12
by isadora
Al-right torinese24, i am out of options, sorry.

You have to wait until more advanced knowledge is around.
Re: extension .jar

Posted:
Aug 10th, '12, 15:24
by alf
You should maybe give the fully qualified path to the jar file in the java-command.
Re: extension .jar

Posted:
Aug 10th, '12, 19:27
by doktor5000
And please copy&paste the command used and the output this produces, also from which path you executed it from.
Re: extension .jar

Posted:
Aug 10th, '12, 19:32
by torinese24
minecraft.jar = game
procedure:
java-jar minecraft.jar
Error: Error: Unable to access jarfile minecraft.jar
the game (minecraft.jar) is located on the desktop (do not know how to say in linux, but is found in the desk
Re: extension .jar

Posted:
Aug 10th, '12, 20:22
by tom_
ciao,
go to mageiaonline if you prefer use
italianminecraft.jar works fine here
tom@localhost Desktop]$ java -jar minecraft.jar
asdf
(then a windows pop up)
these are the installed java packages on my machine:
(Isadora asked you this list to see what you have on your machine)
- Code: Select all
tom@localhost Desktop]$ rpm -qa | grep java
java-1.6.0-openjdk-devel-1.6.0.0-33.b24.1.mga2
lib64javascriptcoregtk3.0_0-1.8.1-1.mga2
java-access-bridge-1.26.2-4.mga2
timezone-java-2012c-1.mga2
java-1.6.0-sun-fonts-1.6.0.26-0.2.mga1.nonfree
java-1.6.0-sun-plugin-1.6.0.26-0.2.mga1.nonfree
java-1.6.0-openjdk-1.6.0.0-33.b24.1.mga2
java-rpmbuild-1.7.5-17.3.mga2
java-1.6.0-sun-jdbc-1.6.0.26-0.2.mga1.nonfree
rootcerts-java-20120628.00-1.mga2
java-1.6.0-sun-1.6.0.26-0.2.mga1.nonfree
java-1.6.0-sun-alsa-1.6.0.26-0.2.mga1.nonfree
libreoffice-java-common-3.5.5.3-0.3.mga2
lib64javascriptcoregtk1.0_0-1.8.1-1.mga2
Re: extension .jar

Posted:
Aug 10th, '12, 21:07
by torinese24
I like using the terminal, put the path where the file open?
Re: extension .jar

Posted:
Aug 10th, '12, 21:19
by tom_
open the terminal, then type these commands:
- Code: Select all
cd
cd Desktop (maybe you have Scrivania)
java -jar minecraft.jar
Re: extension .jar

Posted:
Aug 10th, '12, 21:28
by alf
- Code: Select all
java -jar ./minecraft.jar
would be better
Re: extension .jar

Posted:
Aug 10th, '12, 22:09
by torinese24
tom_ wrote:open the terminal, then type these commands:
- Code: Select all
cd
cd Desktop (maybe you have Scrivania)
java -jar minecraft.jar
after I did the command you say, what do I do?
by this written:
- Code: Select all
[leader@localhost Scrivania]$ java -jar minecraft.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
at java.lang.Class.getMethod0(Class.java:2685)
at java.lang.Class.getMethod(Class.java:1620)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:492)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:484)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 6 more
[leader@localhost Scrivania]$
~edited by moderator, command-output placed between [code]-tags. 
Re: extension .jar

Posted:
Aug 11th, '12, 00:43
by tom_
this means it started, but there are some problems in it.
As it works on my PC,
so you should check if you have my same Java packages