• Post Reply Bookmark Topic Watch Topic
  • New Topic

Running the hello world application

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am a beginner with Java and CORBA.I am folowing the Java sun Tutorials which gives the step by step procedure to write the idl and both the client and server programs.Once these programs have been written,i have been asked to follow the following steps.
1)Start the Java IDL Name Server.
From an MS-DOS system prompt (Windows), enter:
start tnameserv -ORBInitialPort nameserverport
2)From a second prompt or shell, start the Hello server:
java HelloServer -ORBInitialHost namerserverhost - ORBInitialPort nameserverport
3)From a third prompt or shell, run the Hello application client:
java HelloClient -ORBInitialHost namerserverhost -ORBInitialPort nameserverport

When i try o run the server from the second prompt as specified i get the following error
Exception in thread "main" java.lang.NoClassDefFoundError: HelloServer
The code is correct.But the problem lies in trying to start the HelloServer.
Can somebody please help me out.
Thankx in advance
 
Ambrose R Tati
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I managed to run the HelloServer and HelloClient (from the tutorial) on Win98 ok.
1) From one window I typed:
tnameserv -ORBInitialPort
2) From a second window I typed:
java HelloServer
3) From a third window I typed:
java HelloClient
Hope that helps.
Ambrose
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!