unable to find bundled java version ..(Windows) - java

I have this error when I run the command flutter doctor:
unable to find bundled java version
My OS is: Windows 11
I have tried many solutions but they did not work. Thanks in advance for any help!

I had the same problem, I managed to solve it by creating a symbolic link with the following command in PowerShell in the folder C:\Program Files\Android\Android Studio:
cd "C:\Program Files\Android\Android Studio"
New-Item -ItemType SymbolicLink -Path .\jre -Target .\jbr
Hope it works for you too, good luck!

Related

Android Studio Electric Eel - The supplied javaHome seems to be invalid. Tried location: C:\Program Files\Android\Android Studio\jre\bin\java.exe

Android Studio Electric Eel - The supplied javaHome seems invalid. I cannot find the Java executable. Tried location: C:\Program Files\Android\Android Studio\jre\bin\java.exe
The error occurs after upgrading my Android Studio to Electric Eel, the latest version. I tried multiple solutions to this problem, but nothing worked.
My JAVA_HOME and ANDROID_HOME variables are set. I even tried to reinstall Java JDK-19 and reinstalled the Android Studio, but I still have the same issue.
I even tried to reinstall Java JDK-19 and reinstalled Android Studio, but I still have the same issue.
SOLVED:
For Windows
Go To the android studio directory
(Default C:\Program Files\Android\Android Studio)
remove jre folder
run cmd as administrator
cd C:\Program Files\Android\Android Studio
mklink /D "jre" "jbr"
THANKS a LOT. You solve my problem. Only to note that you have to remove all the folders inside C:\Program Files\Android\Android Studio\jre by hand
-1. run cmd as administrator
cd "C:\Program Files\Android\Android Studio"
remove first files from all subfolders of jre > del /s .\jre
remove jre folder > rmdir /s .\jre
make link to jbr folder containing bin\java.exe named as jre > mklink /D "jre" "jbr"
Thanks
These two steps were enough for me:
Set JAVA_HOME to ...\Android\AndroidStudio\jbr
Rename or delete ...\Android\AndroidStudio\jar

"Unable to load Java Runtime Environment" when starting SQLWorkbench/J

I get Unable to load Java Runtime Environment when starting SQLWorkbenchJ.app.
I'm on macOS Catalina 10.15.2, and I installed the app with brew cask install sqlworkbenchj. My JDK 8 is installed using brew install adoptopenjdk8.
How do I solve this problem? SQLWorkbench/J does not provide any other helpful messages, even when I start it with open -a in the Terminal.
Luckily I found a hint on SQLWorkbench/J's forum
The fix was to add ...
<key>JVMRuntime</key>
<string>adoptopenjdk-8.jdk</string>
... to /Applications/SQLWorkbenchJ.app/Contents/Info.plist, and create a symlink to JDK8:
ln -s /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk /Applications/SQLWorkbenchJ.app/Contents/PlugIns/
Voila!

eclipse neo4j Java Virtual Machine error

I just installed eclipse helios, but I´m not sure about the JDK installation.
I got the error
In the Properties->Java Build Path I have jre7
C:\Program Files (x86)\Java\jre7\bin
Which I guess is JRE version 7. But in my command line I got:
the file eclipse.ini is:
If I run my app I got this:
Suggestions?
Thank you in advance

Java folder missing

I cant find my Java folder using OSX cmd line. I tried using find /users -name java, but no luck. I have looked on many sites most say the library but even though I am the root user I am still getting denied permissions.
You can try
/usr/libexec/java_home
If you are looking for a specific version you can use the -v option
for Java 7
/usr/libexec/java_home -v 1.7
for Java 8
/usr/libexec/java_home -v 1.8

Android Studio installation issue in ubuntu

Android Studio installation on Windows 7 fails, no JDK found
I am facing same problem on ubuntu 12.04.
I have download JDk and android studio. Same Problem of that link facing peoblem
No JDK found. Please validate either ANDROID_STUDIO_JDK,
or JDK_HOME or JAVA_HOME points to valid JDK installation
EDIT
now facing this problem
/usr/lib/jvm/jdk1.7.0_21/bin/java: Syntax error: end of file unexpected (expecting ")")
see this image of my problem see this
Use following steps, to set JDK Path in uBuntu
edit your ~/.bashrc file and add the paths as follows:
insert following lines:
export JAVA_HOME=/usr/java/<your version of java>
export PATH=${PATH}:${JAVA_HOME}/bin
I solved the problem combining Jerome's and Jerod's answer:
Install JDK -- sudo apt-get install openjdk-7-jdk
Environment Variable -- sudo nano /etc/environment adding the following line:
JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386
Reboot, and Android Studio starts up. (I had added also a link to studio.sh to the main menu).
Also I just found https://stackoverflow.com/a/17827697/2533809 which seems to have a nice write-up, pretty much the same answer.

Categories