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

Olof-Joachim Frahm <[email protected]>
Newsgroups gmane.editors.j.devel
Message-ID <[email protected]>
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.)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.