简体   繁体   English

Netbeans在视网膜显示屏上的Mac OS X山狮上看起来很模糊

[英]Netbeans looks blurry on mac os x mountain lion on a retina display

Yesterday i was setting up my new macbook pro with retina display and realize that netbeans looks very blurry. 昨天我安装了带有视网膜显示屏的新Macbook Pro,意识到Netbeans看起来很模糊。 This is something critical for me because i spent from 8 to 10 hours using netbeans everyday. 这对我来说至关重要,因为我每天花费8到10个小时使用netbeans。 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. 我在网上搜索时发现,这是jre 1.7的问题,可以与apple提供的jre 1.6正常工作。

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. 问题是我在Mac上安装了jre 1.7,但没有找到将jre降级到1.6的方法,这对我来说并不重要,因为我不是Java开发人员,我只需要jre来运行netbeans并执行喜欢PHP网站开发。

Please any help on how to downgrade to jre 1.6 from 1.7 in mountain lion. 请提供任何有关如何将山狮从1.7降级到1.6的帮助。

您可以尝试Retinizer ,尽管它不会增加应用程序内任何图标,任何文本以及可可GUI的分辨率。

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 可以告诉NetBeans使用不同版本的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 如果仍要降级,以使所有应用程序的默认版本为Java 6,请在此处查看我的评论: https : //stackoverflow.com/a/6413600/560114

I had the same issue after upgrading to Mountain Lion. 升级到Mountain Lion后,我遇到了同样的问题。 Before upgrading I was using Java 6, and now I'm using Java 7 and saw the ugly font rendering. 升级之前,我使用Java 6,现在使用Java 7,看到了难看的字体渲染。

However there is a way to fix the font on Netbeans without having to revert back to a previous version of Java. 但是,有一种方法可以在Netbeans上修复字体,而不必还原到Java的早期版本。 The issue is that the default Netbeans font "Monospaced 13" maps to different fonts in the two Java versions. 问题是默认的Netbeans字体“ Monospaced 13”映射到两个Java版本中的不同字体。 The Java 6 version maps this to "Courier 13", while the Java 7 version maps it to something ugly. Java 6版本将其映射到“ Courier 13”,而Java 7版本将其映射到丑陋的东西。 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). 因此,您只需在Netbeans + Java 7(“首选项”>“字体和颜色”)中将默认字体更改为“ Courier 13” ,即可获得漂亮的字体渲染。

More details here: https://netbeans.org/bugzilla/show_bug.cgi?id=229029 此处有更多详细信息: 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. 您必须上传您的JDK7。JDK7u25也存在相同的问题。 And fixed the problem downloading the last version 7u72 form here 并解决了在此处下载最新版本7u72表格的问题

So, do some checks first. 因此,请先进行一些检查。 Run: 跑:

$ java -version

I was using "java version "1.7.0_25" 我正在使用“ java版本“ 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". 转到您的Applications文件夹,查找Netbeans(我的版本为8.01),右键单击“ Show Packages Content”。

Then navigate to Contents/Resources/Netbeans/etc. 然后导航到目录/资源/ Netbeans / etc。 and edit netbeans.conf On that file add the line with th evalue netbeans_jdkhome and put your route. 并编辑netbeans.conf在该文件上添加带有值netbeans_jdkhome的行,并放置您的路由。

netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home"

Done. 完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM