Skip to content

DVN Install Demo on Windows 7

Richard Dunks edited this page Oct 9, 2013 · 1 revision

My first installation of dvn-install-demo on a Mac running OS 10.8 went so amazingly well, I knew I was in for trouble at some point. Karma that good just doesn't stick with you when it comes to computers. Sure enough, when I went to install on a Windows 7 machine, I ran into trouble:

Checking your Glassfish installation...
Invalid Glassfish directory /usr/local/glassfish3!
Enter the root directory of your Glassfish installation:
(Or ctrl-C to exit the installer):

Entering /root/glassfish3 didn't help (as was suggested on this email thread).

The issue was that for some unknown reason, Glassfish decided it wasn't going to install. After trying vagrant destroy and vagrant up as suggested by @pdurbin, I installed Glassfish manually in the following easy steps:

(1) After typing vagrant ssh and sudo su - in the instructions, I ran sh glassfish-install.sh. This downloaded glassfish-3.1.2.2-unix.sh, then fails with the error:

 : command not foundh: line 3:
 This program requires DISPLAY environment variable to be set.
 Please re-run after assigning an appropriate value to DISPLAY.

(2) I then ran sh glassfish-3.1.2.2-unix.sh -a /root/glassfish-answerfile -s. This is basically rerunning the Unix-specific Glassfish install shell file but along with the answer file that passes the necessary paths to the installer. It's possible that running sh glassfish-install.sh -a /root/glassfish-answerfile -s will do the same thing. On my next installation, I'll try that and update the wiki.

(3) I then continued with the instructions by typing jar xvf dvninstall_v3_5_1.zip. I then had Glassfish in the proper directory (/usr/local/glassfish3) and all was right with the world again.

I don't know what makes this happen but it's really only a bump in an otherwise completely painless installation process.

There were other issues some people had around this same problem (discussed in the email thread mentioned above) that I didn't encounter. I used the installer for DVN 3.5.1 from commit c9346cbcdbb9b3e8584fe2cf2556a8555d315b3c on a Windows 7 SP1 machine running Git for Windows and Vagrant 1.3.4.

I hope this is helpful for those who find themselves in the same situation and thanks to Philip Durbin for a really great installation experience.