Red Hat Bugzilla – Bug 1023314
Problems with entering JDK path for quickstarts on MAC OS
Last modified: 2014-09-03 00:57:24 EDT
Description of problem:
I run into few problems during installation of quickstarts on MAC OS. Running GUI installation, I am able to enter any (even folder without JDK which is also wrong) folder as valid JDK target, on the other hand, running -console installation, I am unable to enter any JDK path. Also, for GUI installation default JDK path points to /Applications/EAP-6.2.0. In -console installation the path is empty.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run -console installer
2. Choose to install quickstarts
3. Try to enter valid JDK path
"Path $PATH is not valid" message is shown.
User is able to enter valid JDK path.
Is there any use for JDK path selected by user? If not, I would consider removing this screen and move the message with JDK requirements to previous (Quickstarts screen).
This is almost certainly a bug in IzPack, in the code that is locating the JDK.
The only use for this panel is to ensure that the user has a JDK available (one cannot build quickstarts without one.)
I am not against removing the panel moving forward.
It is an IzPack issue, but a complicated one:
The JDK validation code searches for a lib/tools.jar file in the user provided JDK path. However, mac os x uses their own JDK which specifically does *not* contain a tools.jar (see second bullet point in link):
The GUI version of izpack specifically ignores the tools.jar check if we you are on OSX, which is why you can enter pretty much any dir even if no JDK is present in it. However, the console does not ignore this check and since tools.jar is not present, -console should not detect any path as 'valid'.
For now I have removed the 'tools.jar' check from the -console installer in the case of mac OSX so that the user can continue console installation when they select quickstarts. But I agree that removing this screen entirely might be better in the long run.
I believe, we can remove this panel as I've seen similar issues also on some of Solaris hosts. I'll create new BZ request for this.
Verified on EAP 6.2.0.ER7 installer.