[JBoss JIRA] (JBIDE-24952) windows slaves define JDK 5 - 8 variables but do not have those JDKs installed
by Pavol Srna (JIRA)
[ https://issues.jboss.org/browse/JBIDE-24952?page=com.atlassian.jira.plugi... ]
Pavol Srna reassigned JBIDE-24952:
----------------------------------
Assignee: Nick Boldt (was: Pavol Srna)
> windows slaves define JDK 5 - 8 variables but do not have those JDKs installed
> ------------------------------------------------------------------------------
>
> Key: JBIDE-24952
> URL: https://issues.jboss.org/browse/JBIDE-24952
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: build, qa
> Affects Versions: 4.5.1.AM1
> Reporter: Nick Boldt
> Assignee: Nick Boldt
> Fix For: 4.5.x
>
> Attachments: ls_nativetools.txt, screen-global-config-redmark.png, screen-global-config.png
>
>
> I ran some experiments on a win10 slave and discovered that while these variables are defined:
> {quote}{code}
> echo "%NATIVE_TOOLS%"
> echo "%JAVA15%"
> echo "%JAVA16%"
> echo "%JAVA17%"
> echo "%JAVA18%"
> {code}
> -->
> {code}"T:\opt\windows\amd64"
> "jdk1.5.0_last"
> "jdk1.6.0_last"
> "jdk1.7.0_last"
> "jdk1.8.0_last"
> {code}{quote}
> ... not all the associated JDKs are actually installed:
> {quote}
> {code}
> FOR %%D IN ( %OPENJDK_1_8_HOME%, %OPENJDK_1_7_HOME%, %JDK1_8_HOME%, %JDK1_7_HOME%, %JDK1_6_HOME%, %JDK1_5_HOME% ) DO ( %%D\bin\java -version )
> {code}
> -->
> {code}
> C:\mnt\hudson_workspace\workspace-win10>(T:\opt\windows\amd64\openjdk-1.8.0\bin\java -version )
> openjdk version "1.8.0_131-1-redhat"
> OpenJDK Runtime Environment (build 1.8.0_131-1-redhat-b11)
> OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
> C:\mnt\hudson_workspace\workspace-win10>(T:\opt\windows\amd64\openjdk-1.7.0\bin\java -version )
> The system cannot find the path specified.
> C:\mnt\hudson_workspace\workspace-win10>(T:\opt\windows\amd64\jdk1.8.0_last\bin\java -version )
> java version "1.8.0_121"
> Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
> C:\mnt\hudson_workspace\workspace-win10>(T:\opt\windows\amd64\jdk1.7.0_last\bin\java -version )
> java version "1.7.0_79"
> Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
> Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
> C:\mnt\hudson_workspace\workspace-win10>(T:\opt\windows\amd64\jdk-1.6.0_last\bin\java -version )
> The system cannot find the path specified.
> C:\mnt\hudson_workspace\workspace-win10>(T:\opt\windows\amd64\jdk-1.5.0_last\bin\java -version )
> The system cannot find the path specified.
> {code}{quote}
> So... we should consider making sure that at least openjdk-1.7.0 is installed, if not also jdk-1.6 and jdk-1.5, too.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years
[JBoss JIRA] (JBIDE-24952) windows slaves define JDK 5 - 8 variables but do not have those JDKs installed
by Pavol Srna (JIRA)
[ https://issues.jboss.org/browse/JBIDE-24952?page=com.atlassian.jira.plugi... ]
Pavol Srna edited comment on JBIDE-24952 at 10/23/17 5:00 PM:
--------------------------------------------------------------
All jenkins JDK Installations are defined globally in the global configuration tool !screen-global-config.png|thumbnail! and point to the respective native tools folder.
*I see that jdk1.5 and jdk1.6 paths are incorrect (contain dash). !screen-global-config-redmark.png|thumbnail! Fixed!*
If something is missing on particular OS it is probably not installed in the shared /qa/tools drive. I'm not sure about the openjdk7 for windows. What was the story? Is there openjdk7 for windows? Is it the the zulu-jdk1.7.0_last version? So we probably need only a symlink (openjdk1.7.0 point to the zulu version?) [~nickboldt] *If this is the case then please file PNT ticket requesting new symlink (openjdk1.7.0) in opt/windows/amd64 folder on nfs-int.rhev-ci.eng.rdu2.redhat.com:/rhev-ci-all-tools*
This is the list of all java versions installed in /qa/tools for x86_64 windows: [^ls_nativetools.txt]
Btw. JAVA\{16,17,18\} variables for windows are defined here: https://gitlab.mw.lab.eng.bos.redhat.com/dev-platform/mwqa-cloud-slaves/b...
{code}
Declare-EnvVar "JAVA16" "jdk1.6.0_last"
Declare-EnvVar "JAVA17" "jdk1.7.0_last"
Declare-EnvVar "JAVA18" "jdk1.8.0_last"
{code}
Do we need to add JAVA19? (probably yes)
was (Author: psrna):
All jenkins JDK Installations are defined globally in the global configuration tool !screen-global-config.png|thumbnail! and point to the respective native tools folder.
*I see that jdk1.5 and jdk1.6 paths are incorrect (contain dash). !screen-global-config-redmark.png|thumbnail! Fixed!*
If something is missing on particular OS it is probably not installed in the shared /qa/tools drive. I'm not sure about the openjdk7 for windows. What was the story? Is there openjdk7 for windows? Is it the the zulu-jdk1.7.0_last version? So we probably need only a symlink (openjdk1.7.0 point to the zulu version?) *If this is the case then please file PNT ticket requesting new symlink (openjdk1.7.0) in opt/windows/amd64 folder on nfs-int.rhev-ci.eng.rdu2.redhat.com:/rhev-ci-all-tools*
This is the list of all java versions installed in /qa/tools for x86_64 windows: [^ls_nativetools.txt]
Btw. JAVA\{16,17,18\} variables for windows are defined here: https://gitlab.mw.lab.eng.bos.redhat.com/dev-platform/mwqa-cloud-slaves/b...
{code}
Declare-EnvVar "JAVA16" "jdk1.6.0_last"
Declare-EnvVar "JAVA17" "jdk1.7.0_last"
Declare-EnvVar "JAVA18" "jdk1.8.0_last"
{code}
Do we need to add JAVA19? (probably yes)
> windows slaves define JDK 5 - 8 variables but do not have those JDKs installed
> ------------------------------------------------------------------------------
>
> Key: JBIDE-24952
> URL: https://issues.jboss.org/browse/JBIDE-24952
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: build, qa
> Affects Versions: 4.5.1.AM1
> Reporter: Nick Boldt
> Assignee: Nick Boldt
> Fix For: 4.5.x
>
> Attachments: ls_nativetools.txt, screen-global-config-redmark.png, screen-global-config.png
>
>
> I ran some experiments on a win10 slave and discovered that while these variables are defined:
> {quote}{code}
> echo "%NATIVE_TOOLS%"
> echo "%JAVA15%"
> echo "%JAVA16%"
> echo "%JAVA17%"
> echo "%JAVA18%"
> {code}
> -->
> {code}"T:\opt\windows\amd64"
> "jdk1.5.0_last"
> "jdk1.6.0_last"
> "jdk1.7.0_last"
> "jdk1.8.0_last"
> {code}{quote}
> ... not all the associated JDKs are actually installed:
> {quote}
> {code}
> FOR %%D IN ( %OPENJDK_1_8_HOME%, %OPENJDK_1_7_HOME%, %JDK1_8_HOME%, %JDK1_7_HOME%, %JDK1_6_HOME%, %JDK1_5_HOME% ) DO ( %%D\bin\java -version )
> {code}
> -->
> {code}
> C:\mnt\hudson_workspace\workspace-win10>(T:\opt\windows\amd64\openjdk-1.8.0\bin\java -version )
> openjdk version "1.8.0_131-1-redhat"
> OpenJDK Runtime Environment (build 1.8.0_131-1-redhat-b11)
> OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
> C:\mnt\hudson_workspace\workspace-win10>(T:\opt\windows\amd64\openjdk-1.7.0\bin\java -version )
> The system cannot find the path specified.
> C:\mnt\hudson_workspace\workspace-win10>(T:\opt\windows\amd64\jdk1.8.0_last\bin\java -version )
> java version "1.8.0_121"
> Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
> C:\mnt\hudson_workspace\workspace-win10>(T:\opt\windows\amd64\jdk1.7.0_last\bin\java -version )
> java version "1.7.0_79"
> Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
> Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
> C:\mnt\hudson_workspace\workspace-win10>(T:\opt\windows\amd64\jdk-1.6.0_last\bin\java -version )
> The system cannot find the path specified.
> C:\mnt\hudson_workspace\workspace-win10>(T:\opt\windows\amd64\jdk-1.5.0_last\bin\java -version )
> The system cannot find the path specified.
> {code}{quote}
> So... we should consider making sure that at least openjdk-1.7.0 is installed, if not also jdk-1.6 and jdk-1.5, too.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years