Note: if you wish to do some Java programming, perhaps using Jim's A.P.I. To process images, then you will need to install the Java Development Kit (JDK), not the Java Runtime Environment (JRE). Download the Jim jim-8-installer.jar installer from this link. When the download is complete, drag the downloaded file onto your Desktop. For Java versions 6 and below, Apple supplies their own version of Java. For Mac OS X 10.6 and below, use the Software Update feature (available on the Apple menu) to check that you have the most up-to-date version of Java 6 for your Mac. Java for OS X is an Apple vetted Java environment, designed to be as highly integrated as possible within its own operating system. Java for OS X has been created to mix OS X's advanced technologies and Java's adaptability and omnipresence on almost all software platforms out there.
When you install the Java Development Kit (JDK), the associated Java Runtime Environment (JRE) is installed at the same time. The JavaFX SDK and Runtime are also installed and integrated into the standard JDK directory structure. Depending on your processor, the downloaded file has one of the following names: jdk-8u version-macosx-amd64.dmg. The Java Runtime Environment (JRE) provides the libraries, the Java Virtual Machine, and other components to run applets and applications written in the Java programming language. In addition, two key deployment technologies are part of the JRE: Java Plug-in, which enables applets to run in popular browsers; and Java Web Start, which deploys.
Newest post on how to install Oracle JDK 8 / Java SE 8 on Mac OS X 10.10 Yosemite can be found here.
Download Java Runtime Environment For Mac 10.10 Free
At the time of this writing, there is no official release of Java SE 7 / Oracle JDK 1.7 on Mac OS X. It is still in developer preview based on Apple’s contributions to OpenJDK. The Developer Preview is provided to the community so that the developers can get feedback on the ongoing progress of the project. The developer preview should work on any Intel-based Mac and has been tested on Mac OS X 10.6.8 (Snow Leopard) and 10.7 (Lion).
UPDATE
Download Java Runtime Environment For Mac 10.10 Full
Oracle has launched the official Java SE 7 for Mac OS X 64-bit platform. You can download it from here.
This tutorial shows you how to install Java SE 7 Developer Preview on Mac OS X 10.7.2 Lion running on my MacBook Pro.
1. Download the Oracle JDK7 Mac OS X port dmg file from here. At the time of this writing, the version of the JDK7 is Oracle JDK7 build b223 released on December 23, 2011. The dmg file name is jdk-7-ea-macosx-b223.dmg
2. Create a JavaVirtualMachines folder under /Library/Java if it doesn’t exist.
In my case, the JavaVirtualMachines is already there so I don’t need to create it manually.
Download Java Runtime Environment For Mac 10.10 Download
3. Open the jdk-7-ea-macosx-b223.dmg file by double-clicking on it. Then drag the JDK 1.7.0 Developer Preview icon in the left side to the JavaVirtualMachines icon folder in the right side.
4. Go to /Library/Java/JavaVirtualMachines directory using Finder application. Then double-click the ‘JDK 1.7.0 Developer Preview’ icon. This will open the Java Preferences window. Here you can change the preferred order of the installed Java platforms by dragging it up or down. Make sure the Java SE 7 is in the preferred order or you can simply deselect the Java SE 6 version.
5. Now issue the ‘java -version’ command in the terminal window to verify.
6. Done
Download Java Runtime Environment For Mac 10.10 Latest
Regression test was added in JDK-8075244, see /test/java/awt/SplashScreen/MultiResolutionSplash/MultiResolutionSplashTest.java | release-note: Area: client-libs/java.awt Synopsis: Mac 10.10: Application run with splash screen has focus issues Applications started through webstart or standalone applications , which use splashscreen, cannot get keyboard focus. Workaround: Launch javaws using the -Xnosplash option. | Review request: http://mail.openjdk.java.net/pipermail/2d-dev/2015-March/005181.html | As a fix I suggest to disable functionality which was added in JDK-8049198 and JDK-8043869. BEcause if I try to revert them back i should change more files Suggested fix: src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m @@ -129,15 +129,11 @@ char* SplashGetScaledImageName(const char* jar, const char* file, float *scaleFactor) { NSAutoreleasePool *pool = [NSAutoreleasePool new]; *scaleFactor = 1; char* scaledFile = nil; - __block float screenScaleFactor = 1; - - [ThreadUtilities performOnMainThreadWaiting:YES block:^(){ - screenScaleFactor = [SplashNSScreen() backingScaleFactor]; - }]; + float screenScaleFactor = 1; if (screenScaleFactor > 1) { NSString *fileName = [NSString stringWithUTF8String: file]; NSUInteger length = [fileName length]; NSRange range = [fileName rangeOfString: @'.' jprt build: http://scaaa637.us.oracle.com/archive/2015/03/2015-03-12-001854.serb.jdk8-gate/bundles/ | The problem occurs after we call NSScreen.backingScaleFactor on a Appkit Thread. NOte that it seems that it was working as expected when the fix was integrated, but now it can hang or have another artifacts. | This is a regression of JDK-8049198. | Also happens with 9 ea builds, which may be easier to debug on Yosemite | I confirmed it happens when running 'java -jar SwingSet2.jar', reassigning to client-libs for further investigation | Splash screen related changes in b15 and b16 are: JDK-8049198 and JDK-8043869 | SwingSet2.jar does not get focus not only when run as jnlp. It also doesn't get focus when run as jar file (double click on jar).When I removed the following line from manifest:SplashScreen-Image: resources/images/splash.pngit works great!So, problem is in splash screen. Without splash screen SwingSet2 demo works when it runs as jar & as jnlp. | Same problem with b17 and above. b13, b14 - OK. WebStart Application gets focus correctly but with same stacktrace. So, problem may be not illustrated by this stacktrace. Problem is introduced in b15 or b16. (Installer for b15 and b16 does not work) | I see the following output in Java Console:Java Web Start 11.40.2.26Using JRE version 1.8.0_40-b26 Java HotSpot(TM) 64-Bit Server VMUser home directory = /Users/gtee----------------------------------------------------c: clear console windowf: finalize objects on finalization queueg: garbage collecth: display this help messagem: print memory usageo: trigger loggingp: reload proxy configurationq: hide consoler: reload policy configurations: dump system and deployment propertiest: dump thread listv: dump thread stack0-5: set trace level to <n>----------------------------------------------------Missing Permissions manifest attribute in main jar: http://download.java.net/javadesktop/swingset3/SwingSet3.jarsession restoration temporarily disabledMar 11, 2015 10:34:06 PM org.jdesktop.application.Task failedSEVERE: org.jdesktop.application.Application$DoWaitForEmptyEventQ@65f3ec6d failed: java.security.AccessControlException: access denied ('java.awt.AWTPermission' 'accessEventQueue')java.security.AccessControlException: access denied ('java.awt.AWTPermission' 'accessEventQueue') at java.security.AccessControlContext.checkPermission(AccessControlContext.java:457) at java.security.AccessController.checkPermission(AccessController.java:884) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at com.sun.javaws.security.JavaWebStartSecurity.checkPermission(Unknown Source) at java.awt.Toolkit.getSystemEventQueue(Toolkit.java:1719) at org.jdesktop.application.Application.waitForEmptyEventQ(Application.java:383) at org.jdesktop.application.Application.access$200(Application.java:126) at org.jdesktop.application.Application$DoWaitForEmptyEventQ.doInBackground(Application.java:406) at org.jdesktop.application.Application$DoWaitForEmptyEventQ.doInBackground(Application.java:403) at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.jdesktop.swingworker.SwingWorker.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) | Unable to switch focus in SwingSet2.1. Choose JTable demo. 2. Click on any control.3. Try to tab out.Escape in list box also does not work. | On 11.03.2015 21:42, dmitriy.gubkin@oracle.com wrote:> Hi,> issue is reproducible.> Tried MacOS 10.10 + 8u40 b26.>> Tests:> 1. http://stt-13.ru.oracle.com:8080/JavawsMustangIntegTest/jdk1.8.0_40/demo/jfc/SwingSet2/SwingSet.jnlp ( need to choose JTable subdemo and try to edit Header/Footer field.> 2. https://docs.oracle.com/javase/tutorialJWS/samples/uiswing/InputVerificationDemoProject/InputVerificationDemo.jnlp - can't input data into input fields>> Notes:> 1. All input appears in text console where javaws is started.> 2. javaws -Xnosplash solves an issue.> 3. No issue for swingset started in browser on Mac as an applet ( http://stt-13.ru.oracle.com:8080/JavawsMustangIntegTest/jdk1.8.0_40/demo/jfc/SwingSet2/SwingSet.html )> 4. No issue on Windows>> Thanks, Dmitriy. | SQE is able to reproduce the bug on 8u40 Mac 10.10. | ***********************************************************************************************************Checked this on Windows 7 (JDK 8u40) and the application loaded fine. Was able to run the example from the report with ability to edit the fields. Though received an exception in the Java console:Exception in thread 'AWT-EventQueue-2' java.lang.NullPointerException at customprogressindicator.CustomProgress$2.run(CustomProgress.java:90) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source)************************************************************************************************************Plan: To test Mac OS X 10.10 (Yosemite). |
|