Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-23-2009, 08:32 AM   #1
LQ Newbie
Registered: Apr 2009
Posts: 11

Rep: Reputation: 1
THpw do I install from a tar or Jar file??

Hello all.I am a bit of a Linux newbie,and am determined to get my head around it,but keep hitting problems..Todays problem is...

I cant seem to work out how to install software from Tar or Jar files..(Its one programme specifically-Ultramixer,DJ software)

I'm using Mandriva 2009 Gnome...

Any simply put instructions would be massively appreciated!!!


Old 04-23-2009, 08:44 AM   #2
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Hi MW,
The installation of software from tarballs (tar.gz or tar.bz2 files) varies according to whether you are compiling source code or installing binaries packaged in tarballs. In any event the first step is to unpack the tarball. You do this from the command line by executing:
tar zxvf [name of tar.gz file]
Assuming you have a java runtime environment (jre) already installed, go to the folder containing the .jar file and execute this command:
java -jar [name of .jar file]
Old 04-23-2009, 09:02 AM   #3
Registered: Mar 2003
Location: Berkshire, England.
Distribution: SuSE 10.0
Posts: 299

Rep: Reputation: 32
The ideal way of installing software within Mandrivia is to find a RPM file for it. Installing via RPM will set up everything required within your system, ensure that any other software it relies on is in place, and also make it easier to update or remove the software later on.

However, some software simply doesn't have an RPM file, so you have to use whatever they provide. In this case, you mention TAR and JAR files.

"TAR" is an archive format that basically involves joining all the files together into a single bundle that can then be unbundled by you on your system. It is often combined with GZIP or BZIP to provide a TGZ file or similar, which you can think of as being quite similar to ZIP.

Once you've extracted the file, the contents of a TAR file can be anything, so installing the software could be rabge from really easy to virtually impossible. If you're lucky, there'll be an instructions file (probably README or similar) to tell you what to do, but it will be unique from case to case, so I can't help much there.

A JAR file is totally different -- JAR files contain programs written in the Java programming language. Again, there will probably be specific instructions, but the basic method of installing JAR files is standard -- use the command line to do the following:
java -jar {filename.jar}
(this assumes you have Java already installed on your system)

That much will install the program for you, but again once that's done, any further instructions will vary from program to program. It probably won't appear in your system menu, for example, so you'll need to set that up manually if you want it there.
Old 04-23-2009, 09:41 AM   #4
LQ Newbie
Registered: Apr 2009
Posts: 11

Original Poster
Rep: Reputation: 1
Hello again..I tried this and got an error repoer which I dont yet understand!I have copied and pasted it below..Can someone please dcipher it for me???

Exception in thread "main" java.lang.NoClassDefFoundError: jar
Caused by: java.lang.ClassNotFoundException: jar
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
Could not find the main class: jar. Program will exit.
[mrwoggle@localhost ~]$

Last edited by mrwoggle; 04-23-2009 at 09:42 AM. Reason: adition
Old 04-23-2009, 09:43 AM   #5
LQ Newbie
Registered: Apr 2009
Posts: 11

Original Poster
Rep: Reputation: 1
Having read it again,iis it a problem with Java?I installed through software management and just checked online,it said I needed to uodate Java,but it downloaded a rpm.bin file which I cant open!!

This starting out in linux sure aint easy!!!!

Cheers again



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
I must install a .jar file and I don't know how to do it :| zovres Linux - Newbie 6 10-28-2008 05:46 AM
Why can't I install a *.tar.gz or a *.tar.bz2 file? SkinnerC Slackware 11 12-13-2007 10:03 AM
How do I install JAR extension file in SUSE? suse2166 Linux - Newbie 12 07-15-2006 12:59 AM
Where do I install a Java .jar file? cumbersome Slackware 1 04-22-2006 01:46 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:59 AM.

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