openSUSE Forums > Applications » How to install a Java program (.jar)?

Go Back   openSUSE Forums > Applications
Forums FAQ Members List Search Today's Posts Mark Forums Read


Applications Questions about desktops (KDE, Gnome, XFCE, etc.), software applications (configuration, usage, bugs, documentation)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 24-Oct-2009, 21:09
Oriel7's Avatar
Puzzled Penguin
 
Join Date: May 2009
Posts: 9
Oriel7 hasn't been rated much yet
Default How to install a Java program (.jar)?

Being a new user, I understand that programs in openSUSE 11.1 should only be installed with Yast. But how then can I install a Java program (.jar) which I cannot find in a repository nor in Software.openSUSE.org or Webpin ? For example, I should like to install Arachnophilia.jar. (I have tried "java -jar Arachnophilia.jar" but it does not seem to install it.) Thanks.
Reply With Quote
  #2 (permalink)  
Old 24-Oct-2009, 21:17
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 12,934
caf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputation
Send a message via MSN to caf4926
Default Re: How to install a Java program (.jar)?

From it's home page:

Quote:
Run Arachnophilia
  • Those who downloaded the Windows install program:
    Click the program icon located at "Start ... Programs ... Arachnophilia ... Arachnophilia"
    This icon can be copied onto the desktop or anywhere else you want.
  • Those who downloaded the JAR file version:
    Open a command console (Linux: shell console), move to the Arachnophilia program directory, type "java -jar Arachnophilia.jar"
__________________
Box: openSUSE 11.2 | (KDE4.3.3) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM
Reply With Quote
  #3 (permalink)  
Old 25-Oct-2009, 02:44
ram88's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: relative
Posts: 1,169
ram88 hasn't been rated much yet
Send a message via MSN to ram88 Send a message via Skype™ to ram88
Default Re: How to install a Java program (.jar)?

Quote:
Originally Posted by Oriel7 View Post
Being a new user, I understand that programs in openSUSE 11.1 should only be installed with Yast. But how then can I install a Java program (.jar) which I cannot find in a repository nor in Software.openSUSE.org or Webpin ? For example, I should like to install Arachnophilia.jar. (I have tried "java -jar Arachnophilia.jar" but it does not seem to install it.) Thanks.
Hi!
Is there any error message after executing
Code:
java -jar Arachnophilia.jar
?
__________________
http://akoskm.blogspot.com/
http://yami.googlecode.com/

Do not login directly as root - Thank you!
Reply With Quote
  #4 (permalink)  
Old 25-Oct-2009, 18:41
Explorer Penguin
 
Join Date: Mar 2009
Location: London
Posts: 119
Barry_Nichols hasn't been rated much yet
Default Re: How to install a Java program (.jar)?

You don't install a .jar file, you simply run it within a java virtual machine as you stated
Code:
java -jar [file]
.
The problem may be that you don't have a JVM installed.
Reply With Quote
  #5 (permalink)  
Old 26-Oct-2009, 05:34
Student Penguin
 
Join Date: Jan 2009
Posts: 55
dg333 hasn't been rated much yet
Default Re: How to install a Java program (.jar)?

Quote:
Originally Posted by Oriel7 View Post
(I have tried "java -jar Arachnophilia.jar" but it does not seem to install it.) Thanks.
Arachnophilia is a stand-alone Java program without an installer. So, this command should simply start it up. Does it? Which output can you see in the terminal?

Another case is a program like jEdit that has a Java-based installer that will install the program.
Reply With Quote
  #6 (permalink)  
Old 26-Oct-2009, 05:39
Student Penguin
 
Join Date: Jan 2009
Posts: 55
dg333 hasn't been rated much yet
Default Re: How to install a Java program (.jar)?

Quote:
Originally Posted by Oriel7 View Post
Being a new user, I understand that programs in openSUSE 11.1 should only be installed with Yast.
Not really. Yast provides a convenient interface for only installing programs packed into RPM packages. There are, however, other ways to install/use programs which Yast cannot handle, such as:
a) binary or Java-based installers (you simply run them in the terminal);
b) source-based installations (you have to compile them with make);
c) programs that require no install: just unpack them as necessary and copy to any place to which you have permissions (such as ~/bin/) and run.
Reply With Quote
  #7 (permalink)  
Old 26-Oct-2009, 10:51
Oriel7's Avatar
Puzzled Penguin
 
Join Date: May 2009
Posts: 9
Oriel7 hasn't been rated much yet
Default Re: How to install a Java program (.jar)?

Quote:
Originally Posted by dg333 View Post
Arachnophilia is a stand-alone Java program without an installer. So, this command should simply start it up. Does it?
Thank you, this is the answer! (Sorry if it was trivial.) After I installed Java (as described in the documentation) Arachnophilia did start with "java -jar Arachnophilia.jar". I just understood the documentation as saying that I should install it with YAST.
Reply With Quote
  #8 (permalink)  
Old 03-Nov-2009, 13:24
Oriel7's Avatar
Puzzled Penguin
 
Join Date: May 2009
Posts: 9
Oriel7 hasn't been rated much yet
Default Re: How to install a Java program (.jar)?

A further beginner's question: I now want to create an icon for that Java program on the desktop as well as in the main menu. What is the best way to do this?
PS. I found one way to do it: In the menu editor one can create a new entry including the command line 'java -jar Arachnophilia.jar' and the folder where the jar file is: ~/bin/. That icon one can then also drag onto the desktop. (One can also create an icon directly there, but it seems that one cannot drag it into the main menu.) This should be described in the KDE User Guide, but I did not find it.
Reply With Quote
  #9 (permalink)  
Old 03-Nov-2009, 13:55
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 12,934
caf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputation
Send a message via MSN to caf4926
Default Re: How to install a Java program (.jar)?

Right click the menu to select the Menu Editor
Add an entry in the section you want, all you need is the command to launch it. You can also add an icon.
__________________
Box: openSUSE 11.2 | (KDE4.3.3) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM
Reply With Quote
Reply

Bookmarks

Tags
java, software


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2