src/host/java.js
function _gpfHostJava () {

    _gpfDosPath = String(java.lang.System.getProperty("file.separator")) === "\\";

    // Define console APIs
    _gpfMainContext.console = _gpfConsoleGenerate(print);

    /* istanbul ignore next */ // exit.1
    _gpfExit = function (code) {
        java.lang.System.exit(code);
    };

}
function _gpfHostJava () {

    _gpfDosPath = String(java.lang.System.getProperty("file.separator")) === "\\";

    // Define console APIs
    _gpfMainContext.console = _gpfConsoleGenerate(print);

    /* istanbul ignore next */ // exit.1
    _gpfExit = function (code) {
        java.lang.System.exit(code);
    };

}
function _gpfHostJava ( ) { _gpfDosPath = String ( java . lang . System . getProperty ( "file.separator" ) ) === "\\" ; // Define console APIs _gpfMainContext . console = _gpfConsoleGenerate ( print ) ; /* istanbul ignore next */ // exit.1 _gpfExit = function ( code ) { java . lang . System . exit ( code ) ; } ; }
Common implementation for Java hosts
@since 0.2.4
Common implementation for Java hosts