Questions tagged [jenv]

jEnv is a command line tool to help you forget how to set the JAVA_HOME environment variable

jEnv is a command line tool to help you forget how to set the JAVA_HOME environment variable

29 questions
3
votes
1 answer

Maven plugin compatibility error with newest version of Java

So recently I was given a maven project I need to compile, but there seems to be some compatibility issues with wr04j and the most recent version of Java I have installed on my Mac. Execution {redacted} of goal…
Mark
  • 1,610
  • 1
  • 14
  • 27
2
votes
0 answers

Java installation(Java 8 & 19) not recognized by Homebrew Jenv

I have installed Java 8 & 19 using Homebrew Jenv on MacOS Monterey following their instruction. I wanted to use jenv for two different projects that I need to switch b/n the two versions. Once I added the Home env't variable using $ echo 'export…
WowBow
  • 7,137
  • 17
  • 65
  • 103
2
votes
2 answers

Pointing Intellij SDK to jenv defined java home

I am using jenv to set the java home. It works fine and points to the correct JAVA_HOME when I do echo $JAVA_HOME. My question is how do we set Intellij to get the SDK pointed by JAVA_HOME without having to go through the project SDK route. Output…
2
votes
0 answers

macOS High Sierra / Multiple Versions Java JDK

I realize there are multiple topics on this over the last 5 years, but I was unable to find something on point so I'm asking for a little help. My issue is that applications installed on macOS don't seem to find the correct Java (Java 8) that they…
ATS
  • 174
  • 1
  • 10
1
vote
0 answers

Java --version command not recognizing jenv installed version. How can I fix this?

java --version command is not working after setting the version using jenv. ➜ ~ java --version Usage: java [options] [args...] (to execute a class) or java [options] -jar [args...] (to execute a jar…
500865
  • 6,920
  • 7
  • 44
  • 87
1
vote
0 answers

after jenv uninstall each command prints "command not found: jenv", how to get rid of that?

My mac has everything installed using brew. I also had jenv installed. I got frustrated with "jvisualvm The operation couldn’t be completed. Unable to locate a Java Runtime that supports jvisualvm", decided to uninstall everything. Uninstalled…
1
vote
2 answers

Intellij IDEA: Scala 2.10 project with Java 7, UnsupportedClassVersionError

I'm trying to compile the project in Intellij IDEA which uses Scala 2.10 and requires Java 7 to compile. I'm using jenv tool for compiling from command line (I've installed it's plugin for Intellij IDEA as well just in case) and after I use Java 7…
yyunikov
  • 5,719
  • 2
  • 43
  • 78
1
vote
1 answer

Android Studio - 'tools.jar' seems to be not in Studio classpath using jEnv

I'm using jEnv to manage my Java environment. I tried to launch Android Studio but it fails with the following error message (with a fresh download - just to be sure): 'tools.jar' seems to be not in Studio classpath. Please ensure JAVA_HOME points…
user2336315
  • 15,697
  • 10
  • 46
  • 64
0
votes
1 answer

How can I use "jenv global VERSION" in ubuntu?

Recently I used the jenv VERSION control tool in Ubuntu16LTS. This is probably the first time I have used this tool. Once installed, I can switch versions using jenv local VERSION, but jenv global VERSION does not seem to work. How to solve it? in…
0
votes
1 answer

Changing Java version using jenv in a shell script

I have a React Native project where I have a script in which I need to change the Java versions before and after the script has been executed. I basically need to change to Java 1.8 to run commands connected to the android sdkmanager, and then…
Rameez Hussain
  • 6,414
  • 10
  • 56
  • 85
0
votes
0 answers

Trying to run old NetLogo with old Java(6) under jenv gets noop error

I'm trying to run an old version of NetLogo (5.0.2) on OS X (Catalina) which requires Java6. I'm using jenv (installed under brew cask management). It seems to find the right java, but I'm getting the below error: com.apple.message.domain:…
jackisquizzical
  • 307
  • 1
  • 8
0
votes
1 answer

/Users/username/.jenv/jenv.version: Permission denied

macOS Catalina, installed jenv 0.5.4 using homebrew, using zsh, followed all the steps listed in https://www.jenv.be/ In terminal I have the following error Last login: Tue Dec 22 10:10:15 on…
mch13
  • 1
0
votes
2 answers

Mac Eclipse error "Incompatible JVM"

OS X Mavericks. I installed the 64-bit latest eclipse few weeks ago. It ran just fine. A few weeks later, I installed jenv and, I believe, since then eclipse isn't working fine. To be sure, both eclipse and JDK 8 are 64-bit. Why do I get the error…
anjanb
  • 12,999
  • 18
  • 77
  • 106
-3
votes
1 answer

Not able to switch the Java version to Java 17

Posting again since someone moved my question a community where there is not much activity and the solution provided there in the comment did not work. I have installed Amazon Corretto Java 17 from here. However, I am not able to switch the Java…
harsh pamnani
  • 1,191
  • 1
  • 10
  • 14
1
2