Mac OS X: Yosemite 10.10.5
NetBeans8.1beta or NetBeans8.1
Jun 02, 2014 OS X Yosemite (10.10) MacRumors attracts a broad audience of both consumers and professionals interested in the latest technologies and products. We also boast an active community focused on purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms. On Mac OS 10.10 Netbeans does not find pkg-config even if installed properly. Workaround is to start Netbeans from the Terminal window after it is installed. On Mac OS 10.6 (and older version) JDK 7 cannot be installed, and therefore Netbeans cannot be installed. 6.0 - Full test: Win XP Service Pack 3, Ubuntu 10.10, Mac OS 10.6 Intel 6.0 - Known to run: Windows 7 Pro, Windows Vista, Solaris 11/Express, Fedora 14 Testing is done on Java SE update release available no later than 1 month prior RC1. 32bit JVM is the priority. 64 bits JVM will be tested if time permits. In this article, you will learn how to set JAVAHOME environment variable in different Mac OS X versions e.g. Mac OS X 10.7 Lion Mac OS X 10.8 Mountain Lion Mac OS X 10.9 Mavericks Mac OS X 10.10 Yosemite Mac OS X 10.11 El Capitan (Beta) Actually steps are exactly same (if you are running on Mac version greater than 10.6), you don't need to do.
Glassfish4.1 or Glassfish4.1.1
Mojarra 2.2.7 or 2.2.12.
I am an experienced NetBeans + JSF developer, which is to say I know how it is supposed to work, and usually works, but this is for some reason no longer working properly, on one (and only one) Mac machine.
Short description of the problem: A few days ago, while I was happily developing a large JSF/Primefaces web application, I found that after a couple of reloads of complex JSF/Primefaces pages I was working on it stopped updating/reflecting changes I made (and saved) in composite components. I found however that if I wait for some minutes, I could then perform the reload again ok, for a few times, reflecting the CC changes, until it 'got stuck' again.
It happens, as far as I can tell, only on my main development machine which is a MacBook Pro 15' (macbookpro11,3 Mid2014.).
It does not seem to matter whether:
- I use NetBeans-8.1beta/Glassfish4.1 or NetBeans8.1/Glassfish4.1.1
- I use a completely fresh NetBeans+Glassfish install or an existing one.
- I use JDK1.7 (jdk1.7.0_51.jdk) or JDK1.8 (jdk1.8.0_60.jdk) (including for NetBeans/Glassfish and/or for source code compilation and execution).
- I use a project that involves Git (the problem first happened in a large project, but I have since reproduced it in the simplest of projects without Git).
- I use Primefaces or not (I can get it to happen in a very basic JSF app).
- I use a clean GET reload or a browser command reload.
But it does NOT happen, as far as I can tell, with an almost identical setup on an older MacMini (macmini4,1 Mid2010).
Some other things I think I know about it:
- This is with the NetBeans Deploy on Save feature OFF in all cases.
- It does not seem to afflict JSF templates or includes, it only seems to afflict composite components.
- It is not a problem with the javax.faces.FACELETS_REFRESH_PERIOD (which by default for Mojarra is 2 seconds). If I change it to 0, the problem vanishes (there is no caching) but the load/reload times for large complex JSF pages becomes painful, in some cases minutes instead of seconds.
- Just moving from one JSF page to another does not help.
- It makes no difference what JSF scope I use.
- It happens with an application deployed over /build/web.
- The timestamps of the changed XHTML files for the composite components are definitely changing as a I save them in NetBeans (they are being copied correctly into /build/web/resources/...).
![]()
- I have not done any OS software updates or installs for many days.
Experience with the original very large web app
When I first encountered the problem it was in a very large web app. I noticed it with a tiny little composite component that generates some text with a style class (for an icon), which CC was used inside a p:accordionPanel and p:tab. I found that after reloading the changes a couple of times it would stop catching the changes. It was only by accident that I discovered that if I wait many minutes, sometimes up to 10 minutes, it would then 'catch' the change.
I then went back in my commits a few days, to a time when I clearly was able to develop without any problem, and the problem happened again ! I have tested this many times, whatever the problem is, it is not in the .git commit (which includes /nbproject/private but not all subfolders of /nbproject/private).
Experience with a smaller Primefaces test web app
I then tried it with a much smaller test web app with some Primefaces test pages. I was able to reproduce the problem if I reloaded the index.xhtml page a few times, while changing a tiny one-implementation-line composite component used in the index.html page. I then found I had to wait about 10 seconds or sometimes a whole minute, and then the change would 'catch' again.
Experience with a tiny JSF core NetBeans web app
With one index.xhtml, and a single composite component with a single h:outputText word, I could get the problem to happen if I saved the CC and then reloaded the index.xhtml very quickly. I am not talking about it not appearing to change (because one 'beat' the javax.faces.FACELETS_REFRESH_PERIOD) I am talking about it 'locking up' so that it does not catch the change in the CC at all after that, no matter how often one reloads the page, until the Ghost in the Machine decides to 'unlock' itself.
Normally I would provide an example or Steps to reproduce the problem but it makes little sense to do it here; when I move the project from one machine (my MacBook Pro) to another (the MacMini running the same OS version) the problem vanishes. Besides, anybody can reproduce the situation with a NetBeans web app with an index.xhtml using a single Composite Component.
Q1: What else can I try to diagnose it ? I am out of ideas.
Q2: Does anybody know of anything specific to a MacBook Pro that might affect the polling/detection of changes in the build/web folders that could explain it ?
Q3: Is there anything about how Facelets and/or Glassfish work together with an application deployed over /build/web that might explain it ?
Clearly, I am very keen to get my development environment working sanely again, but it is very difficult (or not very attractive) for me to, for example, restore my entire MacBook Pro to a previous time machine backup and then try that and (assuming the problem no longer happens) continue from there. And even if I did, what if it happens again ?
I want to understand what is happening and why so that I can truly deal with it.
The following is an overview of useful information that we hope will help you to get NetBeans IDE up and running in Mac OS X.
System Requirements and Installation
For the minimum and recommended hardware configuration, see the NetBeans IDE 8.0 Release Notes.
For Mac OS X installation instructions, see the NetBeans IDE 8.0 Installation Instructions for Mac OS X.
Netbeans Mac Os XIssues and FAQs
See the following documents for Mac-related issues and FAQs.
Shortcuts on Mac OS X
The IDE has a default set of keyboard shortcuts that you can use to invoke functions. In some cases, the default IDE shortcuts can conflict with default Mac OS shortcuts. In particular, some function keys used by the Mac OS are known to conflict with some default IDE shortcuts. If you find that some keyboard shortcuts are not behaving as expected, you can modify the shortcut for a particular IDE function by choosing NetBeans > Preferences (Cmd-,) from the main menu and clicking Keyboard in the Options window. You can modify the default Mac OS shortcut by opening System Preferences and clicking Keyboard & Mouse. For more, see the Apple Help topic Using function keys on portable computers.
For a list of NetBeans' Source Editor keyboard equivalents on Mac OS X, see the following table:
![]()
Note:
For a complete list of NetBeans IDE keyboard equivalents, check the Keyboard Shortcuts Card by choosing Help > Keyboard Shortcuts Card. Alternately, you can reference the Keyboard Shortcuts section of the NetBeans IDE built-in Help.
You can access the Options window on Mac OS X by selecting NetBeans > Preferences (⌘-,) in the main menu.
Tips & TricksNetbeans For Mac Os X 10.100
The following are some techniques you can use to get more out of NetBeans IDE on Mac OS X.
More InformationMac Os X 10.11 Download Free
For more information, visit https://netbeans.org/.
You can also find news, articles, additional modules, and other useful information on the NetBeans project web site. Since NetBeans is an open-source project, the web site also provides access to source code, a bug database, information on creating your own NetBeans modules, and much more.
FeedbackHow To Install Netbeans 10
If you encounter any Mac OS X-specific problems, please let us know by filing a bug, but don't forget to specify that you are using the Mac OS X operating system.
Netbeans For Mac Os X 10.100 Yosemite
You can also keep up to date on NetBeans IDE and interact with the NetBeans community by signing up for NetBeans project mailing lists at https://netbeans.org/community/lists/.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |