Issue Details (XML | Word | Printable)

Key: GLASSFISH-17861
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Snjezana Sevo-Zenzerovic
Reporter: Rebecca Parks
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

Installer doesn't set environment variables correctly on Windows

Created: 30/Nov/11 11:59 PM   Updated: 08/Dec/11 11:25 PM  Due: 13/Dec/11   Resolved: 08/Dec/11 11:25 PM
Component/s: installation
Affects Version/s: 3.1.1_b12
Fix Version/s: 3.1.2_b14

Time Tracking:
Not Specified



Tags: 3_1_2-approved
Participants: Rebecca Parks, scatari and Snjezana Sevo-Zenzerovic

 Description  « Hide

I install the open source product, open a command prompt window, cd to the c:\glassfish3\glassfish\bin directory, type asadmin start-domain, and get the following error message:

The system cannot find the path specified.

The same thing happens if I try executing from c:\glassfish3\bin.

I literally cannot even get started. This does not happen on a SunRay.

I've been advised to set AS_JAVA to C:\Program Files\Java\jre6 and to add C:\Program Files\Java\jdk1.6.0_25\bin to the PATH. Neither works. But I shouldn't HAVE to set anything.

scatari added a comment - 01/Dec/11 12:50 AM

How was this installed? Through a executable installer OR an exploded zip file?

Rebecca Parks added a comment - 01/Dec/11 05:40 PM

I downloaded the latest-glassfish-windows.exe file, then used the Windows "Run" feature to execute it.

scatari added a comment - 08/Dec/11 11:00 PM

The machine does not have a JDK installed and the JRE was used for installer. Custom option does provide a way to choose custom jdk path.

scatari added a comment - 08/Dec/11 11:01 PM

Reducing the priority as the installation clearly shows the errors during domain creation because of lack of JDK and the domain can be created after the installation manually.

Rebecca Parks added a comment - 08/Dec/11 11:10 PM

I don't think the installation "clearly shows the errors." It does NOT give explicit instructions for a workaround. It does NOT tell the user to set AS_JAVA in the asenv.conf file to C:\Program Files\Java\jre6 and whatever else one must do to get a working server.

But the installation shouldn't have to give workaround instructions. It should search for a JDK or JRE and set variables accordingly if it finds one. If it doesn't find one, it should point to the JRE that it installs.

scatari added a comment - 08/Dec/11 11:25 PM