Once I did this and tried running existing projects which use java8. Why do academics stay as adjuncts for years rather than move around? After opening a terminal, the successful installation of the JDK can be confirmed like so: In previous macOS versions, this was done in, Open a text editor, copy the code from below and save the file as, From a terminal set the working directory to the directory containing, Open terminal on mac, change path to the root cd ~, vi .bash_profile (This opens the bash_profile file), export JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home'. How to Set JAVA_HOME on MAC - Apps Developer Blog javac is the name of the Java compiler. I've had the same issue. Why is this sentence from The Great Gatsby grammatical? Continue with Recommended Cookies. As I tryed. "set java_home mac big sur" Code Answer how to add java_home in mac java by Outstanding Osprey on Apr 05 2020 Comment 0 xxxxxxxxxx 1 1. Next use vim ~/.bash_profile to edit your bash profile. PDF Finding and Setting JAVA HOME - Pds.nasa.gov I am new to Mac OS and it took me with 4hours to solve this. It will print the current Java version installed on your Mac. What advice would you give to beginning devs. macOS Big Sur, the latest version of the world's most advanced desktop operating system, is now available to Mac users as a free software update. Using Kolmogorov complexity to measure difficulty of problems? Set JAVA_HOME on macOS | Delft Stack javac 1.8.0_101, javac 1.8.0_131), Of course, change 1.8 to 1.7 or 1.6 (really?) This should permanently set your JAVA_HOME environment variable. MacJAVA_HOME - Node.js doesnt stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. So, if you encounter another misplaced issue, what you did is great--if you cc a Bazel team member we can transfer it accordingly! 7) type "echo $JAVA_HOME" if you see the path you are all set. Invoke it from the terminal to get a response similar to the following: Navigate into the root and open the .zprofile file. Ive managed to run the installer, but its not showing up with /usr/libexec/java_home -V (though other versions are). Insert lines such as export JAVA_HOME= . Is it possible to create a concave light? Is it possible to rotate a window 90 degrees if it has the same length and width? Built on Forem the open source software that powers DEV and other inclusive communities. (Big Sur 11.5.2, AdoptOpenJDK 11.0.11). Unable to locate a Java Runtime. After that, source the file and print the JAVA_HOME, and you are done. macOS Big Sur: A cheat sheet | TechRepublic Unable to locate a Java Runtime that supports apt. How to add to PATH in macOS Big Sur - Code2care I'm going to return this issue to team-Rules-CPP, since issues pertaining to core Bazel cc rules + Mac belong in that component. DEV Community 2016 - 2023. so add this in .bash_profile (path which you get from 1st command)-: if you were using code editor then now go to terminal and run this command to save the changes -: else press esc then :wq to exit from bash_profile then go to terminal and run the command given above. All, @PostMapping and @RequestBody Example in Spring Boot REST, Spring Boot @PostMapping, @GetMapping,, Spring Security Default Username, Password, Role, User Registration, Log in, Log out Video Tutorials. Spark-Scala-Intellij java.lang.IllegalStateException: After installing macOS Big Sur Update, How to fix Java for Android Studio and Flutter on macOS (Big Sur ). How to set JAVA_HOME (PATH) in Mac OS X 10.10 Yosemite I haven't tried other versions than AdoptOpenJDK 11 and 15, but I guess they will behave like 11. Where is the Java Control Panel on Mac? code of conduct because it is harassing, offensive or spammy. Exact behavior is not clear, I couldn't find any documentation on this, but in my experiments it reported the version already set in JAVA_HOME, regardless of the -v switch: Additionally, I noticed that it reports nothing, if JAVA_HOME is set, but doesn't point to a valid java home (also for -V): Solution is to ensure JAVA_HOME is not set before executing /usr/libexec/java_home: I have Big Sur 11.2.1 from 18.02.2021. All rights reserved. at java.util.TimerThread.run(Timer.java:505) So yes, this seems to be broken in the shell. to your account, Bazel fails to recognize valid $JAVA_HOME as a JDK on macOS Big Sur. Install Java on Mac Note: Below instructions are specific to macOS Big Sur (11.x) 1. How to set Java Home. A few of the replies before this have what may work for you. I'm also facing this problem.so no one can fix it ? Double-click the .dmg file to launch it 3. Permanently. I also use sdkman, but I can not start jnlp files using javaws (although it is on the PATH and can be called without full path) because /usr/libexec/java_home refuses to recognize my java installation: Any pointers how to solve that? I may try a different app to see if the Java install is good - but need to find another app that needs the Mac legacy version of Java to test with . I'm wondering what's the correct way to set a preferred JDK/JRE when I run bazel command? The $1 parameter value shall be the java version to set. It was fixed in v11.2 to return to be consistent with the older behavior for. Thank you, the instruction was clear and worked perfectly. Bazel fails to recognize valid $JAVA_HOME on macOS Big Sur #12502 - GitHub $ unset JAVA_HOME Well, yesterday I impatiently upgraded to MacOs Big sur and since then I can't use any of my IDEs (Eclipse, Netbeans, IntelliJ). My code is GPL licensed, can I issue a license to have my code be distributed in a specific MIT licensed project? Over one million developers have registered already! Thank you. Is the java executable in your Java home folder set to open the . The new way of setting JAVA_HOME environment variable allows us to dynamically identify and use the current Java version installed on a computer as well as let us switch between Java versions if there is more than one installed. 42 more at java.security.AccessController.doPrivileged(Native Method) Probably better to wait until they release a new update with bug fixes. 4 4. . However, the easiest way is to select OpenJDK 11 (LTS), the HotSpot JVM, and macOS x64, which will expose two option . Copyright 2003 - 2022 | lotharschulz.info || author portraits: carohoene.de, setting the java version on earlier macOS versions, https://developer.apple.com/forums/thread/666681, https://github.com/AdoptOpenJDK/homebrew-openjdk#switch-between-different-jdk-versions, https://www.lotharschulz.info/2019/08/21/mac-change-default-java-version/#comment-19154, https://github.com/AdoptOpenJDK/homebrew-openjdk, https://gist.github.com/kenglxn/1843d552dff4d4233271, https://gist.github.com/lotharschulz/642bc464ac1506cc29df37917a972b32, https://codeberg.org/lotharschulz/ChangeDefaultJavaVersionOnMacOS11BigSur/src/branch/main/README.md, Change Java version on Mac 11 BigSur & persist it, How to switch between Java LTS versions 8, 11 and 17 on Mac, Publishing artifacts with AWS Codeartifact and GitHub Packages. I can't modify java_home, setting JAVA_HOME to the JDK location mac osx 10.9.5. Also, you can put the environment variable in one of these files: the answers here are in general correct, but for me I didn't know that I need to do something like source ~/.bash_profile to be able to really make it work. Over the past 11 years, Ive been developing, built and launched software products of Enterprise Software Modernization that have been used by thousands of people. So yes, this seems to be broken in the shell. Press 'Y' to save changes. Please share the output of the two following commands: Maybe your PATH is set in a way that you machine always returns java version 15when you invoke $ java -version . document.getElementById( "ak_js_1" ).setAttribute( "value", ( new Date() ).getTime() ); https://docs.oracle.com/en/java/javase/11/docs/api/. Excellent tutorial, but as it seems there is a major error in ALL Java JDK and JRE versions around when it comes to Big Sur, as follows: Any application now need permission to access system resources, but Java JDK/JRE does not pose such request, nor is this available as an API for a Java application (?). at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534) Once unsuspended, pablohs1986 will be able to comment and publish posts again. Windows 7 On the Desktop, right-click My Computer and select Properties. MacOSJAVA_HOME - There is a workaround, which makes it appear to me as though bazel is just having some issue verifying the JDK pointed to by the environment variable: The text was updated successfully, but these errors were encountered: @susinmotion looks like this is about core bazel config, not sure it belongs here? I am also facing the same issue.Please suggest the possible solution. You need to do the following to set JAVA_HOME: Search for Advanced System Settings and launch it: Go to Environment Variables: Press " New " button in " System variables " section: Type name " JAVA_HOME " and value - your path to Java, in my case, it's C:\Program Files\Java\jre-9.0.4 and press " OK ". The /usr/libexec/java_home tool in macOS will give you the location of the latest Java version installed. Save the file by tapping on ESC button on the keyboard and then :wq. 41 more Here is the solution for the Java issue after upgrading to Big Sur. THIS is the answer, not all the other stuff above. For Mac OSX - it is /Library/Java/Home; Set JAVA_HOME using this command in Terminal: export JAVA_HOME=/Library/Java/Home This includes if JAVA_HOME is set to an empty string (which is why I was a bit confused before). Is /usr/libexec/java_home working on Big Sur for anyone? $JAVA_HOME and Mac OS X 10.5 Leopard Setting up JAVA_HOME and the IDE on MAC OS - Scaler Zeeshan is a detail oriented software engineer that helps companies and individuals make their lives and easier with software solutions. The above command in macOS 11.0.1 returns only the latest Java version. Where have I gone wrong? at com.sun.enterprise.connectors.inbound.ConnectorMessageBeanClient.getActiveResourceAdapter(ConnectorMessageBeanClient.java:315) To subscribe to this RSS feed, copy and paste this URL into your RSS reader. I can't use Oracle Forms Java isn't recognizing the jnlp filetype. at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:403) Again, a typical example is permission to use the microphone. Thanks for contributing an answer to Stack Overflow! Caused by: javax.resource.spi.ResourceAdapterInternalException: MQJMSRA_RA4001: start:Aborting:Exception starting LOCAL broker=MQJMSRA_LB4001: start:Aborted:Unable to ping Broker within 60000 millis (startTimeOut) I hope it is me that has not grasped how to instruct Java to pose such permission to Big Sur, but I fear not, and then how do we fix this? Using macOS 10.14.5 (18F132) and setting JDK version. If you are using the latest versions of macOS, then you cannot use ~/.bash_profile to export your environment variable since the bash shell is deprecated in the latest version of macOS. brew install cask adoptopenjdk Java 1.6 is installed in /Library/Java/JavaVirtualMachines/ next to the other java/jdk installations I have on my machine. /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home 3. This command will tell you what version of Java your Mac is currently running. at org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:484) -: you will get your .bash_profile now you need to add the path Click Close. Your email address will not be published. Hope it helps someone else stuck in a similar rabbit hole. Adding to Dilips's answer, if you are working with JDK 9, use the following (my JDK version is 9.0.4) in Step # 3: actually, the answer is not that complicated! at com.sun.messaging.jms.blc.LifecycleManagedBroker.start(LifecycleManagedBroker.java:436) Worked for MAC Catalina solve..! Once suspended, pablohs1986 will not be able to comment or publish posts until their suspension is removed. Mac OS automatically executes .bash_profile on every terminal session.Are you still facing the issue ? How to set JAVA_HOME environment variable on macOS? How can I use it? I have posted a step by step instruction on how to install and configure OpenJDK 15 for macOS Big Sur, maybe you find this helpful! To my surprise,. Actually, a lot happened. If JAVA_HOME is completely unset, then it is possible to get useful output from /usr/lib/java_home. For instance, to print the most recent Java version installed on your Mac, open the terminal window and enter the following command. at com.sun.enterprise.connectors.ConnectorRuntime.loadDeferredResourceAdapter(ConnectorRuntime.java:1331) Then, extract it and delete the archive: sudo mv openjdk-15..1_osx-x64_bin.tar.gz /Library/Java/JavaVirtualMachines/ cd /Library/Java/JavaVirtualMachines/ Almost done. I faced the same issue , after the Big Sur upgrade. I posted my previous comment on April 20th. In the terminal window type, immediately apply changes to the .profile file. We strongly support Gender Equality & Diversity - #BlackLivesMatters, Follow Us: GitHub | Facebook | Twitter | Instagramif(typeof ez_ad_units != 'undefined'){ez_ad_units.push([[970,90],'code2care_org-medrectangle-1','ezslot_6',684,'0','0'])};__ez_fad_position('div-gpt-ad-code2care_org-medrectangle-1-0');report this ad, Last Updated: 16 Nov 2020 09:32 GMT | User: @c2cDev, How to change default macOS Terminal Window size, Find Hostname of Mac running on macOS Ventura 13, Installing MongoDB on Linux/Unix/macOS/Ubuntu, How to switch from bash to zsh shell in macOS Terminal, How to Set Background Wallpaper on macOS 13 Ventura, This operation couldnt be completed. To this day (11/17/2020), we still have no solution for NetBeans. Check if a Key exists in a Python dictionary, Setter-based Dependency Injection in Spring, Constructor vs Field Dependency Injection in Spring, Start Spring Boot App on a Random Port Number, Many-to-Many Relationship in Spring Boot Rest + JPA, Field-based Dependency Injection in Spring. So what is the solution to run Oracle thin forms? I don't quite remember where they were set, but they are now gone. What sort of strategies would a medieval military use against a fantasy giant? But upon trying to access the path, it wasn't something that was present indeed. The above commands will establish the JAVA_HOME environment variable for a single user. To view the purposes they believe they have legitimate interest for, or to object to this data processing use the vendor list link below. All postings and use of the content on this site are subject to the, Additional information about Search by keywords or tags, Apple Developer Forums Participation Agreement, 15.0.1 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 15" /Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home, 11.0.9 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 11" /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home, 11.0.8 (x86_64) "GraalVM Community" - "GraalVM CE 20.2.0" /Library/Java/JavaVirtualMachines/graalvm-ce-java11-20.2.0/Contents/Home, 1.8.0_275 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 8" /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home, /Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home, /Library/Java/JavaVirtualMachines/graalvm-ce-java11-20.2.0/Contents/Home, export JAVA_HOME=$(/usr/libexec/java_home -v "11.0.8"), #alias setJDK7='unset JAVA_HOME;export JAVA_HOME=`/usr/libexec/java_home -v 1.7`', alias setJDK8='unset JAVA_HOME;export JAVA_HOME=`/usr/libexec/java_home -v 1.8`', alias setJDK11='unset JAVA_HOME;export JAVA_HOME=`/usr/libexec/java_home -v 11`', 15 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 15" /Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home, 13.0.1 (x86_64) "Oracle Corporation" - "Java SE 13.0.1" /Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home, 11.0.5 (x86_64) "Oracle Corporation" - "Java SE 11.0.5" /Library/Java/JavaVirtualMachines/jdk-11.0.5.jdk/Contents/Home, 1.8.271.09 (x86_64) "Oracle Corporation" - "Java" /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home, 1.8.0_271 (x86_64) "Oracle Corporation" - "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home, unset JAVA_HOME ; /usr/libexec/java_home -v 1.8, 15.0.1 (x86_64) "UNDEFINED" - "OpenJDK 15.0.1" /usr/local/Cellar/openjdk/15.0.1/libexec/openjdk.jdk/Contents/Home, 1.8.191.12 (x86_64) "Oracle Corporation" - "Java" /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home, 1.8.0_275 (x86_64) "Amazon" - "Amazon Corretto 8" /Users/hellothere/Library/Java/JavaVirtualMachines/corretto-1.8.0_275/Contents/Home, 1.8.0_272 (x86_64) "Amazon" - "Amazon Corretto 8" /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home, /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home, sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin, sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane, # Simple function allowing you to easyly switch version of java, removeFromPath '/System/Library/Frameworks/JavaVM.framework/Home/bin', export JAVA_HOME=`/usr/libexec/java_home -v $@`, export PATH=$(echo $PATH | sed -E -e "s;:$1;;" -e "s;$1:? Thank you for your blog Wolf. To make sure it worked run echo $JAVA_HOME and make sure it returns the path you set, to set JAVA_HOME permenantly in mac make sure you have JDK installed in your system, Select macOS and x64 and download the JDK (about 190 MB), which will put the OpenJDK11U-jdk_x64_mac_hotspot_11..9_11.pkg file into your ~/Downloads folder Clicking on the pkg file will install into this location: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk Almost done. Unable to launch uiautomatorviewer in mac os Big Sur Check you have the needed version of Java, by typing "java -version". How to set Java Home environment variable on Mac OS X Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, . Experience Mac to the fullest with a refined new design. com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Failed to start resource adapter : java.security.PrivilegedActionException: javax.resource.spi.ResourceAdapterInternalException: MQJMSRA_RA4001: start:Aborting:Exception starting LOCAL broker=MQJMSRA_LB4001: start:Aborted:Unable to ping Broker within 60000 millis (startTimeOut) Add and Validate Custom Claims. The quotes were recommended in random places on internet. ~/.bash_profile is not a default file; most won't have it, so you can't just start editing it. I've tried what you tell me, but the NetBeans installer still doesn't recognize that I have no JDK installed. at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:99) and you should be good. Installing Java on macOS 11 Big Sur - Wolf Paulus This worked for me RenukaRaut 1 year ago me too. at com.sun.enterprise.connectors.ActiveOutboundResourceAdapter.init(ActiveOutboundResourceAdapter.java:135) If anyone has any solution please do help. Setting the java version on BigSur macOS 11 changed compare to setting the java version on earlier macOS versions. Your email address will not be published. Thanks a lot! at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:108) It sets the JAVA_HOME for current session. The JAVA_HOME environment variable indicates the JDK or JRE installation location. But here in this article, we will discuss how the JAVA_HOME environment variable can be set on macOS. Fix default java version on Maven on Mac OS X Recently installed Java10 to see whats new and fun about it. How to Install Java OpenJDK 15 on macOS Big Sur Java SE Development Kit 8u281. at com.sun.enterprise.connectors.service.ConnectorService.loadDeferredResourceAdapter(ConnectorService.java:184) The new method of defining the JAVA_HOME environment variable enables us to dynamically recognize and employ the Java version currently installed on a system and if many Java versions are installed, to switch between them. Seems like a bug to me. How to install Java JDK on macOS - Mkyong.com After upgrading to macOS Big Sur v11.0.1, my JAVA_HOME setting stopped working, always reporting the same java version: Seems in macOS Big Sur v11.0.1 the behavior of the /usr/libexec/java_home -v command has changed: it is sensitive to the previously set value of JAVA_HOME environment variable. Set JAVA_HOME as the Variable name and the path to the JDK installation as the Variable value and click OK. Click OK and click Apply to apply the changes. I resolved the problem I had with JAVA_HOME setting the variable by myself The following examples demonstrate executing three different versions of the java. Click I to insert text and use the following text to set JAVA_HOME and PATH, Try this link Well occasionally send you account related emails. To be precise, say if you have installed Java in the path C:\Program Files\Java\jdk1.8.0_121 on your computer, then your Java_Home is C:\Program Files\Java\jdk1.8.0_121. Powered by WordPress and Themelia. 3 Ways to Check Java Version on a Mac - wikiHow This will open your Mac's Terminal. to suit your need and your system. Once unpublished, all posts by pablohs1986 will become hidden and only accessible to themselves. Most upvoted and relevant comments will be first, Software Developer | Under the Advanced tab, click Environment Variables. Find out the jenv will set the $JAVA_HOME a short version like "/Users/*****/.jenv/versions/1.8". 3.1) If you want to set the path only for the current session then execute this command in your terminal export JAVA_HOME=/Library/Java, 3.2) If you want it to persist, you will have to add the command to your ~/.bash_profile file. What sort of strategies would a medieval military use against a fantasy giant? They don't recognize the JDK. The installation application displays the Welcome window. Therefore, I tried unsetting the JAVA_HOME variable using the above command and removed all the other two variable values except for v jdk 11 That resolved the long running issue I had run into, after upgrading to MacOS BigSur. Bazel fails to recognize valid $JAVA_HOME on macOS Big Sur. rev2023.3.3.43278. To set JAVA_HOME using the /etc/profile, here is what you will insert into the file: To load the variable, execute the source command. The difference between the phonemes /p/ and /b/ in Japanese, Equation alignment in aligned environment not working properly. macOS: JAVA_HOME environment Setup | by Leo N | Medium 500 Apologies, but something went wrong on our end. at java.util.TimerThread.mainLoop(Timer.java:555) Double-click Terminal . JAVA_HOME is essentially the full path of the directory that contains a sub-directory named bin which in turn contains the java. 2021-04-11-how-to-set-java-home-in-mac-permanently, In the window that appears, go to the Overview tab if it's not already open. How can I verify user and password using Python ldap3 via OpenLdap? For larger Mac deployments, the release of the new (and free) operating system is likely to be a little more challenging than is customary, given so many are now working from home using Macs. For Mac OSX: Library/Java/Home. MacJAVA_HOME. But, if the app request an input device NOT currently set as default input, then this is rejected by Big Sur, and there is no audio stream sent to the java App. But most of it is in 2.7 and anything that is using 3.2 is not letting me print it or add it to a string. Reading application.properties in Spring Boot, Convert Java into JSON and JSON into Java. The same is working with JDK 11 as well. However /usr/libexec/java_home does not find Java 11 (tested with AdoptOpenJDK 11, installed with homebrew). What is the purpose of this D-shaped ring at the base of the tongue on my hiking boots? Terminal % brew tap adoptopenjdk/openjdk http://www.mkyong.com/java/how-to-set-java_home-environment-variable-on-mac-os-x/, This explains correctly, I did the following to make it work. As you type, search results will filter below the search bar. Java, Java1.8, Java11, Java14, Java15, Mac, Technology How to set Java path and JAVA_HOME in Windows 10 - Java Programming Basically, JAVA_Home is . An example of data being processed may be a unique identifier stored in a cookie. Reinstall has no effect. I'm not sure if this would be considered a bug with the homebrew bazel formula or WAI (also not sure if that is managed by the bazel team or homebrew team), but my issue is resolved by just using the non-homebrew installation. Searching the internet there are more people affected, although there is no clear solution. I am running macOS Big Sur, Version 11.0.1 Posted 2 years ago by mike13k 0 Thank you! How can we prove that the supernatural or paranormal doesn't exist? Updated on Nov 17, 2020. Class JavaLaunchHelper is implemented in two places, Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools). For the Nozomi from Shinagawa to Osaka, say on a Saturday afternoon, would tickets/seats typically be available - or would you need to book? Save my name, email, and website in this browser for the next time I comment. I have already tried to set the JAVA_HOME variable, I have reinstalled and even formatted and done a clean installation of OS and programs but without success. OpenJDK Runtime Environment (build 15.0.2+7) Download and install Java JDK to your Mac. @paradocslover renaming bash_profile to zshrc (I have created bash_profile in the first place) saved my life. My code is GPL licensed, can I issue a license to have my code be distributed in a specific MIT licensed project? How to set the Java version on Mac OS X (macOS) systems