mguijarr
mguijarr

Reputation: 7908

How to get java executable via Conda?

I need java 1.7, in a Conda environment. I installed OpenJDK Java 1.7 like this:

conda install -c anaconda java-1.7.0-openjdk-cos6-x86_64

So far so good. But, I do not have any java executable, and could not find it...

How can I execute JAR files then ?

Upvotes: 9

Views: 36971

Answers (2)

Oliver Küchler
Oliver Küchler

Reputation: 346

If you want to take advantage of a direct integration of the java-executable in your environment, then use this:

conda install -c conda-forge openjdk.

This installs the Zulu OpenJDK, which is an open source build of the Java JDK.

Conda-Link: Click me

Upvotes: 5

FlyingTeller
FlyingTeller

Reputation: 20492

For me the binary is in

<basedir of env>/x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.131.x86_64/jre/bin/java

Upvotes: 5

Related Questions