1) java -cp (what does this do on the whole command, i dont know which part does it copy where?)
2) $JBOSS_HOME/bin/client/jboss-client.jar:. (the path till client.jar is fine, but what does :. indicate)
3) test.Client (its my ejb client, no issues here)
4) ejb:/client-ejb//ClientBean\!test.ClientIF (jndi lookup name, no issues here also)
I want to know what will this whole command do when executed?
It gives me a noclassdeffound error but i cant understand what is its aim? what does it tell the jvm to do?
all help wud be hugely appreciated.
java tells the command line to execute java.exe, of course.
-cp is an option that you feed to java.exe. It tells the JVM that you want to use a custom classpath, specified by the next command line argument.
$JBOSS_HOME/bin/client/jboss-client.jar:. is the argument that goes with the -cp option. It should consist of a series of file paths, separated by colons. So you're telling the JVM that you want
$JBOSS_HOME/bin/client/jboss-client.jar to be on the classpath, and that you want . (the current working directory) to be on the classpath.
test.Client is the name of the class the JVM should execute.
Everything after that will be command line arguments that are fed to test.Client's main method.
In order for this
-cp $JBOSS_HOME/bin/client/jboss-client.jar:. test.Client
to work the class Client of the package test should either be located as ./test/Client.class or as test/Client.class inside the cited jboss-client.jar.
It is pretty much elementary Java classpath stuff.
Maybe you have only the sources in the above directory without having translated them.