My working directory structure is

:\java\scjp\c-1
CODE:1 I have compiled the above code by using command
D:\java\scjp\c-1>
Javac -d C:\ Cp1.java Cp1.class file is created under package pack1 in C:\
CODE:2 I have compiled the above code with command
D:\java\scjp\c-1>
javac �cp C:\ n �d . Cp2.java I got Cp2.class file under package pack2 in my current working directory�..
I run Cp2 with command
D:\java\scjp\c-1>
java �cp C:\;. pack2/Cp2 I got output as �
yeah I got it���.
CODE:3 I am compiling this code with command:
D:\java\scjp\c-1>
javac -cp C:\;. Cp3.java Then it is showing
compilation error as:
Can not access Cp1
Bad class file:C:\Cp1.java
File does not contain class Cp1
Please remove or make sure it appears in the correct subdirectory of the classpath.
Cp1 c1=new Cp1();
^
1 error
Is there any mistake in command?
How can I compile the above code?
