How to call System.getProperty("user.home") from ABCL
Mirko Vukovic
mirko.vukovic at gmail.com
Mon Jun 19 21:33:54 UTC 2017
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 <marcoxa at cs.nyu.edu> wrote:
> Well. Looks like a bug in ABCL USER-HOMEDIR-PATHNAME to me.
>
> Marco
>
>
>
>
>
> > On Jun 17, 2017, at 01:51 , Mirko Vukovic <mirko.vukovic at gmail.com>
> 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
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20170619/7b51813d/attachment.html>
More information about the armedbear-devel
mailing list