So, I wanted to compile my java script in CMD via my C++ application.
I tried
system("cd C:\\ && javac HelloWorldApp.j ava");
and
system("cd C:\\ & javac HelloWorldApp.j ava");
which neither of them work
although, when i use cmd.exe and manually type
cd C:\\ && javac HelloWorldApp.j ava
everything works fine.
anybody have any suggestions?
EDIT
even when the file is in my directory C:\docs and settings\my username\
and i use this
system("javac HelloWorldApp.j ava");
..when opening cmd and typing javac HelloWorldApp.j ava works...
doesnt work
I tried
system("cd C:\\ && javac HelloWorldApp.j ava");
and
system("cd C:\\ & javac HelloWorldApp.j ava");
which neither of them work
although, when i use cmd.exe and manually type
cd C:\\ && javac HelloWorldApp.j ava
everything works fine.
anybody have any suggestions?
EDIT
even when the file is in my directory C:\docs and settings\my username\
and i use this
system("javac HelloWorldApp.j ava");
..when opening cmd and typing javac HelloWorldApp.j ava works...
doesnt work
Comment