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 - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-05-2004, 04:13 PM   #1
powadha
Member
 
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651

Rep: Reputation: 31
make-jpkg (java install) problems


I'm trying to install the new java 1.5. I used to have j2re1.4 installed from deb http://jopa.studentenweb.org/debian ./ Since this is getting quite old I'm trying to get the latest working.
I uninstalled this version and am trying to get a .deb from 1.5 by using the instructions from: man make-jpkg. I installed (apt-get install java-package) and downloaded jdk-1_5_0-linux-i586.bin from Sun. According to the man page I need to issue make-jpkg jdk-1_5_0-linux-i586.bin and a .deb should be created. All that happends for me is:

Code:
debian:~/java install# make-jpkg jdk-1_5_0-linux-i586.bin
Creating temporary directory: /tmp/make-jpkg.XXXXbwj6qZ
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh j2re.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk.sh

No matching plugin was found.
Removing temporary directory: done
debian:~/java install#
So, what's this plugin stuff? It isn't noticed in the man page and neither can I find anything online about this. Could this have anything to do with left overs from the previous j2re1.4 install? (apt-get removed only j2re1.4 if I remember correctly it installed quite some dependencies, don't I need to get rid of them aswell?) Or do I need to install something before make-jpkg?

Regards
 
Old 11-05-2004, 04:35 PM   #2
powadha
Member
 
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651

Original Poster
Rep: Reputation: 31
According to:

solution

5. Create the Java deb package

Then create the deb package of the Sun's Java installer by using make-jpkg In this example the Java 1.5.0 JRE is used.

fakeroot make-jpkg jre-1_5_0-linux-i586.bin

Regarding Java 1.5.0

At the time of this writing (2004-10-10) the java-package doesn't yet handle the Java 1.5.0, so you need to apply a patch I created in order for make-jpkg to be able to handle it if you get an error message that says No matching plugin was found when executing the above command.

1. Download the patch (works with version 0.14 of java-package)
2. Extract the gzipped tar archive by executing

tar zxvf patch-java-package_0.14.tar.gz

3. Then change directory into the directory that was created

cd patch-java-package

4. If you are not as root, become root by executing

su

5. Now execute the script that does the patching

./patch-java-package.sh

Example output of the patching script:

About to patch the files /usr/share/java-package/sun-j2re.sh and
/usr/share/java-package/sun-j2sdk.sh so that make-jpkg supports
the Java 1.5.0 JRE/SDK
Do you want to proceed? [y/N] y
patching file /usr/share/java-package/sun-j2re.sh
patching file /usr/share/java-package/sun-j2sdk.sh
The files have been patched successfully.

After this patching the make-jpkg can handle the Java 1.5.0 JRE and SDK fine.

Hmmm, perhaps I'm getting there. I'll let you know if it worked (for all who's interested)
 
Old 11-05-2004, 05:44 PM   #3
powadha
Member
 
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651

Original Poster
Rep: Reputation: 31
Well, it's done!

Just a summary:

Apt-get install java-package
download the java-package patch (needed to compile 1.5) :

patch by: tim (at) serios.net

And issue:

$ tar zxvf patch-java-package_0.14.tar.gz
$ cd patch-java-package
$./patch-java-package.sh

download Sun's Java JDK:

Download J2SE 5.0 JDK or JRE

Make sure you download the .bin file not the .rpm!

Enter the dir you downloaded the .bin
Time to make the .deb

$ make-jpkg jre-1_5_0-linux-i586.bin
$ dpkg -i sun-j2re1.5_1.5.0_i386.deb (or the file that you have depending on JDK or JRE)

You now could get an error about dependencies

use $ apt-get install sun-j2re1.5debian

if this doesn't fix it use $ apt-get -f install

All should be done by now, check it: $ java -version
You should be looking at something like this:

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)

The full howto and help for setting up browser plugin (and more) at:

Java: Sun's JRE/SDK Installation on Debian
 
Old 06-06-2010, 06:11 AM   #4
prince2689
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
help.....

powadha,

plz can you mail me the java-package patch because the site serios.net is down............. My mail address is meet.parikh@indiatimes.com

thanks
 
Old 06-06-2010, 06:17 AM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Quote:
Originally Posted by prince2689 View Post
powadha,

plz can you mail me the java-package patch because the site serios.net is down............. My mail address is meet.parikh@indiatimes.com

thanks
I take it you didn't notice that this thread is 6 yrs old?

And all you need to do to install java is apt-get install sun-java6-plugin
 
  


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
BASH problems: "configure, make, make install" commands don't work ditch* Linux - General 3 07-19-2005 04:37 PM
make and make install problems jabird Red Hat 1 10-11-2004 09:05 PM
how to make a xp install without problems? jrfly Linux - Newbie 2 09-19-2004 09:38 PM
Install problems with Java plugin on Mozilla 1.6 rickshoop Linux - Software 1 06-15-2004 05:51 PM
java and flashplayer install problems on Mandrake 9.1 gasfrog Linux - Newbie 14 07-20-2003 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:18 AM.

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