This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Problems installing 2.7.3 on Windows x64

2 replies
Matt Harrington
Joined: 2009-01-14,
User offline. Last seen 42 years 45 weeks ago.

The IzPack installer doesn't appear to include a proper DLL for
uninstalling Scala on Windows x64. Details from IzPack are below.
I'm too new to Windows to know if there's an easy workaround. Any
ideas?

ERROR You have not installed the DLL named 'ICE_JNIRegistry.DLL'.
C:\Program Files\Scala\Uninstaller\ICE_JNIRegistry.dll: Can't load IA
32-bit .dll on a AMD 64-bit platform
Exception in thread "main" java.lang.UnsatisfiedLinkError:
com.ice.jni.registry.RegistryKey.openSubKey(Ljava/lang/String;I)Lcom/ice/jni/registry/RegistryKey;
at com.ice.jni.registry.RegistryKey.openSubKey(Native Method)
at com.ice.jni.registry.Registry.openSubkey(Registry.java:214)
at Main.updateRegistry(Main.java:27)
at Main.main(Main.java:124)

Matt

Antonio Cunei 2
Joined: 2008-12-20,
User offline. Last seen 42 years 45 weeks ago.
Re: Problems installing 2.7.3 on Windows x64

Hello Matt,

Thanks for letting us know about this problem. Windows x64 is not very
widely in use, so we have not received similar reports before.

In order to manually remove Scala, you can just delete the Scala directory
(in your case, C:\Program Files\Scala). That removes the main files added
by the installer.

You can then delete the menu item (if you chose to install that at
installation time): from the start menu, hover onto the "Scala 2.7.x" menu
item, right click, and select "delete" from the menu. A confirmation
message "Are you sure you want to delete Scala 2.7.x etc." should appear.
Select "Yes".

The two steps above will remove the installed files. A few environment
variables are also added by the installer; you can safely ignore them, as
they will have no effect. If you want to get rid of that as well, you can
follow these steps: please do not attempt this if you are unsure, as an
unskilled editing might affect the operation of your machine. To remove the
added variables, open the "System" control panel, click on the "Advanced"
tab, and then on "Environment Variables". You will see in the upper panel
(User Variables) the variables "SCALA_HOME" and "PATH". SCALA_HOME can be
deleted. The text ";%SCALA_HOME%\bin" can be removed from PATH; if PATH
only contains "%SCALA_HOME\bin", the user variable can be deleted altogether.

By following these steps you should be able to remove all traces of the
installed files.

We will look into upgrading IzPack, to add the missing Win64 functionality.
Thank you for letting us know about this problem.
Toni

Matt Harrington wrote:
> The IzPack installer doesn't appear to include a proper DLL for
> uninstalling Scala on Windows x64. Details from IzPack are below.
> I'm too new to Windows to know if there's an easy workaround. Any
> ideas?
>
> ERROR You have not installed the DLL named 'ICE_JNIRegistry.DLL'.
> C:\Program Files\Scala\Uninstaller\ICE_JNIRegistry.dll: Can't load IA
> 32-bit .dll on a AMD 64-bit platform
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> com.ice.jni.registry.RegistryKey.openSubKey(Ljava/lang/String;I)Lcom/ice/jni/registry/RegistryKey;
> at com.ice.jni.registry.RegistryKey.openSubKey(Native Method)
> at com.ice.jni.registry.Registry.openSubkey(Registry.java:214)
> at Main.updateRegistry(Main.java:27)
> at Main.main(Main.java:124)
>
> Matt
>

Matt Harrington
Joined: 2009-01-14,
User offline. Last seen 42 years 45 weeks ago.
Re: Problems installing 2.7.3 on Windows x64

Thanks for the uninstallation instructions. When I mentioned the DLL,
I was wondering if there might be a trick to getting 32-bit DLLs to
run on x64. For example, you can right-click on an executable and
then look in "Properties --> Compatibility" for options concerning
older versions of Windows. I thought there might be a slim chance of
something similar for DLLs, and in the reverse order (older --> newer
OS versions). However, those instructions are fine.

Thanks,
Matt

On Wed, Jan 14, 2009 at 2:46 AM, Antonio Cunei wrote:
> Hello Matt,
>
> Thanks for letting us know about this problem. Windows x64 is not very
> widely in use, so we have not received similar reports before.
>
> In order to manually remove Scala, you can just delete the Scala directory
> (in your case, C:\Program Files\Scala). That removes the main files added by
> the installer.
>
> You can then delete the menu item (if you chose to install that at
> installation time): from the start menu, hover onto the "Scala 2.7.x" menu
> item, right click, and select "delete" from the menu. A confirmation message
> "Are you sure you want to delete Scala 2.7.x etc." should appear. Select
> "Yes".
>
> The two steps above will remove the installed files. A few environment
> variables are also added by the installer; you can safely ignore them, as
> they will have no effect. If you want to get rid of that as well, you can
> follow these steps: please do not attempt this if you are unsure, as an
> unskilled editing might affect the operation of your machine. To remove the
> added variables, open the "System" control panel, click on the "Advanced"
> tab, and then on "Environment Variables". You will see in the upper panel
> (User Variables) the variables "SCALA_HOME" and "PATH". SCALA_HOME can be
> deleted. The text ";%SCALA_HOME%\bin" can be removed from PATH; if PATH only
> contains "%SCALA_HOME\bin", the user variable can be deleted altogether.
>
> By following these steps you should be able to remove all traces of the
> installed files.
>
>
> We will look into upgrading IzPack, to add the missing Win64 functionality.
> Thank you for letting us know about this problem.
> Toni
>
>
> Matt Harrington wrote:
>>
>> The IzPack installer doesn't appear to include a proper DLL for
>> uninstalling Scala on Windows x64. Details from IzPack are below.
>> I'm too new to Windows to know if there's an easy workaround. Any
>> ideas?
>>
>> ERROR You have not installed the DLL named 'ICE_JNIRegistry.DLL'.
>> C:\Program Files\Scala\Uninstaller\ICE_JNIRegistry.dll: Can't load
>> IA
>> 32-bit .dll on a AMD 64-bit platform
>> Exception in thread "main" java.lang.UnsatisfiedLinkError:
>>
>> com.ice.jni.registry.RegistryKey.openSubKey(Ljava/lang/String;I)Lcom/ice/jni/registry/RegistryKey;
>> at com.ice.jni.registry.RegistryKey.openSubKey(Native Method)
>> at com.ice.jni.registry.Registry.openSubkey(Registry.java:214)
>> at Main.updateRegistry(Main.java:27)
>> at Main.main(Main.java:124)
>>
>> Matt
>>
>
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland