Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 vm/jato.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/vm/jato.c b/vm/jato.c
index 4a82048..ea176ca 100644
--- a/vm/jato.c
+++ b/vm/jato.c
@@ -206,6 +206,13 @@ static void init_system_properties(void)
                s = "/usr/lib/classpath/";
 
        add_system_property_const("java.library.path", s);
+
+       char *cwd = get_current_dir_name();
+       add_system_property_const("user.dir", cwd);
+       free(cwd);
+
+       add_system_property_const("user.name", getenv("USER"));
+       add_system_property_const("user.home", getenv("HOME"));
 }
 
 static void native_vmsystemproperties_preinit(struct vm_object *p)
-- 
1.6.0.6


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to