Hi team ,
I have a folder called as src in E:\ drive . In this folder Iam storing the all the .java files. Iam trying to compile using the below options
I have an Employee.java file under a package com.businessobjects. I have issued the below comamnd to compile and create the .class file in the folder as per the package structure
Initially , I placed the .java file in E drive itself
e:\javac -d . Employee.java.
The folder structure as per package got created and the class file was placed in the E:\com\businessobjects.
After this step I decided to keep all the source files in E:\Src folder and then modified and java file and issued the below command
javac -sourcepath e:\src -d e:\src\ Employee.java --> the .class file is not getting updated with the current version
The class file timestamp did not change . Again I tried to issue the below command
javac -sourcepath e:\src -d . Employee.java
Now the .class file timestamp changed in e:\com\businessobjects folder .
I want to know what happened when I gave -d with . and why it did not change the class file when I gave -d e:\src\.
I want to what is the use of -s option of Javac command ,
I tried to compile the code and store the source files in e:\src folder , but got an error related to syntax
Employee.java file is in E:\
e:\javac -s src\ Employee.java