I have Java 1.5.0 installed on a Mac OS machine. I have the Java Embedding Plugin 0.9.6.4 installed and java enabled on the preferences panel. When I go to http://java.com/en/download/help/testvm.xml the applet appears blank. Does anyone has an idea of what is happening?
I have found the solution. The Java Embedding Plugin uses the installed JVM which itself gets its proxy definitions from MacOS and not from Firefox. So, proxy definitions have to be defined for both MacOS/Safari and Firefox.
I've also updated Firefox and selected Java 1.5 on the Java preferences panel. However I'm not sure if these two actions helped solve the issue.
Firefox 3.0.1 on Mac OS X 10.5 should support java applets without any extra Java Embedding Plugin.
applets that require java 1.6 don't work in mac os x, even though java 1.6 (aka java se 6) is installed and at the top of the list in the java preferences.
Related
Strangely in Add ons section of Firefox, I could not see the Java add on (activate/de-activate).
So, How to enable Java ? (given I activated Brower in Java Configuration).
Thanks
Java 64bits does not work with Firefox.
Also Firefox 64bits does not work with Java.
1) Need to Install Firefox 32bits
2) Need to install Java X86 586 (= 32bits)
all in separate folder.
Also Please close Firefox when installing Java.
In order to help Java apps look more like native apps when run on Mac OS X, Apple created the Apple Java Extensions in order to make Java apps behave more like Mac OS X. These allow for things like handling the behavior of the "About" menu and supporting drag and drop onto the application icon.
However, I can't find anything indicating whether or not these extensions are included with Java 7 or even usable with Java 7. It is my understanding that Apple merged their OS X implementation into OpenJDK, but I'm not sure whether these extensions went with it. I do see that the goal for the Mac OS X port of OpenJDK aims to "Include a complete, native Cocoa-based UI Toolkit", but I can't find much about what this entails. Searching the web has not proved very fruitful and I have no idea about if they are compatible with Java 7 or are even included.
So I guess I have three questions:
Will a Mac running Java 7 be able to use the Apple Java Extensions?
Are they included in Java 7, and if not, can I download them to bundle into my app?
Are there any alternatives to these extensions that are Java 7 compatible?
Will a Mac running Java 7 be able to use the Apple Java Extensions?
Yes. They are included both in the Oracle distribution and in OpenJDK. See the second answer here below.
I can't vouch for the complete API as I only need a subset to support drag-drop behaviour on the app icon and on the app frame. I can confirm though this works as expected with OpenJDK 7. No problems on the distribution side either, as the app is on sale on the Mac App Store.
Are they included in Java 7, and if not, can I download them to bundle into my app?
They are included in OpenJDK 7, you can find the sources in /src/macosx/classes/com/apple and supported by Oracle as hinted by the messages and bug fixes readable on the macosx-port-dev mailing list.
They are also included in the Oracle distribution, unjar rt.jar to see them.
You don't have to download anything, just start using them in your editor:
Are there any alternatives to these extensions that are Java 7 compatible?
Not that I know of, but I doubt you need an alternative.
Yesterday i was setting up my new macbook pro with retina display and realize that netbeans looks very blurry. This is something critical for me because i spent from 8 to 10 hours using netbeans everyday. I searched online i found that this is an issue with the jre 1.7 and will work ok with the jre 1.6 provided by apple.
The thing is that i have intalled jre 1.7 on my mac and have not found a way of downgrade my
jre to 1.6, which is not critical for me because i am not a java developer,i only need the jre for running netbeans and do my loved PHP web development.
Please any help on how to downgrade to jre 1.6 from 1.7 in mountain lion.
I experienced the same issue. It's possible to tell NetBeans to use a different version of Java:
https://discussions.apple.com/thread/4470872?start=0&tstart=0#21143742
If you still want to downgrade so that the default version for all your applications is Java 6, see my comments here:
https://stackoverflow.com/a/6413600/560114
You can try Retinizer, although it won't increase the resolution of any icons within the app, just any text, as well as the Cocoa GUI.
I had the same issue after upgrading to Mountain Lion. Before upgrading I was using Java 6, and now I'm using Java 7 and saw the ugly font rendering.
However there is a way to fix the font on Netbeans without having to revert back to a previous version of Java. The issue is that the default Netbeans font "Monospaced 13" maps to different fonts in the two Java versions. The Java 6 version maps this to "Courier 13", while the Java 7 version maps it to something ugly. So you can have the nice font rendering by simply changing the default font to be "Courier 13" in your Netbeans+Java 7 (Preferences > Fonts & Colors).
More details here: https://netbeans.org/bugzilla/show_bug.cgi?id=229029
This is incredible simple to fix but I was very hard to me to find the answer.
You have to upload your JDK 7. I had the same problem with JDK 7u25. And fixed the problem downloading the last version 7u72 form here
So, do some checks first. Run:
$ java -version
I was using "java version "1.7.0_25"
Then run the following command to get the route.
$ /usr/libexec/java_home -v 1.7
You should get, before the upgrade:
/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home
Then install the new version, and you should get the new route with the last command:
$ /usr/libexec/java_home -v 1.7
/Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home
Go to your Applications folder, look for Netbeans (I have the version 8.01), right click "Show Packages Content".
Then navigate to Contents/Resources/Netbeans/etc. and edit netbeans.conf
On that file add the line with th evalue netbeans_jdkhome and put your route.
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home"
Done.
A Java applet has the following in its start() method :
this.setFocusable(true);
this.requestFocus();
When launched, the applet grabs the focus only in certain OS/JRE/browser configurations. It's compiled using JDK 1.6.0_18, and on my PC running Java 1.7 it grabs focus in all browsers (Ie, chrome, Firefox) without problems; even if the applet is compiled using JDK 1.7.
On Mac OS X 10.6.8 which comes with Java 1.6.0_29 it doesn't grab focus in Safari, Chrome or Firefox, but the applet loads fine. When I upgrade the the Mac OSX JDK to the preview 1.7 - it doesnt' load the applet at all. If I compile the applet using JDK 1.7 and run using JRE 1.7 - it just crashes the browsers on the Mac.
Has anyone come across similar problems? thanks.
The docs. for Component.requestFocus() state:
Because the focus behavior of this method is platform-dependent, developers are strongly encouraged to use requestFocusInWindow when possible.
Is it possible to use the latter in this case?
Has anyone come across similar problems?
Focus problems go hand-in-hand with embedded applets. If you want more reliable focus behavior, launch the applet free-floating using Java Web Start.
I installed Netbeans IDE 6.8 today to use it while learning Ruby.
Here the specifications:
Product Version: NetBeans IDE 6.8
(Build 200912041610)
Java: 1.6.0_17; Java HotSpot(TM)
Client VM 14.3-b01
System: Windows XP version 5.1 running
on x86; Cp1252; en_US (nb)
So I created my first Ruby project and am able to run the program.
According to the documentation I should also be able to open an Interactive Ruby Window from Windows/Other/, but in my case that menu only contains [Exception Reporter, CSS Preview and CSS Stylebuilder].
This is the case no matter if I use JRuby or Ruby 1.8 as my Ruby Platform.
Am I missing something or is this a bug?
Although I could resort to the interactive console that comes native with the Ruby installation I would prefer to have it integrated in my IDE.
So if anyone knows how to resolve this issue, even if it means going back one version of Netbeans I would appreciate the help.
right-click on your Ruby project and then select Ruby Shell(IRB)