Embedded software grows more and more rapidly and complicatedly. This paper proposes a new structure and a comprehensible process to develop embedded software in JNI, a new programming framework allowing Java code running in a JVM to call or be called by native application and library written in C/C++. Therefore, programmer can develop application that benefit the simplicity and reusability features of Java and can always reuse legacy code for controlling device effectively written in C/C++ for embedded applications. .