C:\EJB\Demo\StatelessBean>javac -d ./classes C:\EJB\Demo\StatelessBean\src\*.java
This command is correct command for compile the program(Source code).After writing the above command I compiled the Programs without any Errors.I got the class file after compilation in appropriate folder location.Yes when I put a space after -d then solved my problem.
But you find this errors thats I am showing below :
C:\EJB\Demo\StatelessBean>Set ClassPath="%ClassPath%";C:\EJB\Demo\StatelessBean\
classes\examples;C:\EJB\Demo\StatelessBean\classes ;d:;.;
C:\EJB\Demo\StatelessBean>
C:\EJB\Demo\StatelessBean>java examples.HelloClient
Exception in thread "main" javax.naming.CommunicationException [Root exception i
s java.net.ConnectException: t3://localhost:7001: Destination unreachable; neste
d exception is:
java.net.ConnectException: Connection refused: connect; No available rou
ter to destination]
at weblogic.jndi.internal.ExceptionTranslator.toNamin gException(Exceptio
nTranslator.java:47)
at weblogic.jndi.WLInitialContextFactoryDelegate.toNa mingException(WLIni
tialContextFactoryDelegate.java:618)
at weblogic.jndi.WLInitialContextFactoryDelegate.getI nitialContext(WLIni
tialContextFactoryDelegate.java:306)
at weblogic.jndi.WLInitialContextFactoryDelegate.getI nitialContext(WLIni
tialContextFactoryDelegate.java:239)
at weblogic.jndi.WLInitialContextFactory.getInitialCo ntext(WLInitialCont
extFactory.java:135)
at javax.naming.spi.NamingManager.getInitialContext(N amingManager.java:6
62)
at javax.naming.InitialContext.getDefaultInitCtx(Init ialContext.java:243
)
at javax.naming.InitialContext.init(InitialContext.ja va:219)
at javax.naming.InitialContext.<init>(InitialContext. java:195)
at examples.HelloClient.main(HelloClient.java:20)
Caused by: java.net.ConnectException: t3://localhost:7001: Destination unreachab
le; nested exception is:
java.net.ConnectException: Connection refused: connect; No available rou
ter to destination
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.j ava:199)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL .java:125)
at weblogic.jndi.WLInitialContextFactoryDelegate.getI nitialContext(WLIni
tialContextFactoryDelegate.java:296)
... 7 more
C:\EJB\Demo\StatelessBean>c: