users@glassfish.java.net

Re: Can't install GlassFish v2 UR1 on Windows

From: Dies Koper <dies_at_jp.fujitsu.com>
Date: Mon, 07 Jan 2008 09:56:54 +0900

Try:
java -Xmx500m -jar glassfish-installer-v2ur1-b09d-windows.jar

glassfish_at_javadesktop.org wrote:
> I am using Java 6 and this is what happens when I try to run the v2 UR1 installer on Windows Vista and Server 2003:
>
> D:\Downloads>java -jar glassfish-installer-v2ur1-b09d-windows.jar
> Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
> at sun.misc.Resource.getBytes(Resource.java:93)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:256)
> at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:289)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>
> and if I just double click on the JAR file it complains that it can't find the main class.
>
> I have tried re-downloading the file twice with the same result.
>
> Any ideas?