The moose likes Distributed Java and the fly likes Running the hello world application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Running the hello world application" Watch "Running the hello world application" New topic
Author

Running the hello world application

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Nov 06, 2000
Posts: 21
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
 
 
subject: Running the hello world application
 
Threads others viewed
CORBA Question
win2000 server problem with RMI
Calling Remote method of CORBA object
Problem while starting rmi server
CORBA and Visibroker
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture