Rajiv Chopra wrote:
Minhaj kaimkhani wrote:
its giving me following error and i have jdk6 installed.
===
javac: file not found: com\wickedlysmart\MyClass.java
Usage: javac <options> <source files>
use -help for a list of possible options
but in book page# 793 the error message is different!
Note: i have give wrong value to -d param "classes1" which is not available onto file system and while compiling through "javac -d ../classes com/wickedlysmart/MyClass.java" its just compiling fine, no error.
Hi , I am getting the following message while compiling like you. instead of classes i am using classes1 which doesn't exist. I think this is similar to what book mention. I have JDK5.
C:\myProject\source> javac -d ../classes1 com/wickedlysmart/MyClass.java
com/wickedlysmart/MyClass.java:2: error while writing com.wickedlysmart.MyClass:
..\classes1\com\wickedlysmart\MyClass.class (The system cannot find the path sp
ecified)
public class MyClass{
^
1 error
I changed my JDK to 1.6 now message is same like in book.
C:\>
java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode)
C:\>cd myProject
C:\myProject>cd source
C:\myProject\source>javac -d ../classes1 com/wickedlysmart/MyClass.java
javac: directory not found: ../classes1
Usage: javac <options> <source files>
use -help for a list of possible options