How to call System.getProperty("user.home") from ABCL

Olof-Joachim Frahm olof at macrolet.net
Mon Jun 19 22:04:10 UTC 2017


On Mon, Jun 19, 2017 at 09:33:54PM +0000, Mirko Vukovic wrote:
> To summarize:  According to the documentation, (user-homedir-pathname)
> should return the value returned by System.getProperty("user.home").  That
> is what I am checking.
> 
> 
>    1. My test Java code call System.getProperty("user.home") to returns:
>    "C:\Users\977315"
>    2. (user-homedir-pathname) returns: "C:/WINDOWS/system32/config/
>    systemprofile/"
>    1. This is the home directory of account S-1-5-18
>    3. I want to call System.getProperty("user.home") from ABCL,
>       1. (jcall "getProperty" "System" "user.home") gives error
>       2. (jclass "System") returns error: Class not found

`System.getProperty` is a static method, so that should be
  1. (jstatic "getProperty" "java.lang.System" "user.home")
  2. and (jclass "java.lang.System"), respectively.  (Or you might have
to use JSS for shortcuts.)



More information about the armedbear-devel mailing list