* @param res the system properties object
*/
public static void insertSystemProperties(Properties res) {
final org.jnode.vm.facade.Vm vm = VmUtils.getVm();
final VmArchitecture arch = vm.getArch();
// Standard Java properties
res.put("file.separator", "/");
// res.put("file.encoding", "ISO-8859-1");
res.put("java.awt.graphicsenv", "org.jnode.awt.JNodeGraphicsEnvironment");
//todo
// res.put("java.awt.printerjob", "");
//todo
res.put("java.class.path", ":");
res.put("java.class.version", "50.0");
res.put("java.compiler", "Internal"); //todo is this needed?
res.put("java.endorsed.dirs", "/jifs/lib/");
res.put("java.ext.dirs", "/jifs/lib/");
res.put("java.home", "/jnode");
res.put("java.io.tmpdir", "/jnode/tmp");
res.put("java.library.path", "/jnode/tmp"); //dummy value but needed by Runtime.loadLibrary
res.put("java.runtime.name", "JNode");
res.put("java.runtime.version", vm.getVersion());
res.put("java.specification.name", "Java Platform API Specification");
res.put("java.specification.vendor", "Sun Microsystems Inc.");
res.put("java.specification.version", "1.6");
res.put("java.vendor", "JNode.org");
res.put("java.vendor.url", "http://jnode.org");
res.put("java.vendor.url.bug", "http://jnode.org");
res.put("java.version", "1.6");
res.put("java.vm.info", "JNode");
res.put("java.vm.name", "JNode");
res.put("java.vm.specification.name", "Java Virtual Machine Specification");
res.put("java.vm.specification.vendor", "Sun Microsystems Inc.");
res.put("java.vm.specification.version", "1.0");
res.put("java.vm.vendor", "JNode.org");
res.put("java.vm.version", vm.getVersion());
res.put("line.separator", "\n");
res.put("os.arch", arch.getName());
res.put("os.name", "JNode");
res.put("os.version", vm.getVersion());
res.put("path.separator", ":");
//todo
// res.put("user.country", "");
res.put("user.dir", "/");
res.put("user.home", "/jnode/home");
res.put("user.language", "en");
res.put("user.name", "admin");
//todo
// res.put("user.timezone", "");
// GNU properties
res.put("gnu.cpu.endian", (arch.getByteOrder() == ByteOrder.BIG_ENDIAN) ? "big" : "little");
res.put("gnu.classpath.home.url", "system://");
res.put("gnu.classpath.vm.shortname", "jnode");
res.put("gnu.javax.swing.noGraphics2D", "true");
//----------JNode related