pointers - Accessing data stored in a memory location in java -


i'm looking way read data pre-written memory location. there way in java, on computer runs on windows?

java provides "abstraction" of computer, hence "java virtual machine" (jvm). jvm (theoretically) same regardless of underlying hardware or operating system. (afaik) no direct access low-level memory possible program space.

my suggestion write in lower-level language (c instance makes mem access easy), use java native interface (jni) call , data java program. google on "java native interface" and/or "calling c java" tutorial on how to. native component compiled differently each platform want run on, providing separate executable binary "native" file. ansi c used standard code to, since compilers complying standard available on all(??) platforms, if want go multi-platform.

using jni call break "compile once, run anywhere"-feature of java, depends on component still needs recompiled each platform want run on. and, of course, in practice native code differ platform platform, memory organisation might differ between platforms.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -