How to run a C++ code using java?
I have a c++ source code which I dont want to modify......I want to run it using java ....at the same time the C++ source code should not be able to modify any of the files already on my computer...Does java provide some security or permission control over file writing by a process?????
Please can anyone help????
Re: How to run a C++ code safely
If you have the source code, why don't you just change it to suit you rather than trying to restricted functionality using Java. Also how are you 'running' the C++ code. Are you compiling it down into a DLL and it is alreadt set up for use with JNI? or are you meerly running a compiled C++ as an exe and then trying to restrict File Access?