Return to site

Mac For Java Developer

broken image


JAVAHOME is just a convention. I bought the Mac Book to use it as developer machine on the go and one of my initial surprises was the missing of some keys a developer/terminal user uses. Yes, if you're a developer or if you're looking to code, then this is a must-have tool. It contains an extensive collection of plugins and supports many programming languages. Eclipse IDE for Java EE Developers for Mac. Visual Studio 2019 for Mac. Develop apps and games for iOS, Android and using.NET. Download Visual Studio for Mac. Create and deploy scalable, performant apps using.NET and C# on the Mac. Java SE Development Kit 8 Downloads. Thank you for downloading this release of the Java™ Platform, Standard Edition Development Kit (JDK™). The JDK is a development environment for building applications, applets, and components using the Java programming language. Open a Mac app from an unidentified developer. If you try to open an app that isn't registered with Apple by an identified developer, you get a warning dialog. This doesn't necessarily mean that something's wrong with the app. For example, some apps were written before developer ID registration began.

  1. Eclipse For Java Developers
  2. Mac For Java Developer Jdk
  3. Mac Java Developer Kit
  4. Mac For Java Developer Tutorial

In this tutorial, I am going to share with you how to set the JAVA_HOME environment variable on a new MAC. 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.

Starting from Mac OS 10.5 there is a very convenient command that we can use to identify the installed Java version. For example, open the terminal window on your Mac and type the following command to print out the top Java version installed on your Mac

If you have more than one version installed and you want to see all of the versions available, then run the following command in the terminal window.

To print the current Java version installed, simply use

Set JAVA_HOME Environment Variable

To set the JAVA_HOME environment variable for a current user you will need to update the ~/.profile file. I will use the vi text editor on Mac but you can use the text editor of your choice.

  1. Open the terminal windows and type:

    This will open the .profile file for editing.

  2. Add the following line

    The /usr/libexec/java_home will return the current version of Java installed on the Mac computer.

  3. Save the file by tapping on ESC button on the keyboard and then :wq. This will save the file and will quite.
  4. In the terminal window type

    to apply changes to the .profile file right away.

  5. In the terminal window type

    This will print out the current Java version installed on your Mac computer.

Java
For

Switch Between Java Versions

If you have more than one Java version installed on your computer and you need to switch to using a different version, you can do so by adding the -v flag.

Let's have a look at a short example.

To learn what Java versions I have installed on my Mac computer I will type the following in the terminal window:

this will return

Which tells that there are two Java versions installed and the top version is 'jdk-13.0.1.jdk'.

To set a specific Java version I will need to:

  1. In the terminal window type

    To open the .profile file for editing.

  2. Add Java version I want to set. Like so:

    or if I wanted to set Java version 13, I would do it this way

  3. Save the file by tapping on ESC button on your keyboard and then :wq. This will save the file and will quite.
  4. Apply changes by typing

Now if you check Java version by typing

It should print the current Java version set in JAVA_HOME.

I hope this tutorial was helpful to you.

Eclipse For Java Developers

Related Posts:

Powered by Contextual Related Posts

Package Description

The essential tools for any Java developer, including a Java IDE, a CVS client, Git client, XML Editor, Mylyn, Maven integration and WindowBuilder

This package includes:

  • Eclipse Git Team Provider
  • Eclipse Java Development Tools
  • Maven Integration for Eclipse
  • Mylyn Task List
  • Code Recommenders Tools for Java Developers
  • WindowBuilder Core
  • Eclipse XML Editors and Tools
  • org.eclipse.cvs
  • org.eclipse.egit
  • org.eclipse.egit.import
  • org.eclipse.egit.mylyn
  • org.eclipse.epp.package.common.feature
  • org.eclipse.equinox.p2.user.ui
  • org.eclipse.help
  • org.eclipse.jdt
  • org.eclipse.jgit
  • org.eclipse.m2e.feature
  • org.eclipse.m2e.logback.feature
  • org.eclipse.mylyn.bugzilla_feature
  • org.eclipse.mylyn.context_feature
  • org.eclipse.mylyn.cvs
  • org.eclipse.mylyn_feature
  • org.eclipse.mylyn.git
  • org.eclipse.mylyn.hudson
  • org.eclipse.mylyn.ide_feature
  • org.eclipse.mylyn.java_feature
  • org.eclipse.mylyn.wikitext_feature
  • org.eclipse.platform
  • org.eclipse.rcp
  • org.eclipse.recommenders.rcp.feature
  • org.eclipse.wb.core.feature
  • org.eclipse.wb.core.ui.feature
  • org.eclipse.wb.layout.group.feature
  • org.eclipse.wb.swing.feature
  • org.eclipse.wst.xml_ui.feature

Maintained by: Eclipse Mylyn Project

Windows 32-bit
Windows 64-bit
Mac OS X (Cocoa) 32-bit
Mac OS X (Cocoa) 64-bit
Linux 32-bit
Linux x86-64
Mac
Mac

Windows 32-bit: MD5 - SHA1 - SHA512
Windows 64-bit: MD5 - SHA1 - SHA512
Mac OS X (Cocoa) 32-bit: MD5 - SHA1 - SHA512
Mac OS X (Cocoa) 64-bit: MD5 - SHA1 - SHA512
Linux 32-bit: MD5 - SHA1 - SHA512
Linux 64-bit: MD5 - SHA1 - SHA512

Bugzilla

Mac For Java Developer Jdk

Bug IDTitleStatus
516739Add WindowBuilder to Java package againNEW
513809[wiring] HttpComponents wiring issueNEW
509799Symantec reports a Trojan SONAR.AM.C!g24 in eclipseNEW
508091Duplicate options in Eclipse.iniNEW
521514Add 'Eclipse News' RSS feed to Java PackageNEW
522649News feed plugin not installed on upgrade installsNEW
536469Use png with transparent icon in the about dialog of Java EPP (and others if applicable)NEW
530698Using weka apiNEW
526611win64 version missingNEW
498457FileNotFoundException : org.eclipse.ui_3.108.0.v20160518-1929.jarNEW
489296Improve out-of-box experience for non-english localesNEW
386806New Eclipse Icon not used by Eclipse 4.2 on Windows 7NEW
374170bugs when updating softwareNEW
364551setup automated tests for Java EPP packageNEW
414381Failed to load the JNI shared library 'C:ogramFilesJavajre6binclientjvm.dll'NEW
458646Problème démarrage EclipseNEW
355002EPP packages need stylingNEW
473585Help system broken after updating from Luna to MarsNEW
487713FileNotFoundException: introData.xmlNEW
382232Add 'EGit Import' to EPP package with EGitASSIGNED
487722Dead link for 'Remote Help': Topic not foundREOPENED

Bugs listed in italics indicate the bug has been moved to another project.


Bug IDTitleStatus
382804Ctrl+C, Ctrl+V shortcuts don't work while editing Android XMLRESOLVED
492163Add Maven to java packageRESOLVED
383193Taskbar icon doesn't show Android build progressRESOLVED
490044[Welcome] Adopt Solstice theme for Java packageRESOLVED
386686the Mobile package should include the Mylyn Bugzilla connectorRESOLVED
365594add code recommenders to java packageRESOLVED
358692Eclipse java package crash in Ubuntu 11.0.4RESOLVED
356126fix Mylyn repository URLs in EPP packages for IndigoRESOLVED
356349update Mylyn URLs for JunoRESOLVED
357020add Mylyn Hudson/Jenkins connector to Java packageRESOLVED
357332Annotations not shown on overview rulerRESOLVED
389113Unable to Launch Eclipse after download and setup: 'The Eclipse executable launcher was unable to locate its companion shared library.'RESOLVED
406246zip compression errorRESOLVED
468598Mars RC1 Mac packages are damagedRESOLVED
535504Open file feature broken in Photon RC2 EPP packagesRESOLVED
474204Include Buildship as part of Java packageRESOLVED
534617[Photon] [java] Add Tip of the Day to the Java PackageRESOLVED
528429m2e to download sources by defaultRESOLVED
194805add Error Log view to Java EPP distributionRESOLVED
432716Consider org.eclipse.recommenders.mylyn.rcp.feature for inclusion into Java packageRESOLVED
483914bugRESOLVED
436206Re-enable Marketplace Client in Java PackageRESOLVED
481475Scroll lock button being disabledRESOLVED
350079EGit should be by included in Java packageRESOLVED
355058update repository locations for JunoRESOLVED
275767[Galileo M7] FileNotFoundException when updating MylynRESOLVED
275719[Galileo M7] packages do not have dropins folderRESOLVED
279203Add and enable Mylyn update site by defaultRESOLVED
281448[update] manager talking to update sites not availableRESOLVED
549138Mylyn cannot be removed from Java IDE packageRESOLVED
275558[Galileo M7] welcome view is not displayed on first startupRESOLVED
275523[Galileo M7] features appear twice in the about dialogRESOLVED
246466Missing/extra update sites when installing in either C:program file or C:RESOLVED
248976'IDE for Java Developers' package is too restrictive by specifying Java 1.5 as requiredRESOLVED
275520[Galileo M7] package does not have any update sitesRESOLVED
275521Improve branding for Galileo java packageRESOLVED
297341EPP web page 'Download Milestone' link points to old buildsRESOLVED
287566error on update after clean installRESOLVED
341705I tried to load the eclipse environment in Win Vista OS and got problems restoring workbench...RESOLVED
343869Add WindowBuilder Core and Swing to the Java packageRESOLVED
346703Inclusion of m2e marketplace on help menu causing confusionRESOLVED
348157intrusive 'preview?' dialog on startup, from WindowBuilderRESOLVED
340312Indigo Java package logs lots of outputRESOLVED
334180package contains duplicate (and modified?) bundlesRESOLVED
313818Bugzilla connector does not load on Java 1.5 due to missing java.xml.bind bundleRESOLVED
306817Cannot update from M5 to Eclipse 3.6 M6RESOLVED
311613java IDE / m6 / linux has an EclispeCon splash screen?RESOLVED
507104Include EclEmma in Java PackageRESOLVED
507515Issue encountered when updating and reinstalling ABAP Development tools on NEON version.CLOSED
532067Open BugsCLOSED
530726Mac OS X(Cocoa)64位下载连接无效CLOSED
515622Eclipse will not runCLOSED
526343Constantly returning error message when opening the programCLOSED
501518Exception while updating external foldersCLOSED
521654Getting error while starting Apache serverCLOSED
529170MacOs didnt open the programCLOSED
548444The Java GUI is too bigCLOSED
497204resource in project, but error says not openCLOSED
547604Can't Install softwareCLOSED
548562I am not able to update because of unfound repositories.CLOSED
550404sgfghgCLOSED
551635I can't run eclipse without having a bug on it.CLOSED
5434642018-12 Installation ErrorCLOSED
543054Eclipse crashing while looking at filesCLOSED
540168java 11CLOSED
539041Unable to InstallCLOSED
541760Missing Java Developer links for 2018-12 M3CLOSED
542080Problems occurred when invoking code from plug-in: 'org.eclipse.ui.views.properties.tabbed'.CLOSED
543011java.io.FileWriter, the File cannot be deletedCLOSED
534760Simple compilation fails in Eclipse Oxygen.3aCLOSED
457081Add Error Reporting to Java PackageCLOSED
435919Add 'Eclipse Code Recommenders' to 'This package includes' listCLOSED
435449Add org.eclipse.recommenders.snipmatch.rcp.feature to java-packageCLOSED
436109update java package maintainer informationCLOSED
455363Allow users to uninstall features from a packageCLOSED
461540Unarchiving errorCLOSED
414385the eclipsec executable launcher was unable to locate its companion shared libraryCLOSED
384532The Eclipse executable launcher was unable to locate its companion shared libraryCLOSED
330226Inclusion of m2eCLOSED
304968LinkageError when trying to use Eclipse to run (PDE) Ant scriptsCLOSED
349028fix provider name for org.eclipse.wb.discovery.*CLOSED
353613Add EGit 1.1 to java-packageCLOSED
381216Zip file for Java IDE RC1 package requires a password?CLOSED
464220BugCLOSED
470912p2 can't find epp repo for Mars releaseCLOSED
482370thanksCLOSED
482285Mars.1 splash screen does not show progress bar after using consoleCLOSED
484535An error removing AppEngine from the projectCLOSED
494695Didn't update from old versionCLOSED
495806Suboptimal 'Visit' link on About Eclipse Features pageCLOSED
480756Switch to root level features to allow users to remove unwanted featuresCLOSED
478619WebappCLOSED
476546Eclipse Mars.1 RC2 for Java Developers includes CVS cheat sheets but no CVS supportCLOSED
476553Installed Code Recommenders Snipmatch and Mylyn Integration features do not *show* under Installation DetailsCLOSED
477195Maintainer/tester information outdatedCLOSED
477572pCLOSED
497192Eclipse Mars does not open in Windows 10 ProCLOSED

Bugs listed in italics indicate the bug has been moved to another project.


File a Bug on this Package

Mac Java Developer Kit


For

Switch Between Java Versions

If you have more than one Java version installed on your computer and you need to switch to using a different version, you can do so by adding the -v flag.

Let's have a look at a short example.

To learn what Java versions I have installed on my Mac computer I will type the following in the terminal window:

this will return

Which tells that there are two Java versions installed and the top version is 'jdk-13.0.1.jdk'.

To set a specific Java version I will need to:

  1. In the terminal window type

    To open the .profile file for editing.

  2. Add Java version I want to set. Like so:

    or if I wanted to set Java version 13, I would do it this way

  3. Save the file by tapping on ESC button on your keyboard and then :wq. This will save the file and will quite.
  4. Apply changes by typing

Now if you check Java version by typing

It should print the current Java version set in JAVA_HOME.

I hope this tutorial was helpful to you.

Eclipse For Java Developers

Related Posts:

Powered by Contextual Related Posts

Package Description

The essential tools for any Java developer, including a Java IDE, a CVS client, Git client, XML Editor, Mylyn, Maven integration and WindowBuilder

This package includes:

  • Eclipse Git Team Provider
  • Eclipse Java Development Tools
  • Maven Integration for Eclipse
  • Mylyn Task List
  • Code Recommenders Tools for Java Developers
  • WindowBuilder Core
  • Eclipse XML Editors and Tools
  • org.eclipse.cvs
  • org.eclipse.egit
  • org.eclipse.egit.import
  • org.eclipse.egit.mylyn
  • org.eclipse.epp.package.common.feature
  • org.eclipse.equinox.p2.user.ui
  • org.eclipse.help
  • org.eclipse.jdt
  • org.eclipse.jgit
  • org.eclipse.m2e.feature
  • org.eclipse.m2e.logback.feature
  • org.eclipse.mylyn.bugzilla_feature
  • org.eclipse.mylyn.context_feature
  • org.eclipse.mylyn.cvs
  • org.eclipse.mylyn_feature
  • org.eclipse.mylyn.git
  • org.eclipse.mylyn.hudson
  • org.eclipse.mylyn.ide_feature
  • org.eclipse.mylyn.java_feature
  • org.eclipse.mylyn.wikitext_feature
  • org.eclipse.platform
  • org.eclipse.rcp
  • org.eclipse.recommenders.rcp.feature
  • org.eclipse.wb.core.feature
  • org.eclipse.wb.core.ui.feature
  • org.eclipse.wb.layout.group.feature
  • org.eclipse.wb.swing.feature
  • org.eclipse.wst.xml_ui.feature

Maintained by: Eclipse Mylyn Project

Windows 32-bit
Windows 64-bit
Mac OS X (Cocoa) 32-bit
Mac OS X (Cocoa) 64-bit
Linux 32-bit
Linux x86-64

Windows 32-bit: MD5 - SHA1 - SHA512
Windows 64-bit: MD5 - SHA1 - SHA512
Mac OS X (Cocoa) 32-bit: MD5 - SHA1 - SHA512
Mac OS X (Cocoa) 64-bit: MD5 - SHA1 - SHA512
Linux 32-bit: MD5 - SHA1 - SHA512
Linux 64-bit: MD5 - SHA1 - SHA512

Bugzilla

Mac For Java Developer Jdk

Bug IDTitleStatus
516739Add WindowBuilder to Java package againNEW
513809[wiring] HttpComponents wiring issueNEW
509799Symantec reports a Trojan SONAR.AM.C!g24 in eclipseNEW
508091Duplicate options in Eclipse.iniNEW
521514Add 'Eclipse News' RSS feed to Java PackageNEW
522649News feed plugin not installed on upgrade installsNEW
536469Use png with transparent icon in the about dialog of Java EPP (and others if applicable)NEW
530698Using weka apiNEW
526611win64 version missingNEW
498457FileNotFoundException : org.eclipse.ui_3.108.0.v20160518-1929.jarNEW
489296Improve out-of-box experience for non-english localesNEW
386806New Eclipse Icon not used by Eclipse 4.2 on Windows 7NEW
374170bugs when updating softwareNEW
364551setup automated tests for Java EPP packageNEW
414381Failed to load the JNI shared library 'C:ogramFilesJavajre6binclientjvm.dll'NEW
458646Problème démarrage EclipseNEW
355002EPP packages need stylingNEW
473585Help system broken after updating from Luna to MarsNEW
487713FileNotFoundException: introData.xmlNEW
382232Add 'EGit Import' to EPP package with EGitASSIGNED
487722Dead link for 'Remote Help': Topic not foundREOPENED

Bugs listed in italics indicate the bug has been moved to another project.


Bug IDTitleStatus
382804Ctrl+C, Ctrl+V shortcuts don't work while editing Android XMLRESOLVED
492163Add Maven to java packageRESOLVED
383193Taskbar icon doesn't show Android build progressRESOLVED
490044[Welcome] Adopt Solstice theme for Java packageRESOLVED
386686the Mobile package should include the Mylyn Bugzilla connectorRESOLVED
365594add code recommenders to java packageRESOLVED
358692Eclipse java package crash in Ubuntu 11.0.4RESOLVED
356126fix Mylyn repository URLs in EPP packages for IndigoRESOLVED
356349update Mylyn URLs for JunoRESOLVED
357020add Mylyn Hudson/Jenkins connector to Java packageRESOLVED
357332Annotations not shown on overview rulerRESOLVED
389113Unable to Launch Eclipse after download and setup: 'The Eclipse executable launcher was unable to locate its companion shared library.'RESOLVED
406246zip compression errorRESOLVED
468598Mars RC1 Mac packages are damagedRESOLVED
535504Open file feature broken in Photon RC2 EPP packagesRESOLVED
474204Include Buildship as part of Java packageRESOLVED
534617[Photon] [java] Add Tip of the Day to the Java PackageRESOLVED
528429m2e to download sources by defaultRESOLVED
194805add Error Log view to Java EPP distributionRESOLVED
432716Consider org.eclipse.recommenders.mylyn.rcp.feature for inclusion into Java packageRESOLVED
483914bugRESOLVED
436206Re-enable Marketplace Client in Java PackageRESOLVED
481475Scroll lock button being disabledRESOLVED
350079EGit should be by included in Java packageRESOLVED
355058update repository locations for JunoRESOLVED
275767[Galileo M7] FileNotFoundException when updating MylynRESOLVED
275719[Galileo M7] packages do not have dropins folderRESOLVED
279203Add and enable Mylyn update site by defaultRESOLVED
281448[update] manager talking to update sites not availableRESOLVED
549138Mylyn cannot be removed from Java IDE packageRESOLVED
275558[Galileo M7] welcome view is not displayed on first startupRESOLVED
275523[Galileo M7] features appear twice in the about dialogRESOLVED
246466Missing/extra update sites when installing in either C:program file or C:RESOLVED
248976'IDE for Java Developers' package is too restrictive by specifying Java 1.5 as requiredRESOLVED
275520[Galileo M7] package does not have any update sitesRESOLVED
275521Improve branding for Galileo java packageRESOLVED
297341EPP web page 'Download Milestone' link points to old buildsRESOLVED
287566error on update after clean installRESOLVED
341705I tried to load the eclipse environment in Win Vista OS and got problems restoring workbench...RESOLVED
343869Add WindowBuilder Core and Swing to the Java packageRESOLVED
346703Inclusion of m2e marketplace on help menu causing confusionRESOLVED
348157intrusive 'preview?' dialog on startup, from WindowBuilderRESOLVED
340312Indigo Java package logs lots of outputRESOLVED
334180package contains duplicate (and modified?) bundlesRESOLVED
313818Bugzilla connector does not load on Java 1.5 due to missing java.xml.bind bundleRESOLVED
306817Cannot update from M5 to Eclipse 3.6 M6RESOLVED
311613java IDE / m6 / linux has an EclispeCon splash screen?RESOLVED
507104Include EclEmma in Java PackageRESOLVED
507515Issue encountered when updating and reinstalling ABAP Development tools on NEON version.CLOSED
532067Open BugsCLOSED
530726Mac OS X(Cocoa)64位下载连接无效CLOSED
515622Eclipse will not runCLOSED
526343Constantly returning error message when opening the programCLOSED
501518Exception while updating external foldersCLOSED
521654Getting error while starting Apache serverCLOSED
529170MacOs didnt open the programCLOSED
548444The Java GUI is too bigCLOSED
497204resource in project, but error says not openCLOSED
547604Can't Install softwareCLOSED
548562I am not able to update because of unfound repositories.CLOSED
550404sgfghgCLOSED
551635I can't run eclipse without having a bug on it.CLOSED
5434642018-12 Installation ErrorCLOSED
543054Eclipse crashing while looking at filesCLOSED
540168java 11CLOSED
539041Unable to InstallCLOSED
541760Missing Java Developer links for 2018-12 M3CLOSED
542080Problems occurred when invoking code from plug-in: 'org.eclipse.ui.views.properties.tabbed'.CLOSED
543011java.io.FileWriter, the File cannot be deletedCLOSED
534760Simple compilation fails in Eclipse Oxygen.3aCLOSED
457081Add Error Reporting to Java PackageCLOSED
435919Add 'Eclipse Code Recommenders' to 'This package includes' listCLOSED
435449Add org.eclipse.recommenders.snipmatch.rcp.feature to java-packageCLOSED
436109update java package maintainer informationCLOSED
455363Allow users to uninstall features from a packageCLOSED
461540Unarchiving errorCLOSED
414385the eclipsec executable launcher was unable to locate its companion shared libraryCLOSED
384532The Eclipse executable launcher was unable to locate its companion shared libraryCLOSED
330226Inclusion of m2eCLOSED
304968LinkageError when trying to use Eclipse to run (PDE) Ant scriptsCLOSED
349028fix provider name for org.eclipse.wb.discovery.*CLOSED
353613Add EGit 1.1 to java-packageCLOSED
381216Zip file for Java IDE RC1 package requires a password?CLOSED
464220BugCLOSED
470912p2 can't find epp repo for Mars releaseCLOSED
482370thanksCLOSED
482285Mars.1 splash screen does not show progress bar after using consoleCLOSED
484535An error removing AppEngine from the projectCLOSED
494695Didn't update from old versionCLOSED
495806Suboptimal 'Visit' link on About Eclipse Features pageCLOSED
480756Switch to root level features to allow users to remove unwanted featuresCLOSED
478619WebappCLOSED
476546Eclipse Mars.1 RC2 for Java Developers includes CVS cheat sheets but no CVS supportCLOSED
476553Installed Code Recommenders Snipmatch and Mylyn Integration features do not *show* under Installation DetailsCLOSED
477195Maintainer/tester information outdatedCLOSED
477572pCLOSED
497192Eclipse Mars does not open in Windows 10 ProCLOSED

Bugs listed in italics indicate the bug has been moved to another project.


File a Bug on this Package

Mac Java Developer Kit


New and Noteworthy

Eclipse Platform
Eclipse Mylyn
EGit
Eclipse Code Recommenders

Mac For Java Developer Tutorial


Testing Details





broken image