Mac-ios下JDK的安装路径(java)

苹果的Mac系统已经包含了完整的J2SE(Java SE),其中就有JDK和JVM(苹果叫VM),如果要升级JDK,需要自己下载安装。 在Mac系统中,JDK的安装路径与windows不同,默认目录是:/System/Libray/Frameworks/JavaVM.Framwork/。 在这个目录下有个Versions目录,里面有不同版本的JDK。

首先,让我们打开硬盘:Finder-->前往-->电脑-->Macintosh HD




在 ssh 工具中连接查看:


suningdeMac-mini:Frameworks suning$ ls
suningdeMac-mini:Frameworks suning$ ls
AGL.framework				CoreDisplay.framework			Foundation.framework			LatentSemanticMapping.fra
AVFoundation.framework			CoreFoundation.framework		GLKit.framework				LocalAuthentication.frame
AVKit.framework				CoreGraphics.framework			GLUT.framework				MapKit.framework		
Accelerate.framework			CoreImage.framework			GSS.framework				MediaAccessibility.framew
Accounts.framework			CoreLocation.framework			GameController.framework		MediaLibrary.framework		
AddressBook.framework			CoreMIDI.framework			GameKit.framework			MediaToolbox.framework		
AppKit.framework			CoreMIDIServer.framework		GameplayKit.framework			Message.framework		
AppKitScripting.framework		CoreMedia.framework			Hypervisor.framework			Metal.framework			
AppleScriptKit.framework		CoreMediaIO.framework			ICADevices.framework			MetalKit.framework		
AppleScriptObjC.framework		CoreServices.framework			IMCore.framework			ModelIO.framework		
ApplicationServices.framework		CoreTelephony.framework			IMServicePlugIn.framework		MultipeerConnectivity.fra
AudioToolbox.framework			CoreText.framework			IOBluetooth.framework			NetFS.framework			
AudioUnit.framework			CoreVideo.framework			IOBluetoothUI.framework			NetworkExtension.framewor
AudioVideoBridging.framework		CoreWLAN.framework			IOKit.framework				NotificationCenter.framew
Automator.framework			CryptoTokenKit.framework		IOSurface.framework			OSAKit.framework		
CFNetwork.framework			DVComponentGlue.framework		ImageCaptureCore.framework		OpenAL.framework		
CalendarStore.framework			DVDPlayback.framework			ImageIO.framework			OpenCL.framework		
Carbon.framework			DirectoryService.framework		InputMethodKit.framework		OpenDirectory.framework		
CloudKit.framework			DiscRecording.framework			InstallerPlugins.framework		OpenGL.framework		
Cocoa.framework				DiscRecordingUI.framework		InstantMessage.framework		PCSC.framework			
Collaboration.framework			DiskArbitration.framework		Intents.framework			Photos.framework		
Contacts.framework			DrawSprocket.framework			JavaFrameEmbedding.framework		PhotosUI.framework		
ContactsUI.framework			EventKit.framework			JavaScriptCore.framework		PreferencePanes.framework
CoreAudio.framework			ExceptionHandling.framework		JavaVM.framework			PubSub.framework		
CoreAudioKit.framework			FWAUserLib.framework			Kerberos.framework			Python.framework		
CoreBluetooth.framework			FinderSync.framework			Kernel.framework			QTKit.framework			
CoreData.framework			ForceFeedback.framework			LDAP.framework				Quartz.framework	

suningdeMac-mini:Frameworks suning$ cd JavaVM.framework/
suningdeMac-mini: JavaVM.framework suning$ 
suningdeMac-mini:JavaVM.framework suning$ ls
Frameworks JavaVM Resources Versions
suningdeMac-mini:JavaVM.framework suning$ cd Versions/
suningdeMac-mini:Versions suning$ 
suningdeMac-mini:Versions suning$ LS
A Current
suningdeMac-mini:Versions suning$ LS
A Current
suningdeMac-mini:Versions suning$ ls
A Current
suningdeMac-mini:Versions suning$ cd Current
suningdeMac-mini:Current suning$ 
suningdeMac-mini:Current suning$ LS
Commands Frameworks JavaPluginCocoa.bundle JavaVM Resources _CodeSignature
suningdeMac-mini:Current suning$ cd Frameworks/ 
suningdeMac-mini:Frameworks suning$ ls
JavaNativeFoundation.framework JavaRuntimeSupport.framework
suningdeMac-mini:Frameworks suning$ cd ..
suningdeMac-mini:Current suning$ ls
Commands Frameworks JavaPluginCocoa.bundle JavaVM Resources _CodeSignature
suningdeMac-mini:Current suning$ cd JavaVM
-bash: cd: JavaVM: Not a directory
suningdeMac-mini:Current suning$ java version
Unable to find a $JAVA_HOME at "/usr", continuing with system-provided Java...



用户安装的jdk:

  

接上图,bin文件下可以看到java,javac两个执行程序






你可能感兴趣的:(IOS开发)