I have an issue for my application.
I want to convert selected .java file to .class file at same path.
for that i am using:
File directoryPath = new File(".");
String command ="cmd.exe /C "+ directoryPath.getCanonicalPath()+"\\javac UpsOfferDataDaily.java";
Runtime.getRuntime().exec(command);
any thing strange with that??
It Can't execute my command successfully.
directory path will be same as the .java is situated.
what should i do...
Thanks in advance: