users@glassfish.java.net

error when running asadmin.bat

From: <glassfish_at_javadesktop.org>
Date: Tue, 05 Jan 2010 11:05:49 PST

I am trying to run the asadmin.bat file which came with my glassfish install and I get an error when running it. I'm running the file from command line. These are the errors I get when I run the file:

[i]C:\Sun\AppServer\bin>asadmin
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/enterprise/cli/framework/CLIMain
Caused by: java.lang.ClassNotFoundException: com.sun.enterprise.cli.framework.CLIMain
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
Could not find the main class: com.sun.enterprise.cli.framework.CLIMain. Program will exit.[/i]
 
Any ideas to what this could be? Any help will be appreciated.

Thanks
[Message sent by forum member 'heroshiro' (heroshiro_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=378873