TenKeyAngle / dataturbine

Automatically exported from code.google.com/p/dataturbine
1 stars 0 forks source link

Installing RBNB into the default directory on a Vista 64-bit platform doesn't work #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Installing RBNB (by executing "java -jar RBNB-VX.XX-install.jar") into the
default directory ("C:\Program files\RBNB\VX.XX") doesn't work under Vista
64-bit.

What is the expected output? What do you see instead?
The desired output, of course, is to have RBNB installed in the specified
directory.  Instead, the installer fails.  Different errors are thrown,
depending on whether the install.jar is run using a 32-bit or 64-bit
version of Java:

Using Java 32-bit and installing to C:\Program Files\RBNB\VX.XX:
Received the following access denied exception:

java.io.FileNotFoundException: C:\Program
files\RBNB\Dev\apache-tomcat-5.5.12\bin\catalina.bat (Access is denied)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at com.izforge.izpack.installer.Unpacker.run(Unknown Source)

Using Java 64-bit and installing to C:\Program Files\RBNB\VX.XX:
Get 2 errors:

1. Right after starting install.jar, we received the following error:

could not create shortcut instance
java.lang.Exception: error loading library
java.lang.UnsatisfiedLinkError:
C:\Users\johnw\AppData\Local\Temp\ShellLink2.dll: Can't load IA 32-bit .dll
on a AMD 64-bit platform
        at com.izforge.izpack.util.Librarian.loadLibrary(Unknown Source)
        at com.izforge.izpack.util.os.ShellLink.initialize(Unknown Source)
        at com.izforge.izpack.util.os.ShellLink.<init>(Unknown Source)
        at com.izforge.izpack.util.os.Win_Shortcut.initialize(Unknown Source)
        at com.izforge.izpack.panels.ShortcutPanel.<init>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI
mpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorA
ccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.izforge.izpack.installer.InstallerFrame.loadPanels(Unknown
Source)
        at com.izforge.izpack.installer.InstallerFrame.<init>(Unknown Source)
        at com.izforge.izpack.installer.GUIInstaller.loadGUI(Unknown Source)
        at com.izforge.izpack.installer.GUIInstaller.<init>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI
mpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorA
ccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at com.izforge.izpack.installer.Installer.main(Unknown Source)

2. Ignoring the above error and proceeding to install, the following error
is displayed in a dialog box after after the step of specifying the install
directory:

Could not create directory, "C:\Program files\RBNB\VX.XX"

Original issue reported on code.google.com by john.wil...@erigo.com on 5 Sep 2008 at 2:06

GoogleCodeExporter commented 9 years ago
RBNB uses the IzPack cross-platform installation program.  The following 
posting on
an IzPack forum provides related discussion:

http://izpack.markmail.org/message/edjalm7ejbmt5bn4?q=vista+64

Some additional information on compiling, installing, and running RBNB under 
Vista
64-bit:

1. I was able to install the following applications under Vista 64-bit: Java 
(32 and
64 bit versions), Cygwin, TortoiseSVN, Eclipse (64-bit, Ganymede), JMF (probably
compiled using 32-bit Java - don't know if that makes a difference), Ant, jEdit.

2. Was able to compile RBNB using the Ant build system (Ant used the 64-bit 
Java to
compile).

3. Took the install.jar that was compiled under Vista 64-bit and installed and 
tested
it on Windows XP 32-bit; everything worked fine.

4. No problems executing an RBNB server under Vista 64-bit that had been 
compiled
under Windows XP 32-bit.

5. Set up RBNB project in Eclipse; was able to run RBNB server under the 
debugger -
works fine.

A couple additional notes on installing RBNB under Vista 64-bit:

1. Ran install.jar using Java 64-bit; install to a user directory 
(C:\Users\<user>).
 Of course, I still got the same error noted in the original Issue description above
("java.lang.UnsatisfiedLinkError") when install.jar first launched.  Proceeded 
to
attempt the installation.  The installer finished copying files to the 
installation
directory.  At the next step, "Select a Program Group for the Shortcuts", the
installer threw an exception in the console window.  The WebTurbine shortcut 
was not
created.  Aside from this, the installation seems complete and RBNB and 
WebTurbine
can execute fine.

2. Ran install.jar using Java 32-bit and installed to a user directory
(C:\Users\<user>); this installation worked without any problems.

A few notes from brief investigation of installing applications under Vista 
64-bit:

1. The "Program Files" directory is intended for 64-bit applications and the 
"Program
Files (x86)" directory is intended for 32-bit applications.

2. Installing applications is under the control of Vista’s User Account 
Control (UAC)
system (see http://technet.microsoft.com/en-us/windows/aa906022.aspx and
http://technet.microsoft.com/en-us/magazine/cc138019.aspx, for example).  UAC 
is a
security mechanism which allows most user actions to be conducted as a normal 
user,
but (with acknowledgment from the user and as long as the user’s account 
includes the
appropriate permissions) Vista can elevate the user’s permissions level for 
certain
actions (for example, installing an application).

3. It appears that user data should not be written to the application’s 
folder in
either "Program Files" directory.

4. When I tried to install to the "Program Files" directory, the actual 
location of
the files are in the "Virtual Store" directory, located at
"C:\Users\<user>\AppData\Local\VirtualStore\Program Files".  Here is an 
interesting
experiment with the virtual store folder on the Vista system after I attempted 
to
install RBNB in the "Program Files" directory:

    - Bring up a command prompt window
    - cd C:\Program Files
    - Do a directory listing; no RBNB folder is shown
    - Bring up Task Manager; in the "Processes" tab, right-click on the "cmd.exe"
process and turn on "Virtualization"
    - Go back to the command prompt window and do another directory listing of
C:\Program Files; now the RBNB folder shows up!

If we desire the default installation location for RBNB to continue to be in the
"Program Files" directory, further investigation into Vista UAC and the Virtual 
Store
should be conducted.

Original comment by john.wil...@erigo.com on 5 Sep 2008 at 2:25

GoogleCodeExporter commented 9 years ago
I encountered this problem when I was contacted by a graduate student at Purdue 
who couldn't install RBNB properly in Windows 7 using the 'java -jar' syntax.  
I provided her with an executable I built using the izpack2exe wrapper and she 
was able to install.

-drew

Original comment by djdaughe...@gmail.com on 20 Oct 2011 at 3:27

GoogleCodeExporter commented 9 years ago
The latest DataTurbine release, V3.2B6, includes a change to properly install 
under 64-bit operating systems (from the release notes, "Update build system to 
use IzPack 4.3.4 (previously used IzPack 3.5.4), for install on 64-bit 
Windows").

I checked this on a 64-bit Vista machine (Windows Vista Ultimate, SP2).  Did 
the following:

1. Downloaded RBNB-V3.2B6-install.jar from http://code.google.com/p/dataturbine/

2. Brought up a DOS command window

3. Checked Java version:
        "java -version" returned:
        java version "1.6.0_07"
        Java(TM) SE Runtime Environment (build 1.6.0_07-b06) Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)

4. Ran "java -jar RBNB-V3.2B6-install.jar" and installed into the default 
directory (which is C:/Program Files/RBNB/V3.2B6)

5. Verified installation by running DT server, rbnbAdmin, rbnbSource.

Original comment by john.wil...@erigo.com on 21 Oct 2011 at 1:20