I wanted to know if I could connect JVM to a virtual disk or disk image file (like .iso) by modifying the JVM source code.
Now let 'APP.jar' be an unknown java program that I downloaded from the internet. So this 'APP.jar' resides in my PC's file system.
My requirement is that, on running, 'APP.jar' should do all file reads or writes to this virtual disk only and should not be able to read or write to the file system on my pc.
If this is possible, Can someone explain how or can I get the link to some resources?