Okay, so how I generate this stand alone client?
Main Topics
Browse All TopicsHi!
I've done a small program that connect to my EJB server, It works on debugging under Netbeans but now I want to test it on a serveur that hasn't netbeans.
I've viewed that netbeans generate two jar for this container. I've deployed the one that doesn't have a -client.
After this I've try to launch the program but it appears it don't know which class he must start. But in the netbeans properties it's specified.
So my question is simple:
What is the good way to create a .jar(or the two jars) that will connect to my EJB server.
Thank you!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Okay, the lib folder has something like 75Mo of libraries.
I've try this:
"C:\Program Files\Java\jdk1.6.0_14\bin
But I always got same error:
C:\Users\J4N\Documents\My Dropbox\WorkSpaces\J2EE\Tr
\TrustBN-ejb.jar" MatchBot.java
MatchBot.java:14: package javax.ejb does not exist
import javax.ejb.EJB;
^
datamodel\Exchange.class(d
datamodel\Exchange.class(d
datamodel\Exchange.class(d
datamodel\Exchange.class(d
datamodel\Exchange.class(d
datamodel\Exchange.class(d
datamodel\Exchange.class(d
In facts the javaee was missing, now the compilation is ok, but I've always this problem:
C:\Users\J4N\Documents\My Dropbox\WorkSpaces\J2EE\Tr
C:\Users\J4N\Documents\My Dropbox\WorkSpaces\J2EE\Tr
Exception in thread "main" java.lang.NoClassDefFoundE
Caused by: java.lang.ClassNotFoundExc
at java.net.URLClassLoader$1.
at java.security.AccessContro
at java.net.URLClassLoader.fi
at java.lang.ClassLoader.load
at sun.misc.Launcher$AppClass
at java.lang.ClassLoader.load
at java.lang.ClassLoader.load
Could not find the main class: MatchBot. Program will exit.
but I've a main in my class:
public static void main(String[] args) throws NamingException {
new MatchBot().start();
System.out.println("Job successfully finished");
}
Business Accounts
Answer for Membership
by: a_bPosted on 2009-07-17 at 20:59:33ID: 24884735
I am not to sure if you need to deploy the second jar at all. When you deploy the jar containing the the beans all you need is a stand alone client to do the lookup of that bean and that functions independently. So I am not sure why you need the second jar.