LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-28-2005, 02:11 PM   #1
ploosh
Member
 
Registered: Feb 2005
Location: Santa Monica, CA, USA
Distribution: Ubuntu 5.04
Posts: 35

Rep: Reputation: 15
how to edit a *.jar file?


Note: Mandrake 10.1, KDE

My question, I think, is how to open and modify a *.jar file.
I've encountered the known bug in mozilla that prevents exporting the address book. But where my newbness appears is in actually applying the patch . I've tried to use the editors (GEdit, Kate, KEdit) to modify the file, but it will not save because of the character coding (in some cases I can't even open the file: messenger.jar). Emacs might be the answer, but I'm a little lost in editing the file using it.
Your help is appreciated!
 
Old 02-28-2005, 02:25 PM   #2
chris318
Member
 
Registered: Feb 2005
Distribution: Slack
Posts: 122

Rep: Reputation: 19
i think you are confused. jar is jave file.
 
Old 02-28-2005, 02:29 PM   #3
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
messenger.jar is a zip file. Unzip it, edit the file (addressbook.js), then zip it up again.
 
Old 02-28-2005, 02:47 PM   #4
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
A .jar file is a java archive file. Which just means it is a *ZIP* file, with possibly a few special files included, e.g., manifest.txt.

Unizp it, make changes, and re-zip it, keeping the ".jar" filename.
 
Old 02-28-2005, 02:58 PM   #5
ploosh
Member
 
Registered: Feb 2005
Location: Santa Monica, CA, USA
Distribution: Ubuntu 5.04
Posts: 35

Original Poster
Rep: Reputation: 15
Perfect.
Opened it with File Roller, edited the file, then added it back in.
Thanks for the timely help, once again.
 
  


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 must install a .jar file and I don't know how to do it :| zovres Linux - Newbie 6 10-28-2008 05:46 AM
jar file installation zakidad Linux - Newbie 1 07-18-2005 11:48 PM
Fedora Core 1 Associating .jar files with java -jar command pymehta Fedora 0 01-13-2005 05:26 AM
how to run a jar file in redhat9.0 balanagireddy Linux - Newbie 10 06-07-2004 06:12 AM
Help installing a (.jar) file. troycus Linux - Newbie 6 10-08-2003 07:23 PM

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

All times are GMT -5. The time now is 11:25 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