java - How to run a process from memory/RAM as the "current working directory" -


in java 6 on windows, interested in performing following task, not sure how go it.

  1. i want take zip file
  2. unzip contents spot in memory/ram
  3. create java process run .exe file exists within zip file
  4. that .exe must run while current working directory location in ram
  5. i need put file same "current working directory" location space in ram.

i know sounds weird, make more efficient doing way, if possible, great know.

it sounds difficult, , require lot of stuff cannot done in pure java.

on linux, think need following:

the commands creating "ram disk" file system os specific, , may require root / administrator privilege.


it unclear whether doing more efficient using temporary directory in file system. wouldn't attempt unless there demonstrated need solution more efficient; i.e. unless you've tried using temporary directory , found slow.

bear in mind that:

  • much (maybe most) of work of unpacking zip file has done either way it, and

  • in conventional case .exe probably reading files expanded zip out of os'es in-memory disk-block cache (on linux).


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -