Java is an applications programming language, and what you're talking about is systems programming. However, Java can bridge that gap using JNI, the Java Native Interface, which allows it to call into code written in a systems programming language like C. You could roll your own solution, or look into third-party frameworks. I found a few by Googling for "Java raw ...