Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in runnig sample code please help

 
Vivek Nidhi
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
C:\bea\WEBLOG~1\samples\server\src\examples\sfsb>
and tried to run the ANT with target run
I got the Exception:-
C:\example\sfsb>ant run
Buildfile: build.xml
run:
[java] java.lang.NoClassDefFoundError: examples/sfsb/Client
[java] Exception in thread "main"
BUILD FAILED
file:C:/example/sfsb/build.xml:81: Java returned: 1
SOme one please help
thanks
Vivek Nidhi
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic