OpenJDK 7 Install
Hi all,
So I tried to compile OpenJDK 7 with the following: Code:
LANG=C make Code:
ERROR: Your JAVA_HOME environment variable is set. This will Code:
Error: JAVA_HOME is not defined correctly. Regards, Jack |
This is the only person who has ever claimed to have succeeded in building OpenJDK on Slackware:
http://martinusadyh.web.id/2011/05/2...-on-slackware/ |
Quote:
Thanks, Jack. |
I've nearly finished a SlackBuild for OpenJDK, and I don't want to put you off, but you're in for a few more challenges.
The primary documentation is here: http://hg.openjdk.java.net/jdk7/buil...ME-builds.html You may also benefit from reading this: http://translate.googleusercontent.c...YFwrj8YIQRNyzQ [note that the translation process garbles the actual commands and output, so refer also to the original web page] Your proximate problem is caused by not setting ALT_BOOTDIR. If you want solutions for your next three problems [1][2][3], try this: Code:
unset JAVA_HOME http://download.java.net/glassfish/c...2011_05_27.zip and https://java.net/downloads/jax-ws/JD...2010_08_19.zip [1] The build doesn't parallelize properly, see http://mail.openjdk.java.net/piperma...er/016062.html [2] When README-builds.html says "NOTE: The Complete OpenJDK Source Bundles will contain the JAXP and JAX-WS sources", it's lying [3] If you're running kernel 3.0 or 3.1, the build fails -- towards the end -- with "This OS is not supported" |
I have packages for OpenJDK (a jdk and a jre package) which I created for Slackware-current. It took a while because I wanted OpenJDK to compile against the GCC java compiler after removing all traces of the Oracle java packages.
That "bootstrapping" of OpenJDK is quite complicated and it also required that I modified Slackware's gcc and seamonkey packages. The reason for wanting to bootstrap the compilation is that I want to see if I can get OpenJDK built for ARMedslack. That does not yet have a JRE or JDK package at all (apart from "gcc-java"). I hope (once I re-built them from scratch to test the script and added a browser plugin for Java) that Pat Volkerding will accept all of this so that we can have a free JDK in Slackware (Oracle no longer allows for the new releases of their JDK and JRE to be bundled with distros). Also, I have not even tried the packages to see if they actually work :-) I literally just finished compiling them. Today's post reminded me that I had a failed attempt at building OpenJDK sitting on my computer (I promised Pat early november that I would come up with a package to replace the Oracle stuff). And today I saw the flaw in my SlackBuild which prevented me from bootstrapping it against gnu java. Eric |
Great news Eric -- I'll use tomorrow for something else then :D
OpenJDK built for ARMedslack would be truly awesome, at least one model railway could use that straight away ;-) |
I can confirm that the OpenJDK package works on my Slackware-current laptop - including the separate browser plugin package (icedtea-web) which I also created.
I have uploaded the sources and scripts to Pat Volkerding's server so he can have a look at the required changes to gcc and seamonkey. Let's hope we'll see movement in slackware-current soon. Eric |
Quote:
Is there room for a third-party developed SlackBuild (SBo, for instance) that simply downloads the official Oracle binaries and converts them into a Slackware package? Will the OpenJDK be full compliant with the official Oracle java binaries? I ask this because I've happened to use OpenJDK browser plugin on an Ubuntu distribution some months ago, and some specific applet did not work correctly until I removed the OpenJDK packages and installed the official ones. |
Quote:
If you want to have Sun JDK 7 *now*, btw, you can use Pat's Sun JDK6 SlackBuild to build it. |
Quote:
If not it is possible to make it public? Thanks for your effort :) |
Quote:
Otherwise, if Pat does not show signs of activity, I will make all of that stuff public and create 32bit packages as well. Eric |
Quote:
Is there any advantage or disadvantage on using OpenJDK instead of JDK? |
Quote:
The good thing is that this choice exists of course. I presume that Slackware will be shipping OpenJDK/JRE packages in future and http://slackbuilds.org/ would be a good place to provide a version of Slackware's current jdk.SlackBuild script which simply re-packages the Oracle binaries. It is absolutely allowed to download the Oracle binaries for private use. Oracle's binary license just no longer allows 3rd parties to re-distribute those. A shame, and illustrative of Oracle's view of the Open Source community and Free Software, but that's how it is. Eric |
Quote:
|
Quote:
|
Quote:
Is it possible to build new packages with the new version? |
1 Attachment(s)
Hi, sorry to open this topic again.
I have installed alien bob openJDK packages. Until now it work very well, I mostly develop command line programs. But when I run a graphical program, the graphic is broken as show in the image. Is it a problem of the openJDK or mine? |
Quote:
1. josm (Open Street Map editor) 2. psm (PlayStation Media Server) Neither of those 2 applications show any issues with their displays, so if you want to test one of them out on your system and see if you have problems with them or not, to rule out your system setup. |
I run several GUI applications which are programmed in Java, using web start or the browser plugin, and never had issues. It looks like yours is a local issue.
Eric |
I have AlienBob's openJDK on several boxes and it works perfect so far.
One program I run gives an error about it not being tested on openJDK but it still runs perfect. |
All times are GMT -5. The time now is 07:23 AM. |