Jan 12, 2020 The Library Folder and Troubleshooting Your Mac The user's Library has long been a go-to location for troubleshooting issues with individual applications or components shared by multiple applications.

  1. Mac Java Library Tutorial
  2. Mac No Ocijdbc12 In Java.library.path

(MAC OS X)
How to Load a Java Native/Shared Library (.jnilib)

  1. Feb 18, 2011  I've tried repeatedly installing jzmq on Mac OS X. Whatever I do, I hit a brick wall with this exception: java.lang.UnsatisfiedLinkError: no jzmq in java.library.path I have successfully installed (pkg-config and) libzmq and libjzmq into.
  2. Aug 15, 2008 On the Mac a dynamic library (dylib) has an 'install name'. The install name is a path baked into the dynamic library that says where to find the library at runtime. When you link against the dylib this path is saved in your binary so that your binary can find the dylib at runtime.

There are several ways to make it possible for the Java runtime to find and load a native shared library (.jnilib) at runtime. I will list them briefly here, followed by examples with more explanation below.

  1. Call System.load to load the .jnilib from an explicitly specified absolute path.
  2. Copy the shared library to one of the paths already listed in java.library.path
  3. Modify the LD_LIBRARY_PATH environment variable to include the directory where the shared library is located.
  4. Specify the java.library.path on the command line by using the -D option.
  5. Put the .jnilib in /Library/Java/Extensions/.

1. Call System.load to load the shared library from an explicitly specified absolute path.

Mac Java Library Tutorial

This choice removes all uncertainty, but embeds a hard-coded path within your Java application. Example:

2. Copy the shared library to one of the paths already listed in java.library.path

To view the paths listed in java.library.path, run this Java code:

Note: The java.library.path is initialized from the LD_LIBRARY_PATH environment variable.

The loadLibrary method may be used when the directory containing the shared library is in java.library.path. To load 'libchilkat.jnilib', call System.loadLibrary('chilkat'), as shown below.

3. Modify the LD_LIBRARY_PATH environment variable to include the path where the Chilkat shared library is located.

For Bourne Shell, K Shell or Bash, type:

For C Shell, type:

4. Specify the java.library.path on the command line by using the -D option.

For example:

Additional Notes:

From developer.apple.com: 'JNI libraries are named with the library name used in the System.loadLibrary() method of your Java code, prefixed by lib and suffixed with .jnilib. For example, System.loadLibrary('hello') loads the library named libhello.jnilib. Java HotSpot also recognizes .dylib as a valid JNI library format as of Mac OS X v10.5.'

See JDK 7 and JRE 7 Installation Guide for general information about installing JDK 7 and JRE 7.

See the Mac OS X Platform Install FAQ for general information about installing JRE 7 on Mac OS X.

Contents

System Requirements

  • Any Intel-based Mac running Mac OS X 10.7.3 (Lion) or later.
  • Administrator privileges.

Note that installing the JRE on a Mac is performed on a system wide basis, for all users, and administrator privileges are required. You cannot install Java for a single user.

Only one JRE can be installed at a time. The system will not install a JRE that has a lower version than the current version. If you wish to install a lower version of the JRE, first uninstall the current version. Installing a JRE from Oracle will not update java -version symlinks or add java to your path. To be able to do this, you need to install the JDK.

JRE 7 Installation Instructions

The JRE installation includes the JavaFX Runtime which is incorporated into the same directory structure.

Installation of the 64-bit JRE on Mac Platforms

Depending on your processor, the downloaded file has one of the following names:

  • jre-7u<version>-macosx-amd64.dmg
  • jre-7u<version>-macosx-x64.dmg

Where <version> is 6 or later.

1. Download the file. Before the file can be downloaded, you must accept the license agreement.

2. From either the Downloads window of the browser, or from the file browser, double click the .dmg file to launch it.

Dec 12, 2016  How to Show /Library Folder in MacOS Mojave, High Sierra, Sierra. From the Mac OS Finder, go to the Users home folder. Pull down the “View” menu and choose “View Options”. Choose “Show Library Folder” in the settings options for the User home folder. Make library visible mac high sierra mac. Dec 13, 2016  So, that was a permanent method to enable the Library folder in the Finder menu on your Mac. The option for accessing the folder should now always be visible in the Finder, and you are just a click away from getting to that folder on your machine. Dec 20, 2018  Options to Show User Library. Click on your Users folder, open it in Column view, and select View Show View Options then check the box for Show Library Folder. If Library isn’t an option, check that you’re in Column View. Select your User folder, and press Command+ J. Dec 27, 2016  How to Make the Library Visible on macOS Sierra. Open the Finder from the Dock, pull down the Go menu and hold down the Shift key. Then you will see the Library option from the drop down list. In a Finder Window, hit Command+Shift+L keys together to jump to the /Library.

3. A Finder window appears containing an icon of an open box and the name of the .pkg file Double click the package icon to launch the Install app. Clear photo library mac app.

4. The Install app displays the Introduction window. Click Continue.

4a. Note that, in some cases, a Destination Select window appears. This is a bug, as there is only one option available. If you see this window, select Install for all users of this computer to enable the continue button. Click Continue.

5. The Installation Type window appears. Click Install.

6. A window appears which says 'Installer is trying to install new software. Type your password to allow this.' Enter the Administrator login and password and click Install Software.

7. The software is installed and a confirmation window appears.

After the software is installed, delete the dmg file if you want to save disk space.

Determining the Installed Version of the JRE

If you have not yet installed Apple's Java Mac OS X 2012-006 update, then you are still using a version of Apple Java 6 that includes the plug-in and the Java Preferences app. See Note for Users of Macs that Include Apple Java 6 Plug-in.

Only one JRE can be installed. Installing a JRE removes the previously installed JRE. The JRE version used by the system can be determined in one of two ways:

  • From System Preferences click the Java icon from the Other category. This launches the Java Control Panel. Click About...

  • Type the following in a Terminal window:

The system will not install a JRE that has a lower version than the current version. If you want to install a lower version, first uninstall the existing version.

Uninstalling the JRE

To uninstall the JRE, you must have Administrator privileges and execute the remove commands either as root or by using the sudo(8) tool.

Remove one directory and one file (a symlink), as follows:

  • Navigate to /Library/Internet Plug-Ins and remove the JavaAppletPlugin.plugin directory.
  • Navigate to /Library/PreferencePanes and remove JavaControlPanel.prefpane.

Do not attempt to uninstall Java by removing the Java tools from /usr/bin. This directory is part of the system software and any changes will be reset by Apple the next time you perform an update of the OS.

Mac No Ocijdbc12 In Java.library.path

Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.