extension .jar

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

extension .jar

Postby torinese24 » Aug 10th, '12, 14:44

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
torinese24
 
Posts: 7
Joined: Aug 10th, '12, 14:44

Re: extension .jar

Postby isadora » Aug 10th, '12, 14:47

Hi and welcome to the Mageia-forum torinese24!!!!

Your topic has been moved to the "Basic support"-forum.
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: extension .jar

Postby torinese24 » Aug 10th, '12, 14:48

hello, thanks
could you help me?
torinese24
 
Posts: 7
Joined: Aug 10th, '12, 14:44

Re: extension .jar

Postby isadora » Aug 10th, '12, 14:54

Well i guess you need to have Java installed.

Can you give the output in console of:

Code: Select all
rpm -qa | grep java
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: extension .jar

Postby torinese24 » Aug 10th, '12, 14:58

and after I do this command
What should I do?
Java already installed
torinese24
 
Posts: 7
Joined: Aug 10th, '12, 14:44

Re: extension .jar

Postby isadora » Aug 10th, '12, 15:04

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.
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: extension .jar

Postby torinese24 » Aug 10th, '12, 15:08

me an error
I said:

Unable to access jarfile minecraft.jar

"minecraft.jar" is the game
torinese24
 
Posts: 7
Joined: Aug 10th, '12, 14:44

Re: extension .jar

Postby isadora » Aug 10th, '12, 15:12

Al-right torinese24, i am out of options, sorry. ;)
You have to wait until more advanced knowledge is around.
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: extension .jar

Postby alf » Aug 10th, '12, 15:24

You should maybe give the fully qualified path to the jar file in the java-command.
for windows problems reboot; for linux problems be root
alf
 
Posts: 326
Joined: Apr 1st, '11, 23:07
Location: DE Paderborn

Re: extension .jar

Postby doktor5000 » Aug 10th, '12, 19:27

And please copy&paste the command used and the output this produces, also from which path you executed it from.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18057
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: extension .jar

Postby torinese24 » Aug 10th, '12, 19:32

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
torinese24
 
Posts: 7
Joined: Aug 10th, '12, 14:44

Re: extension .jar

Postby tom_ » Aug 10th, '12, 20:22

ciao,
go to mageiaonline if you prefer use italian


minecraft.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
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: extension .jar

Postby torinese24 » Aug 10th, '12, 21:07

I like using the terminal, put the path where the file open?
torinese24
 
Posts: 7
Joined: Aug 10th, '12, 14:44

Re: extension .jar

Postby tom_ » Aug 10th, '12, 21:19

open the terminal, then type these commands:

Code: Select all
cd
cd Desktop (maybe you have Scrivania)
java -jar minecraft.jar
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: extension .jar

Postby alf » Aug 10th, '12, 21:28

Code: Select all
java -jar ./minecraft.jar
would be better
for windows problems reboot; for linux problems be root
alf
 
Posts: 326
Joined: Apr 1st, '11, 23:07
Location: DE Paderborn

Re: extension .jar

Postby torinese24 » Aug 10th, '12, 22:09

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. ;)
torinese24
 
Posts: 7
Joined: Aug 10th, '12, 14:44

Re: extension .jar

Postby tom_ » Aug 11th, '12, 00:43

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
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron