I have tried everything like included tools.jar
file in my classpath
like
java -cp "C:\Program Files\Java\jdk.0.0.82\lib\tools.jar" SourceFile [ ( Paramters ) ]
Also i tried to copy tools.jar
to my classpath
where my binary files like javac
, java
, etc. are located but ToolProvider.getSystemJavaCompiler()
is still returning null
.
Please help me to make my code work.