File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes Problem in runnig sample code please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Problem in runnig sample code please help" Watch "Problem in runnig sample code please help" New topic

Problem in runnig sample code please help

Vivek Nidhi
Ranch Hand

Joined: Aug 10, 2003
Posts: 133
I am new to this Server. I am trying to run some examples for statefulsession bean. I have put the folder in the example folder
and tried to run the ANT with target run
I got the Exception:-
C:\example\sfsb>ant run
Buildfile: build.xml
[java] java.lang.NoClassDefFoundError: examples/sfsb/Client
[java] Exception in thread "main"
file:C:/example/sfsb/build.xml:81: Java returned: 1
SOme one please help
Vivek Nidhi
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
to run the examples:
1) open a console window
2) run the setExamplesEnv script under the examples domain
3) navigate(using the same console window you'd run the setExamplesEnv script) to the example folder you want to run i.e : %bea_home%/weblogic81/samples/server/examples/src/examples/ejb20/basic/statefulSession
4) start the examples server if you still didn't
5) type ant on the console window to build the example
6) type ant run to run the console example client
I agree. Here's the link:
subject: Problem in runnig sample code please help
It's not a secret anymore!