-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
?
directory in Ubuntu 20.04.6 LTS with static build
#75
Comments
?
as user-home
on Ubuntu 20.04.6 LTS?
directory on Ubuntu 20.04.6 LTS
What is the value of your |
I don't have one. |
I edited the question, list any environment variable starting with |
|
I don't see any mention of cc @rads |
?
directory on Ubuntu 20.04.6 LTS?
directory in Ubuntu 20.04.6 LTS
I have a system with the same behaviour. |
Perhaps this is an issue with GraalVM? You can repro this as follows: Repro.java:
|
If it turns out to be a GraalVM issue, please file an issue on their Github. |
I guess it is not a GraalVM issue. I tried the program with "user.dir" and "user.home". Both are displayed. |
@akutschera Did you try it inside of a native-image rather than just a JDK? This wasn't clear from your answer. |
Sorry for the misunderstanding. I tried to follow your suggestions. Here's what I did: |
Which GraalVM did you use, the CE version or Oracle GraalVM? |
I have another repro for you which is closer to how bb (SCI) works: public class Repro {
public static void main(String [] args) throws NoSuchMethodException, IllegalAccessException, java.lang.reflect.InvocationTargetException {
var clazz = System.class;
var meth = clazz.getMethod("getProperty", String.class);
System.out.println(meth.invoke(clazz, "user.dir"));
}
} Can you also try that one? |
I downloaded the GraalVMs from https://www.graalvm.org/downloads I downloaded both the Java 17 and the Java 21 version. |
Now, that's a bit embarassing. I found a solution/workaround for this. |
?
directory in Ubuntu 20.04.6 LTS?
directory in Ubuntu 20.04.6 LTS with static build
Btw, my repro above contains a mistake and should have |
I just tried the above on a Linux x64 Ubuntu 20.04 in WSL and both the static version and non-static version return the right value for FROM ubuntu:20.04
RUN apt-get update && apt-get install curl -y
RUN curl -sLO https://raw.githubusercontent.com/babashka/babashka/master/install
RUN chmod +x install
RUN ./install --dir /tmp
RUN /tmp/bb -e "(System/getProperty \"user.home\")"
|
bbin 0.2.0
creates a directory with a singe letter name?
with subdirectories.clojure
,.deps.clj
,.gitlibs
,.local
and installs bbins in there, which makesbbin
and installed bbins unusable. The path to an installed bbin looks like$HOME/?/.local/bin/installed-bbin-name
.Calling
(System/getProperty "user.home")
returns correct name not a?
.Installing
bbin
by means ofbrew
or as a standalone executbale makes no difference.P.S. Appreciate all of your work.
The text was updated successfully, but these errors were encountered: