![]() ![]() ![]() I hope this helps, but if it doesn't, please don't hesitate to share the error messages and step where it fails here. The "$" in front of the variable tells echo to look for a variable. ![]() , echo being a command to display something. You can verify if it was successfully created with The "export" instruction creates an environment variable. This file will be automatically read and its instructions executed when you open your profile. Save, close the file, reboot your laptop. After installing openjdk with brew and runnning brew info openjdk I got this And from that I got this command here, and after running it I got Java working sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk. Alternatively, you can edit the file in command line withĪt the end of the file, add the following line :Įxport JAVA_HOME="/Path/to/your/java/home"Īnd replace /Path/to/your/java/home with the path that you got at step 5. Open the newly created file (it's a hidden file so you will have to show hidden files. Get the path to Java and keep it somewhere : Gives you a "No such file or directory" message, create the file: Look for a file called ".zshrc" in this ~ % ls. ![]() Yours is obviously not defined, so let's define it manually : Usually, the path to Java must be defined in a JAVA_HOME environment variable. Switch, followed by (I guess) the path to a valid JDK as suggested in your error message. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |