View Full Version : HOWTO: Building your own Java 1.5 package
bored2k
September 29th, 2005, 09:20 PM
I have pasted this same trick numerous times already (half tired of doing it too), but now that Sun Java 1.5 is no longer available on backports I thought I'd post a HOWTO about it.
Download Java 2 Platform Standard Edition 5.0 (http://java.sun.com/j2se/1.5.0/download.jsp)
There, select one of these:
Download JDK 5.0 Update 5
Download JRE 5.0 Update 5
After you have reviewed and accepted the License Agreement, download Linux self-extracting file (the one with the .bin extension).
In sequence, execute these commands in Terminal mode (Applications -> System Tools -> Terminal):sudo apt-get install fakeroot java-package (http://www.ubuntuguide.org/#extrarepositories)
fakeroot make-jpkg downloaded_package_name.bin
* To get the name of the newly created debian package, let's do: ls
* Now to install it :
sudo dpkg -i newly_created_package.deb (whatever the newly Sun- DEBian package is named).
* Hoary: http://www.ubuntuguide.org/#extrarepositories
* Works on Breezy too.
sumadartson
September 30th, 2005, 03:24 AM
Nice one!
This might be a stupid question, but why not just alien the rpm?
tseliot
September 30th, 2005, 03:33 AM
Thanks for the guide, I will need it when I install Breezy.
statsministern
September 30th, 2005, 07:48 AM
Creating temporary directory: /tmp/make-jpkg.XXXXiGwUre
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk-doc.sh sun-j2sdk.sh
No matching plugin was found.
Removing temporary directory: done
What to do when you get this message after fakeroot? Running Breezy.
manicka
September 30th, 2005, 08:57 AM
Worked perfectly here in breezy.. thankyou :D
bored2k
September 30th, 2005, 09:53 AM
Nice one!
This might be a stupid question, but why not just alien the rpm?
Alien is like playing the lottery. It might work, it might not. Plus, this is the correct version of building a package for debian/ubuntu/et al.
fire59
September 30th, 2005, 03:15 PM
Can you post your source.list? I did and apt get but it's telling me that it can't find java-package.
Other bit of info, i've just installed breezy so if you could post the source.list for breezy.
TakisX
September 30th, 2005, 04:53 PM
the same here no package found
bored2k
September 30th, 2005, 07:32 PM
the same here no package found
http://www.ubuntuguide.org/#extrarepositories
Retry
NemanjaM
October 3rd, 2005, 08:10 AM
bored2k, I tried following the instructions and got this far:
''nemanja@naemanija:~/Desktop/OvdeIdeSkidanje$ fakeroot make-jpkg jre-1_5_0_05-linux-i586-1.bin
Creating temporary directory: /tmp/make-jpkg.XXXXIKpSwK
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk.sh
No matching plugin was found.
Removing temporary directory: done
nemanja@naemanija:~/Desktop/OvdeIdeSkidanje$''
What should my next move be?
I am a total (ubuntu) linux newbie(a couple of days experience).
zaytsevi
October 3rd, 2005, 02:13 PM
DOES NOT WORK:
x@s37:~$ sudo apt-get install fakeroot java-package
Password:
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package java-package
x@s37:~$
nihilocrat
October 3rd, 2005, 03:06 PM
Is there any particular reason why there isn't just a native Ubuntu JRE 1.5 package already in existence? It seems like sort of a fundamental thing for a full desktop/web experience.
kod
October 3rd, 2005, 10:22 PM
re: why no standalone package, it's because of sun's licensing terms.
re: why no java-package, java-package is in multiverse, so you need to add multiverse to your /etc/apt/sources list
See:
http://serios.net/content/debian/java/with-java-package.php
which has instructions for ubuntu as well.
HOWEVER, installing the sdk (sun 1.5 update 5) this way did not work particularly well for me. Yes, a commandline javac and java work, but it seems that most of the typical debian java dependencies are not provided by the sdk package created by java-package.
In other words, jde doesnt work, Eclipse wont install because of unmet dependencies,etc etc.
Anyone else having that issue?
bored2k
October 3rd, 2005, 10:25 PM
DOES NOT WORK:
x@s37:~$ sudo apt-get install fakeroot java-package
Password:
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package java-package
x@s37:~$
You need the repositories for it. http://www.ubuntuguide.org/#extrarepositories
cstudent
October 3rd, 2005, 10:27 PM
I have pasted this same trick numerous times already (half tired of doing it too)...
Thanks for doing it again :)
Bill
ubuntu_123
October 4th, 2005, 01:50 AM
Hi, there.
I repositories for it. like this:http://www.ubuntuguide.org/#extrarepositories.
And my /etc/apt/source.list is like:
************************************************** ***********
deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Preview i386 (20050908)]/ breezy main restricted
deb http://ca.archive.ubuntu.com/ubuntu breezy main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu breezy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ca.archive.ubuntu.com/ubuntu breezy-updates main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu breezy-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://ca.archive.ubuntu.com/ubuntu breezy universe
deb-src http://ca.archive.ubuntu.com/ubuntu breezy universe
deb http://security.ubuntu.com/ubuntu breezy-security main restricted
deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted
deb http://security.ubuntu.com/ubuntu breezy-security universe
deb-src http://security.ubuntu.com/ubuntu breezy-security universe
************************************************** ***********
Now, I still get this:
-----------------------------------------------------
sudo apt-get install fakeroot java-package
Password:
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package java-package
---------------------------------------------------
I am very new for Ubuntu, I do look around to try to find something similar, but no.
Thanks.
lasi.
qiezi!
October 4th, 2005, 03:01 AM
I got java from Azureus' website (kudos to whoever posted this first, sorry I couldn't find it again to link it :()... http://azureus.sourceforge.net/download.php its 15.3 MB (the GTK one), then bored2k's HOWTO will do the rest :)
sd_ap
October 6th, 2005, 04:49 PM
nice one...worked like a charm!
bored2k
October 6th, 2005, 06:03 PM
Hi, there.
I repositories for it. like
deb http://us.archive.ubuntu.com/ubuntu breezy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu breezy main restricted
## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
deb http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu breezy universe
deb-src http://us.archive.ubuntu.com/ubuntu breezy universe
deb http://security.ubuntu.com/ubuntu breezy-security main restricted
deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted
deb http://security.ubuntu.com/ubuntu breezy-security universe
deb-src http://security.ubuntu.com/ubuntu breezy-security universe
deb http://archive.ubuntu.com/ubuntu breezy multiverse
deb-src http://archive.ubuntu.com/ubuntu breezy multiverse
Replace your sources.list with those lines.
Donovan
October 6th, 2005, 07:38 PM
For all who have problems with plugins...
Check if you have "Java-common" package installed. That package is also required to make the java-package procedure work. If not just type in console:
sudo aptitude install java-common
Then try again the process
ubuntu_123
October 8th, 2005, 01:57 AM
Hi, there,
Thanks for all your answer.
I tried again with all your suggestion, even I am in canada, I still copied and pasted the source.list to mine, updated it, and I built the java-common.
It seems I went through the whole process, and I actually saw a bunch of java 1.5 something went through the screen, and the 1.5something.deb had been built.
But at the end when I try "java -version", it gives me this:
yasir@rick:~$ java -version
java version "1.4.2"
gij (GNU libgcj) version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
yasir@rick:~$
Even I reboots it, it's still the same.
So, okay, even it is version 1.4, it is still okay and hopefully at least I can get some works done, but I can't use "javac", then I still can't do nothing, can somebody help me out with this?
Thank you.
yasir.
FL!PNEUS
October 8th, 2005, 04:44 AM
Hi, there,
Thanks for all your answer.
I tried again with all your suggestion, even I am in canada, I still copied and pasted the source.list to mine, updated it, and I built the java-common.
It seems I went through the whole process, and I actually saw a bunch of java 1.5 something went through the screen, and the 1.5something.deb had been built.
But at the end when I try "java -version", it gives me this:
Even I reboots it, it's still the same.
So, okay, even it is version 1.4, it is still okay and hopefully at least I can get some works done, but I can't use "javac", then I still can't do nothing, can somebody help me out with this?
Thank you.
yasir.
Run 'sudo update-alternatives -all' and select all the Sun Java stuff instead of that GNU-crap and you'll be fine.
statsministern
October 8th, 2005, 05:56 AM
What to do with this error message? :
helios@darkie:~$fakeroot make-jpkg jdk-1_5_0_05-nb-4_1-linux-ml.bin
Creating temporary directory: /tmp/make-jpkg.XXXXvyAEBl
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk-doc.sh sun-j2sdk.sh
No matching plugin was found.
Removing temporary directory: done
ubuntu_123
October 8th, 2005, 11:53 AM
Hi, FL!PNEUS
It does work! and the compiler also has no problem, sweet.
Java -version come up with 1.5 like this:
yasir@rick:~/school/407/a2/prac/structural/facade$ java -version
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)
yasir@rick:~/school/407/a2/prac/structural/facade$
Thanks, man, I really appreciates that.
yasir
FL!PNEUS
October 9th, 2005, 04:25 AM
What to do with this error message? :
helios@darkie:~$fakeroot make-jpkg jdk-1_5_0_05-nb-4_1-linux-ml.bin
Creating temporary directory: /tmp/make-jpkg.XXXXvyAEBl
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk-doc.sh sun-j2sdk.sh
No matching plugin was found.
Removing temporary directory: done
You downloaded the JDK with NetBeans-bundle. Download the JDK only.
KeithO
October 9th, 2005, 08:24 PM
hey all. I followed the steps here and get a different issue. here's the output I get from terminal:
Error: The file "jre-1_5_0_05-linux-i586.bin" does not exist.
It was downloaded to the desktop and I got through the rest of the steps just fine.
any ideas?
bored2k
October 9th, 2005, 09:54 PM
You need to be in the Desktop dir. By default, the shell starts in Home. Type
cd Desktop then retry :D.
KeithO
October 9th, 2005, 10:06 PM
guess thats a pretty silly thing to overlook. Here's the result:
bpad@bpad:~/Desktop$ sudo apt-get install fakeroot java-package
Password:
Reading package lists... Done
Building dependency tree... Done
fakeroot is already the newest version.
java-package is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
bpad@bpad:~/Desktop$ fakeroot make-jpgk jre-1_5_0_04-linux-i586.bin
/usr/bin/fakeroot: line 150: make-jpgk: command not found
bored2k
October 9th, 2005, 10:08 PM
You got a typo. It's make-jpkg, not make-jpgk.
KeithO
October 9th, 2005, 10:15 PM
Yet another silly mistake to make. Ok. So with correct spelling, I get told I should do this as a non-root user.
bpad@bpad:~/Desktop$ sudo make-jpkg jre-1_5_0_04-linux-i586.bin
You are real root -- unfortunately, some Java distributions have
install scripts that directly manipulate /etc, and may cause some
inconsistencies on your system. Instead, you should become a
non-root user and run:
fakeroot make-jpkg jre-1_5_0_04-linux-i586.bin
which will allow no damage to be done to your system files and
still permit the Java distribution to successfully extract.
Aborting.
seems weird but is this normal? (side note is this is really my 1st weekend playing with linux.)
bored2k
October 9th, 2005, 10:21 PM
Notice how in my instructions I did not tell anyone to use sudo. This step needs to be done by the regular user.
1st week and making your own packages? The force is strong with you :D.
timmyp
October 9th, 2005, 10:24 PM
wrong file... problem solved^^*
I'm beginning to like ubuntu.. hehe...
-----------------------------------------------------------------------------------------------------------------------------------------
1st day (2nd hour to be exact) with ubuntu (or any type of linux) here so please spare with me...
I'm getting the same error...
tim@thinkpad:~/Desktop$ fakeroot make-jpkg <wrong file name>.bin
Creating temporary directory: /tmp/make-jpkg.XXXX0P8loC
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk.sh
No matching plugin was found.
Removing temporary directory: done
What should I do? Thanks in advance.
KeithO
October 9th, 2005, 10:35 PM
hey! I got it. I appreciate the assistance, bored2k. thanks.
bored2k
October 9th, 2005, 10:52 PM
hey! I got it. I appreciate the assistance, bored2k. thanks.
À votre service.
Heh, I just broke our "English" only rule.
jon_gunnar
October 10th, 2005, 09:03 AM
You downloaded the JDK with NetBeans-bundle. Download the JDK only.
Well, I get the same messages and my version is not with the NetBeans-bundle. Have tried both the jdk and jre.
Built the same packages without problems under 5.04.
Running Breezy RC1 amd64 now.
Alexis_B
October 11th, 2005, 02:16 PM
Hi all, I am new with deb too and I had the following message too
Creating temporary directory: /tmp/make-jpkg.XXXX0P8loC
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk.sh
No matching plugin was found.
Removing temporary directory: done
I've just find a solution to make the dpkg
My architecture is a Pentium IV and dpkg-architecture give me :
DEB_BUILD_ARCH=i386
DEB_BUILD_ARCH_OS=linux
DEB_BUILD_ARCH_CPU=i386
DEB_BUILD_GNU_CPU=i486
DEB_BUILD_GNU_SYSTEM=linux-gnu
DEB_BUILD_GNU_TYPE=i486-linux-gnu
DEB_HOST_ARCH=i386
DEB_HOST_ARCH_OS=linux
DEB_HOST_ARCH_CPU=i386
DEB_HOST_GNU_CPU=i486
DEB_HOST_GNU_SYSTEM=linux-gnu
DEB_HOST_GNU_TYPE=i486-linux-gnu
And unfortunatly /usr/share/java-package/sun-j2re.sh looking for i386-linux archi.
so I've execute the following command :
DEB_BUILD_GNU_TYPE=i386-linux fakeroot make-jpkg jdk-1_5_0-linux-i586.bin
and it worked good :)
hope it may help you, good luck
zeroverse
October 11th, 2005, 07:07 PM
I have looked over this forum very carefully reading each post for clues...because I can't get my package made.
Several other people have the same problem but the "solutions" here don't seem to be the answer.
Here's the problem:
No matching plugin was found.
I previously had the gcc problem but I read another similar post that suggested doing "sudo aptitude install build-essential". That fixed that problem.
Then I encounted the "No matching plugin was found" problem. I downloaded the "java-common" files as suggested. No dice.
I have tried to specify the DEB BUILD TYPE (see above post). No dice.
I'm running a fully updated Breezy install i386 on an AMD64 processor (I didn't want to deal with 64bit version problems). Here's my existing java version info:
java version "1.4.2-02"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-02)
Java HotSpot(TM) Client VM (build Blackdown-1.4.2-02, mixed mode)
Thanks for your help in advanced.
chadwick359
October 12th, 2005, 01:23 AM
Also running, breezy, and also getting the plugin error. Glad I found this thread, though.
TuckWat
October 12th, 2005, 12:40 PM
I too have tried everything in this thread except changin the "DEB_BUILD_GNU_TYPE", and still receive the No matching plugin was found.
Removing temporary directory: done
chadwick359
October 12th, 2005, 04:12 PM
Okay, I've tried this with both the JDK and the JRE, with both .24 and .26 of java-package, and still no dice. Any help would be really appreciated, I need 1.5 for my coding homework!
TuckWat
October 13th, 2005, 02:15 AM
Well I'm one step closer... I edited the /usr/share/java-package/sun-j2sdk.sh from i386 to powerpc, and then I ran fakeroot make-jpkg jdk-1_5_0_05-linux-i586.bin which appeared to be working correctly. Until this message: Unpacking...
Checksumming...
0
0
Extracting...
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 336: ./install.sfx.8019: cannot execute binary file
mkdir: cannot create directory `/etc/.java': Permission denied
mkdir: cannot create directory `/etc/.java/.systemPrefs': No such file or directory
touch: cannot touch `/etc/.java/.systemPrefs/.system.lock': No such file or directory
chmod: cannot access `/etc/.java/.systemPrefs/.system.lock': No such file or directory
touch: cannot touch `/etc/.java/.systemPrefs/.systemRootModFile': No such file or directory
chmod: cannot access `/etc/.java/.systemPrefs/.systemRootModFile': No such file or directory
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 603: cd: jdk1.5.0_05: No such file or directory
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 359: /etc/mailcap: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 507: /usr/share/mime-info/java-archive.keys: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 508: /usr/share/mime-info/java-archive.keys: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 509: /usr/share/mime-info/java-archive.keys: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 510: /usr/share/mime-info/java-archive.keys: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 511: /usr/share/mime-info/java-archive.keys: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 512: /usr/share/mime-info/java-archive.keys: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 515: /usr/share/mime-info/java-archive.mime: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 516: /usr/share/mime-info/java-archive.mime: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 519: /usr/share/application-registry/java-archive.applications: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 520: /usr/share/application-registry/java-archive.applications: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 521: /usr/share/application-registry/java-archive.applications: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 522: /usr/share/application-registry/java-archive.applications: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 523: /usr/share/application-registry/java-archive.applications: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 524: /usr/share/application-registry/java-archive.applications: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 507: /usr/share/mime-info/java-web-start.keys: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 508: /usr/share/mime-info/java-web-start.keys: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 509: /usr/share/mime-info/java-web-start.keys: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 510: /usr/share/mime-info/java-web-start.keys: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 511: /usr/share/mime-info/java-web-start.keys: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 512: /usr/share/mime-info/java-web-start.keys: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 515: /usr/share/mime-info/java-web-start.mime: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 516: /usr/share/mime-info/java-web-start.mime: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 519: /usr/share/application-registry/java-web-start.applications: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 520: /usr/share/application-registry/java-web-start.applications: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 521: /usr/share/application-registry/java-web-start.applications: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 522: /usr/share/application-registry/java-web-start.applications: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 523: /usr/share/application-registry/java-web-start.applications: Permission denied
/home/tuckwat/Desktop/jdk-1_5_0_05-linux-i586.bin: line 524: /usr/share/application-registry/java-web-start.applications: Permission denied
Done.
Testing extracted archive...
Invalid size (1 MB) of extracted archive. Probably you have not
enough free disc space in the temporary directory. Note: You can
specify an alternate directory by setting the environment variable
TMPDIR.
Any idea what the next step is??
Thanks
paulo.sebastiao
October 13th, 2005, 04:18 PM
Well I'm one step closer... I edited the /usr/share/java-package/sun-j2sdk.sh from i386 to powerpc, and then I ran which appeared to be working correctly. Until this message:
Any idea what the next step is??
Thanks
Hi there, I had the same permission denied 'problems'. I guess they're not really problems, they're just consequence of fakeroot. We don't want Java installer to create all the dirs, we want dkpg to do it.
As for the last error concerning the invalid size of the archive, I can't remember if i had it :(
Oh well, but for what counts, don't worry about the 'permission denied' msg's.
Cheers!
Neobuntu
October 13th, 2005, 07:45 PM
Breezy and this works.
Hello boys and girls!
I'm running the new (today) released Breezy that I updated from the preview install CD. I just made the jump form MEPIS to ubuntu. Yea.
IT WORKED FOR ME ! Notes below:
I just used the Terminal off the Applications > Accessories > Terminal menu (with cut and paste.)
In Synaptic under Settings > Repositories I just clicked add, and then checked the Universe and Multiverse check boxes and reloaded to make java packages searchable/available/installable.
Commentary: While fretting (%$#$) about the fact Java is seperate from the main unbuntu, I realize it's political or legal. What's ironic is all the open (multi platform) function is the whole point, then here it has a CLOSED type license with the (%$^%$) pages of license fodder. I'm afraid it's all a veiled lock-in strategy. So it's, you can unlock your program to any browser/platform but get locked into Sun. I guess you know this so I'll stop there.
"Oh man, You got me monologing!" (Reference from The Incredibles)
Allright. Next I think, there was WAY too much confusion about the name of the %$#% file. Not "....RPM". Not "..RPM.bin", but just "jre-1_5_0_05-linux-i586.bin".
That's - jre-1_5_0_05-linux-i586.bin
What a stupidly overly long name. I suggest you cut and paste. Don't make these things harder than they need to be. The Sun download pages suck.
Obviously I (personally) just wanted the "jre" to get java working in firefox.
It works great. I am thankful to the ubuntu community.
sphinx
October 14th, 2005, 03:58 AM
Just letting you know about a problem I had, and solved, when trying to create my own sun-jdk package useing the instructions in this thread. No matter what I tried I still go the same " No matching plugin was found." message.
It turns out the 'java-package' package needs the jdk from sun to have its original file name. I had renamed the jdk-1_5_0_05-linux-i586.bin to something else as I had used wget to obtain the file and had specified a filename to save the file as.
Aparently java-package needs the correct filename of the sun jdk to work.
Hope this tidbit helps if anyone else hits this situation.
zorkerz
October 14th, 2005, 09:19 PM
sorry didn't mean to post this
don't know how to delete it
Minger
October 14th, 2005, 10:30 PM
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Um...thats what I get when I try
sudo apt-get install fakeroot java-package
(or just about a ton of other sudo commands for installing too)
sphinx
October 17th, 2005, 05:32 AM
Um...thats what I get when I try
sudo apt-get install fakeroot java-package
(or just about a ton of other sudo commands for installing too)
This might mean that another packageing manager is open. Are you running Synaptic at the same time? (or Update Manager, or the Add Application dialog)
Thats the error you would get if you were. Only one package manager can run at a time.
zorkerz
October 17th, 2005, 02:08 PM
Im also getting this error.
"Invalid size (1 MB) of extracted archive. Probably you have not
enough free disc space in the temporary directory. Note: You can
specify an alternate directory by setting the environment variable
TMPDIR."
I have plenty of space on my harddrive. Is there some limit on the size of the temp directory. Mine is pretty empty. How would i specify an alternate directory, and would that do me any good? Thanx
TuckWat
October 17th, 2005, 07:10 PM
Well i've found out that my problem,
"Invalid size (1 MB) of extracted archive. Probably you have not
enough free disc space in the temporary directory. Note: You can
specify an alternate directory by setting the environment variable
TMPDIR.""
was due to me having a powerpc. Am I right that having an ibook means that I cannot compile java 1.5?
zorkerz
October 18th, 2005, 02:11 PM
was due to me having a powerpc. Am I right that having an ibook means that I cannot compile java 1.5?
I don't have a power pc and im gettng the same error. I have an intel pentium M.
Cyrus
October 18th, 2005, 04:36 PM
I have so many problems with installing Java on my system:
First I could not install the java-package. I have my source.list like that now:
deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu breezy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu breezy universe main restricted
deb-src http://us.archive.ubuntu.com/ubuntu breezy universe
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
#deb http://ubuntu-backports.mirrormax.net/ hoary-backports main universe multiverse restricted
#deb http://ubuntu-backports.mirrormax.net/ hoary-extras main universe multiverse restricted
deb http://security.ubuntu.com/ubuntu breezy-security main restricted
deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted
deb http://security.ubuntu.com/ubuntu breezy-security universe
deb-src http://security.ubuntu.com/ubuntu breezy-security universe
With these settings it could not find the package. So I manually installed a lot of other stuff, I don't even know what I installed
When I am now entering
sudo apt-get install java-package fakeroot
I get these results:
Reading package lists... Done
Building dependency tree... Done
java-package is already the newest version.
fakeroot is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up sun-j2sdk1.5 (1.5.0) ...
Setting up sun-j2sdk1.5debian (0.5) ...
After that I try to
fakeroot make-jpkg jdk-1_5_0_03-linux-i586.bin
with this result:
Creating temporary directory: /tmp/make-jpkg.XXXXfHXiuT
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk.sh
No matching plugin was found.
Removing temporary directory: done
I tried out so much, but I just don't know what to do know. Do you have any ideas?
mesut322
October 18th, 2005, 06:45 PM
For those of you encountering the following problem:
Creating temporary directory: /tmp/make-jpkg.XXXXfHXiuT
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk.sh
No matching plugin was found.
Removing temporary directory: done
Apply the following command:
DEB_BUILD_GNU_TYPE=i386-linux fakeroot make-jpkg jre-1_5_0_05-linux-i586.bin
and your sun-j2re1.5_1.5.0+update05_i386.deb package will be created.
Cyrus
October 19th, 2005, 12:17 PM
Yes, that worked. I have seen the documentation right after I posted my problem. Seriously this was an annoying day yesterday - why is this so complicated? I am new to the world of Linux and had so many troubles to get it actually working - first Ubuntu itself, than Java.
geoffDeGeoffGeoff
October 20th, 2005, 06:50 PM
does anybody know how to get rid of the 'no matching plugin' problem on a powerpc?
this is boring me now...
sbassi
October 24th, 2005, 05:28 PM
Thats nice, but, why there is no .deb posted somewhere?
I could host it, but I don't have that file :(
manicka
October 24th, 2005, 05:35 PM
Thats nice, but, why there is no .deb posted somewhere?
I could host it, but I don't have that file :(
http://antesis.freecontrib.org/mirrors/ubuntu/plf/pool/non-free/java/sun-j2re1.5_1.5.0%2bupdate05_i386.deb
funkenstein
October 26th, 2005, 11:05 AM
Mate.... I can't even begin to describe the joy you have brought to my heart. *wipes tear* I see images of children dancing happily, old folks clapping and laughing, peace on earth, end to poverty and now, java working like a dream on my 64bit Breezy. Life is good, the birds are singing and the sun is shining.
Thank you so much.
/edit - Disclaimer:
Assuming that the repos are working, that you have gcc installed and that lady luck is smiling, of course. :KS
tomach
October 26th, 2005, 06:46 PM
hmmm...im also cant install java plugins for ex for firefox....im searching for it and cant find ...i assume that there arent any plugins for java for amd64???
JuanC
November 13th, 2005, 07:06 PM
I download jre-1_5_0_05-linux-amd64.bin and there is no java plugin for firefox.
Frag
November 19th, 2005, 11:36 AM
I know this might seem strange. I had the same "plugin not found" error. Since i was in my home folder, just moved the file to another directory in my own Home folder (in my case i moved it to /JAVA), and it just worked. Dont ask me why it did, but to those of you who have tried all of those steps, and really need java, its worth a try. I mean, if it worked with me, it might work with you :razz:
WelterPelter
February 24th, 2006, 03:41 PM
Worked perfectly for me. Important to delete the gcj package first, though.
Thanks!:-D
snosrap
February 24th, 2006, 11:40 PM
I have pasted this same trick numerous times already (half tired of doing it too), but now that Sun Java 1.5 is no longer available on backports I thought I'd post a HOWTO about it.
Download Java 2 Platform Standard Edition 5.0 (http://java.sun.com/j2se/1.5.0/download.jsp)
There, select one of these:
Download JDK 5.0 Update 5
Download JRE 5.0 Update 5
After you have reviewed and accepted the License Agreement, download Linux self-extracting file (the one with the .bin extension).
In sequence, execute these commands in Terminal mode (Applications -> System Tools -> Terminal):sudo apt-get install fakeroot java-package (http://www.ubuntuguide.org/#extrarepositories)
fakeroot make-jpkg downloaded_package_name.bin
* To get the name of the newly created debian package, let's do: ls
* Now to install it :
sudo dpkg -i newly_created_package.deb (whatever the newly Sun- DEBian package is named).
* Hoary: http://www.ubuntuguide.org/#extrarepositories
* Works on Breezy too.
Followed your instructions but got the following message when entering the first command in terminal mode:
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package java-package
Any suggestions
jon_gunnar
February 25th, 2006, 03:02 AM
Followed your instructions but got the following message when entering the first command in terminal mode:
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package java-package
Any suggestions
Its found in
jon@localhost:~$ apt-cache show java-package
Package: java-package
Priority: optional
Section: multiverse/misc
So, do you have multiverse enablebled in you're sources.list
Pekz0r
March 28th, 2006, 02:23 PM
What does the following warnings mean?
dpkg-shlibdeps: warning: could not find path for libX11.so.6
dpkg-shlibdeps: warning: could not find path for libX11.so.6
dpkg-shlibdeps: warning: could not find any packages for (libX11.so.6)
dpkg-shlibdeps: warning: unable to find dependency information for shared library libX11 (soname 6, path , dependency field Depends)
(it was much more than this, but they where very sililar)
gurjit
April 1st, 2006, 02:41 AM
Im sorry i saw this psot in this thread already but mine is slightly different here it is:
(notice that i do not use sudo)
gurjit@UBUNTU:~/Desktop$ fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
You are real root -- unfortunately, some Java distributions have
install scripts that directly manipulate /etc, and may cause some
inconsistencies on your system. Instead, you should become a
non-root user and run:
fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
which will allow no damage to be done to your system files and
still permit the Java distribution to successfully extract.
Aborting.
gurjit@UBUNTU:~/Desktop$
Any Ideas?
Thanks in Advance
Gurjit
I dont know if thsi helps but i downloaded the .bin file to my desktop.
gurjit
April 1st, 2006, 12:40 PM
up , i really need to get this working.
Thanks in Advance
Gurjit
Bpa
April 25th, 2006, 11:50 PM
http://www.ubuntuguide.org/#extrarepositories
Retry
I've edited the repositories source.list to allow for universe, multiverse, and backports, but it still says package not found after excuting the first line:
"sudo apt-get install fakeroot java-package"
btw what exactly is fakeroot? I don't understand that part at all.
TitusDalwards
April 26th, 2006, 03:58 PM
http://www.java.com/en/download/manual.jsp
in this site download jre-1_5_0_06-linux-i586.bin file and then:
chmod +x jre-1_5_0_06-linux-i586.bin
sudo apt-get install fakeroot java-package java-common
fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
sudo dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb
could you please try these.
BayGuy27
May 11th, 2006, 08:02 PM
When I run the command fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin, the DEB package is not created. I tried ls as well and it is not listed. Therefore, the next command cannot find the DEB package to install. Here is the fakeroot command result:
--------------------------------------------------------------
dave@linux:~$ fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
Creating temporary directory: /tmp/make-jpkg.XXXXwdqOKL
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk.sh
sh: gcc: command not found
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation)
sh: gcc: command not found
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation)
sh: gcc: command not found
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation)
sh: gcc: command not found
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation)
sh: gcc: command not found
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation)
sh: gcc: command not found
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation)
No matching plugin was found.
Removing temporary directory: done
--------------------------------------------------------------
Please help if any of you can!
Dave
BobSongs
May 12th, 2006, 10:19 PM
Please help if any of you can!
Dave
sudo apt-get install gcc
That's it.
t_ras
November 15th, 2006, 10:10 AM
I don't know if it was posted in this thread but (after looking almost alll of it) without understanding why I get "No matching plugin was found java" even when trying $DEB_BUILD_GNU_TYPE = linux-x86_64 (or something like it)
I looked at /usr/share/java-package/sun-j2sdk.sh
and I noticed I should be downloading jdk-1_5_0-linux-amd64.bin which seems to be different from x64_86.
After d/l the AMD64 package (from same downloading page) it work fine.
So if you are using AMD64 try it.
Hoped I'm helping...:)
Jebus Christ
November 8th, 2007, 09:08 AM
Hrrmmm i'm getting this:
mike@mike-desktop:~/Desktop$ fakeroot make-jpkg jre-1_5_0_13-linux-i586.bin
The program 'fakeroot' is currently not installed. You can install it by typing:
sudo apt-get install fakeroot
bash: fakeroot: command not found
what exactly is this fakeroot thing exactly?
gerananda
May 2nd, 2008, 01:46 PM
Creating temporary directory: /tmp/make-jpkg.XXXXiGwUre
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk-doc.sh sun-j2sdk.sh
No matching plugin was found.
Removing temporary directory: done
What to do when you get this message after fakeroot? Running Breezy.
Hi there,
I am getting exactly the same message ("... no matching plugin was found") after installing Java's JRE and running the fakeroot make-jpkg yada yada. What I find curious is that previously I installed the jre and even the browsers recognize the plugins have been installed. Any thoughts..?=
gerananda
May 2nd, 2008, 01:50 PM
Hrrmmm i'm getting this:
mike@mike-desktop:~/Desktop$ fakeroot make-jpkg jre-1_5_0_13-linux-i586.bin
The program 'fakeroot' is currently not installed. You can install it by typing:
sudo apt-get install fakeroot
bash: fakeroot: command not found
what exactly is this fakeroot thing exactly?
sup!
this fakeroot is kinda a sudo, it seems this make-jpkg can do some serious damage in your computer if run as root, so the work around to discourage you from running it as root is that you must run it as a regular user using fakeroot. that's "all" I know..
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.