Skip to content
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

setup.py jre_home #1

Closed
knappador opened this issue Aug 16, 2012 · 2 comments
Closed

setup.py jre_home #1

knappador opened this issue Aug 16, 2012 · 2 comments
Labels

Comments

@knappador
Copy link

This section doesn't return a good jre_home on my box. What's an example of the properly formed directory? I have several Java installations going.

jre_home = environ.get('JRE_HOME')
if not jre_home:
    jre_home = subprocess.Popen('readlink -f /usr/bin/java | sed "s:bin/java::"',
            shell=True, stdout=subprocess.PIPE).communicate()[0].strip()
@knappador
Copy link
Author

correct path:
'/usr/lib64/icedtea7/jre/lib/amd64/server/'

knapper@localhost ~/projects/pyjnius $ readlink -f /usr/bin/java
/usr/bin/run-java-tool

experienced java dev at work. any questions that might lead to a robust solution?

@tito
Copy link
Member

tito commented Aug 16, 2012

When i searched on the Internet, people point me on that readlink
solution. Can you check with 'rmid' instead?

Most tutorials show how to JDK_ENV/JRE_ENV, but i didn't liked it...

Le 16/08/2012 04:04, Brian Knapp a écrit :

correct path:
'/usr/lib64/icedtea7/jre/lib/amd64/server/'

knapper@localhost ~/projects/pyjnius $ readlink -f /usr/bin/java
/usr/bin/run-java-tool

experienced java dev at work. any questions that might lead to a robust
solution?


Reply to this email directly or view it on GitHub
#1 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@tito @knappador @thopiekar and others