Update code based on Javie 1.0.4, and append app environment to Javie

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>