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

Mirko Vukovic <[email protected]>
Newsgroups gmane.editors.j.devel
Message-ID <CAO73BABfRjRv1Xz1tEQzKeSjsuOkMo64UvLGnKNgFgiQE-MvCQ@mail.gmail.com>
I get the same problem with version 1.5.0.

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


I don't think it is a bug, but suspect something in my user setup (as
maintained by the IT department).

I tried (user-homedir-pathname) in ABCL called from the command line.  I
get the same incorrect answer whether the Command window is ran as
Administrator or not.  So I want to examine in greater detail the
environment in which ABCL is running by calling System.getProperty.

Mirko


On Sat, Jun 17, 2017 at 4:33 AM Marco Antoniotti <[email protected]> wrote:

> Well.  Looks like a bug in ABCL USER-HOMEDIR-PATHNAME to me.
>
> Marco
>
>
>
>
>
> > On Jun 17, 2017, at 01:51 , Mirko Vukovic <[email protected]>
> wrote:
> >
> > Hello,
> >
> > after a recent update of my company Windows 10 laptop, ABCL 1.4 is
> landing me in an incorrect home directory.  Before I contact our support I
> would like to investigate the problem a bit more.  This is how far I got:
> >
> > (user-homedir-pathname) returns
> > #P"C:/WINDOWS/system32/config/systemprofile/"
> >
> > I wrote a little Java snippet to test "user.home"
> > public class UserHome {
> >
> >     public static void main(String[] args) {
> >         System.out.println(System.getProperty("user.home"));
> >     }
> >
> > }
> >
> > and it returns, correctly, "C:\Users\977315"
> >
> > I don't know how to call System.getProperty("user.home") from ABCL.
> >
> > I have multiple Java's on my laptop, and I need to doublecheck that my
> tests are self-consistent.  But in the meantime, how do I call
> System.getProperty?
> >
> > Thanks,
> >
> > Mirko
> >
>
> --
> Marco Antoniotti
>
>
>
>
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.