Closed Bug 315917 Opened 20 years ago Closed 20 years ago

Configure the three XULRunner tinderboxes with JDK

Categories

(Webtools Graveyard :: Tinderbox, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: benjamin, Assigned: preed)

Details

(Keywords: fixed1.8.0.1, fixed1.8.1)

Attachments

(1 file)

Two XULRunner tinderboxen need the JDK installed/configured: Linux argo WINNT solaria After the JDK is installed, it may also be necessary to set JDK_HOME in the global environment. Mac columbia is probably already fine (it seems that JDK comes with MacOS X).
(In reply to comment #0) > After the JDK is installed, it may also be necessary to set JDK_HOME in the > global environment. The correct environment variable name is JAVA_HOME.
Argo has the 1.5.0.06 JDK installed: [cltbld@argo cltbld]$ java -version java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode) [cltbld@argo cltbld]$ which javac /usr/java/jdk1.5.0_06/bin/javac [cltbld@argo cltbld]$ export | grep JAVA declare -x JAVA_HOME="/usr/java/jdk1.5.0_06" md5sum for the installation package used is: 3188bedc75d4500f599558427b95156c jdk-1_5_0_06-linux-i586-rpm.bin I'm working on Windows, but I might have to take the Solaria tinderboxen down to install it; still investigating. Coop: if you don't mind, I'm gonna reassign this to me, since I'm working on it.
Assignee: ccooper → preed
Solaria now has the 1.5.0.06 JDK installed too; interestingly enough, there isn't a JAVA_HOME variable defined in the Windows environment, nor in the Cygwin environment, but running "java -version" in the cltbld cygwin window gives the 1.5.0.06 installation. Installed package was: d684c84a746da6139170437d4dc638cc jdk-1_5_0_06-windows-i586-p.exe
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
(In reply to comment #3) > interestingly enough, there isn't a JAVA_HOME variable defined For the purposes of Javaconnect, you can either define the Java location using the JAVA_HOME environment variable, or using the "--with-java-include-path" and "--with-java-bin-path" configure switches.
Comment #4 is correct, we need either JAVA_HOME or mozconfig flags on argo/solaria.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
FWIW, I'd prefer the environment variable, so that when we land this on the branch we don't have to configure the mozconfig of those builds separately.
Alright: Argo had the environment stuff all along (it's in /etc/profile.d/java.*; I just whipped those little env scripts up), but cltbld had to logged out/in to pick up the change. Looks like argo's tinderbox should be happy. As for Solaria, I added JAVA_HOME to the global environment via the System Control Panel; an export in cygwin shows the environment variable set, although it's in "C:\\Program Files\\etc." style, not "/cygdrive/c/Program Files/etc." style. Anyone know if this is going to confuse cygwin?
Nope, bug 272662 fixed the win-versus-cygwin paths issue.
Both argo and solaria XULrunner tinderboxen are green; resolving fixed.
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Trouble! The tinderboxes have Java SDK 1.5 installed. It turns out that compiling with JDK 1.5 does not allow the user to run using JVM 1.4.x. Many people are still using JVM 1.4.2, so we should be compiling with JDK 1.4.2. Preed, can you downgrade the JDK version please?
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
I just thought of this: would adding the "-source=1.4" option to the javac calls be a viable short- (or even long-)term workaround for this?
According to the docs, it looks like what we want. This patch sets that flags for javac. Not sure if this is the best place to put the flag.
Attachment #206203 - Flags: review?(benjamin)
Comment on attachment 206203 [details] [diff] [review] source flag patch Use += for JAVAC_FLAGS
Attachment #206203 - Flags: review?(benjamin) → review+
Patch checked in. I'll test nightlies when they are available.
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
Verified that the builds now work with JVM 1.4.2.
Status: RESOLVED → VERIFIED
Fixed on MOZILLA_1_8_BRANCH and MOZILLA_1_8_0_BRANCH.
Component: Tinderbox Configuration → Tinderbox
Product: mozilla.org → Webtools
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: