users@glassfish.java.net

Re: error when running asadmin.bat

From: Jane Young <Jane.Young_at_Sun.COM>
Date: Tue, 05 Jan 2010 15:57:00 -0800

Is there an admin-cli.jar file in c:\Sun\AppServer\lib directory?
If not, then the installation is incomplete.


glassfish_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>