LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-22-2009, 12:37 PM   #1
dbpbandit
LQ Newbie
 
Registered: Apr 2009
Location: Oregon, USA
Distribution: Debian - Lenny
Posts: 10

Rep: Reputation: 0
Help installing program with a .jar ?


I am trying to install a program (outloook LAN messenger)on Debian Lenny - The file I downloaded was a .tar.gz file. I saved it to my home directory and did the following;

tar xvf outlookmessenger.tar.gz

it decompressed the file and created the new directory (OutlookMessenger) just like it should have, here is where I am running into confusion...

I changed to the new directory with plans to run ./configure but it retuns with the "No Such Directory"
When i look in the directory it created all that's there is an "OMHelp" directory and a "OutlookMessenger.jar" file...

I'm new to this and this is my first post so I will appreciate ANY Help... Thanks...

-Dave
 
Old 04-22-2009, 12:42 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You need to have java installed.
JRE (Java Runtime Environment)

just run the file
./foo.jar
 
Old 04-22-2009, 01:07 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I usually run:

Code:
java -jar program.jar
 
Old 04-22-2009, 01:37 PM   #4
dbpbandit
LQ Newbie
 
Registered: Apr 2009
Location: Oregon, USA
Distribution: Debian - Lenny
Posts: 10

Original Poster
Rep: Reputation: 0
OK, so I take it that once I have the .jar file that's it on the installation? I installed JAVA (that was fun) and I did as suggested, (java -jar OutlookMessenger.jar) and it seems to work. Now I have another question, How can I make a desktop shortcut that will launch this program without having to go to the command line? Thanks again for the help....

-Dave
 
Old 04-22-2009, 01:41 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
create an icon, and in the properties you put
Code:
java -jar /path_to/OutlookMessenger.jar
 
Old 04-22-2009, 01:59 PM   #6
stratotak
Member
 
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Rep: Reputation: 39
and to make things a little easy in installing java next time ..you can add debian multimedia repo to your /etc/apt/sources.list and java is there along with flash,w32codecs,libdvdcss,adobe reader if you want that..along with a lot of other packages that are not in the debian main contrib non-free repo's..
http://debian-multimedia.org/
 
Old 04-22-2009, 06:14 PM   #7
dbpbandit
LQ Newbie
 
Registered: Apr 2009
Location: Oregon, USA
Distribution: Debian - Lenny
Posts: 10

Original Poster
Rep: Reputation: 0
OK, I got it to launch but once the program (outlook Messenger) opens it freezes up and does nothing. Might be a problem with the program it'self?

As for: "to make things a little easy in installing java next time ..you can add debian multimedia repo to your /etc/apt/sources.list and java is there along with flash,w32codecs,libdvdcss,adobe reader if you want that..along with a lot of other packages that are not in the debian main contrib non-free repo's"

What does it mean when you refer to "debian main contrib non-free repo's" ? Can you clarify this for me? Thanks...

-Dave
 
Old 04-22-2009, 06:17 PM   #8
dbpbandit
LQ Newbie
 
Registered: Apr 2009
Location: Oregon, USA
Distribution: Debian - Lenny
Posts: 10

Original Poster
Rep: Reputation: 0
One more thing, how do I do this

"you can add debian multimedia repo to your /etc/apt/sources.list "

and can you please explain what it actually is that I'm doing? Sorry, I hate not knowing, thanks again...

-Dave
 
Old 04-23-2009, 02:51 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
and I did as suggested, (java -jar OutlookMessenger.jar) and it seems to work
So, does it work or not?

If it works from terminal, and not from the launcher, perhaps you first need to cd to the directory which contains the jarfile


For multimedia, add this to your sources.list
Code:
# multimedia
deb http://gulus.usherbrooke.ca/pub/dist...an-multimedia/ stable main
This are the repo's to get
flash,w32codecs,libdvdcss,adobe reader ....using apt-get
 
Old 04-24-2009, 12:18 PM   #10
dbpbandit
LQ Newbie
 
Registered: Apr 2009
Location: Oregon, USA
Distribution: Debian - Lenny
Posts: 10

Original Poster
Rep: Reputation: 0
NO, It still isn't working - it launches but then freezes up.... I was able to get it working on another Linux PC but not this one. I am going to start over from the beginning and see if I can get it to work.

So, do I need to open the "sources.list" file and edit it to include
"# multimedia
deb http://gulus.usherbrooke.ca/pub/dist...an-multimedia/ stable main" ???

Thanks...

-Dave
 
Old 04-24-2009, 12:18 PM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
yes
 
Old 04-24-2009, 01:18 PM   #12
dbpbandit
LQ Newbie
 
Registered: Apr 2009
Location: Oregon, USA
Distribution: Debian - Lenny
Posts: 10

Original Poster
Rep: Reputation: 0
OK, I must be doing something wrong here. I edited the sources.list file as you suggested but when I do the apt-get install Flash or anything else it tells me that it couldn't find the package???? Thanks...

-Dave
 
Old 04-24-2009, 01:19 PM   #13
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
did you do
apt-get update ?
 
Old 04-24-2009, 02:26 PM   #14
dbpbandit
LQ Newbie
 
Registered: Apr 2009
Location: Oregon, USA
Distribution: Debian - Lenny
Posts: 10

Original Poster
Rep: Reputation: 0
No, I hadn't done that yet. When I did do the "apt-get update" this is what i got:

debian:/home/davep# apt-get update
Ign cdrom://[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 DVD Binary-1 20090214-16:54] lenny Release.gpg
Ign cdrom://[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 DVD Binary-1 20090214-16:54] lenny/contrib Translation-en_US
Ign cdrom://[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 DVD Binary-1 20090214-16:54] lenny/main Translation-en_US
Ign cdrom://[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 DVD Binary-1 20090214-16:54] lenny Release
Ign cdrom://[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 DVD Binary-1 20090214-16:54] lenny/contrib Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 DVD Binary-1 20090214-16:54] lenny/main Packages/DiffIndex
Ign http://gulus.usherbrooke.ca stable Release.gpg
Ign http://gulus.usherbrooke.ca stable/main Translation-en_US
Hit http://http.us.debian.org lenny Release.gpg
Ign http://gulus.usherbrooke.ca stable Release
Hit http://security.debian.org lenny/updates Release.gpg
Ign http://security.debian.org lenny/updates/contrib Translation-en_US
Hit http://volatile.debian.org lenny/volatile Release.gpg
Ign http://volatile.debian.org lenny/volatile/contrib Translation-en_US
Ign http://http.us.debian.org lenny/main Translation-en_US
Ign http://gulus.usherbrooke.ca stable/main Packages
Ign http://security.debian.org lenny/updates/main Translation-en_US
Hit http://security.debian.org lenny/updates Release
Hit http://http.us.debian.org lenny Release
Ign http://volatile.debian.org lenny/volatile/main Translation-en_US
Hit http://volatile.debian.org lenny/volatile Release
Ign http://gulus.usherbrooke.ca stable/main Packages
Err http://gulus.usherbrooke.ca stable/main Packages
404 Not Found
Ign http://security.debian.org lenny/updates/contrib Packages/DiffIndex
Ign http://volatile.debian.org lenny/volatile/contrib Packages/DiffIndex
Ign http://http.us.debian.org lenny/main Packages/DiffIndex
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Ign http://security.debian.org lenny/updates/contrib Sources/DiffIndex
Ign http://security.debian.org lenny/updates/main Sources/DiffIndex
Hit http://http.us.debian.org lenny/main Packages
Ign http://volatile.debian.org lenny/volatile/main Packages/DiffIndex
Ign http://volatile.debian.org lenny/volatile/contrib Sources/DiffIndex
Ign http://volatile.debian.org lenny/volatile/main Sources/DiffIndex
Hit http://security.debian.org lenny/updates/contrib Packages
Hit http://volatile.debian.org lenny/volatile/contrib Packages
Hit http://security.debian.org lenny/updates/main Packages
Hit http://security.debian.org lenny/updates/contrib Sources
Hit http://volatile.debian.org lenny/volatile/main Packages
Hit http://volatile.debian.org lenny/volatile/contrib Sources
Hit http://security.debian.org lenny/updates/main Sources
Hit http://volatile.debian.org lenny/volatile/main Sources
W: Failed to fetch http://gulus.usherbrooke.ca/pub/dist...-i386/Packages 404 Not Found

E: Some index files failed to download, they have been ignored, or old ones used instead.
debian:/home/davep#

Looks like it cant find the "gulus" address???/

-Dave
 
Old 04-24-2009, 02:37 PM   #15
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Seems to me the link isn't copied correctly on the forum
I will give it without the http://

Code:
gulus.usherbrooke.ca/pub/distro/debian/debian-multimedia/ stable main
add deb http:// at the beginning
 
  


Reply



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 got error with this command 'java -jar NodeView-v1.1.jar' mohdismiaswaly Linux - Software 3 04-23-2009 06:24 AM
package java program into .jar file rabbit2345 Programming 4 01-23-2008 07:41 AM
How to run JAR from within Java program ?! EAD Programming 1 12-31-2006 07:11 PM
How jar java program? treotan Programming 3 09-08-2005 12:03 AM
Fedora Core 1 Associating .jar files with java -jar command pymehta Fedora 0 01-13-2005 05:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:16 PM.

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