This discussion is archived
2 Replies Latest reply: Dec 6, 2012 1:32 AM by 859967 RSS

run appclient

859967 Newbie
Currently Being Moderated

I am trying to run a simpple javaee app client (only printing Helloworld) using command line tool, but i always have class not found exception:
java.lang.ClassNotFoundException: testme.jar
        at Method)
        at java.lang.ClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(
        at org.glassfish.appclient.client.AppClientFacade.createContainerForClas
        at org.glassfish.appclient.client.AppClientFacade.createContainer(AppCli
        at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFa
        at org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.prem
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(
        at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Instrumenta
        at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Instrument
It is sort of classpath missing, but what went wrong with the default setting of glassfish after installation?

ah yeah, the command line to run is:
appclient testme.jar

Edited by: CardM on Dec 5, 2012 11:53 PM
  • 1. Re: run appclient
    gimbal2 Guru
    Currently Being Moderated
    appclient, whatever that is, seems to expect a fully qualified classname, not a jar. A jar you generally invoke through java -jar jarname.jar.

    Perhaps you should read whatever documentation of whatever product you're using to know the exact parameters. When you have a real programming related question, feel free to ask it.
  • 2. Re: run appclient
    859967 Newbie
    Currently Being Moderated
    sorry,, i google around and mis-copied the statement. It works now after a while.



  • Correct Answers - 10 points
  • Helpful Answers - 5 points