Posts

How to solve the java home showing as /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home in MacOS Big Sur?

If we install the Java in MacOs Big Sur after downloading the JDK from Oracle, i am unable to compile the java program using javac.   Install JDK 8:  https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html          Java SE Development Kit 8u281 When i check the java -version , it is showing as below  java version "1.8.0_311" Java(TM) SE Runtime Environment (build 1.8.0_311-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.311-b11, mixed mode) After that when i check the java home using  /usr/libexec/java_home -V  it is the showing it as  /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home Solution: Use the below commands to remove the folder sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin  sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane Then use this to check the java home /usr/libexec/java_home -V  jayabalan@Saravanakumars-MacBook-Air ~ % /usr/libexec/java_ho...

How to run Powershell script on mac?

Image
                 We need to install the stable version of power shell on mac using the below steps and run the script in terminal Installation of latest stable release via Homebrew on macOS 10.13 or higher There are several ways to install PowerShell on macOS. Choose one of the following methods: Install using  Homebrew . Homebrew is the preferred package manager for macOS. Install PowerShell via  Direct Download Install from  binary archives . After installing PowerShell, you should install  OpenSSL . OpenSSL is needed for PowerShell WSMan remoting. If the  brew  command is not found, you need to install Homebrew following  their instructions . Bash /bin/bash -c " $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh) " Now, you can install PowerShell: sh  brew install --cask powershell Finally, verify that your install is working properly: sh  pwsh https://docs.microsoft...