I seem to be following instructions in the book I'm using as well as in Oracle's Java SE docs but cannot overcome the following error:
Error: Could not find or load main class com.practicalJava.lesson25.StartServer
I'm using the following command line on my Windows 7 box:
[C:\>]java -classpath /Practical_Java/Lesson25/bin -Djava.rmi.server.codebase=file:/Practical_Java/Lesson25/bin/ com.practicalJava.lesson25.StartServer
From the docs:
start java -classpath classDir -Djava.rmi.server.codebase=file:classDir/ example.hello.Server
where classDir is the root directory of the class file tree
My compiled by Eclipse classes are in package com.practicalJava.lesson25
.
My bin directory is located at
C:\Practical_Java\Lesson25\
My StartServer.class file is located at:
C:\Practical_Java\Lesson25\bin\com\practicalJava\lesson25
I'm obviously doing something wrong. But what???
* UPDATE: *
Typo: StartSever
instead of StartServer