Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Netbeans question, F9 not compiling

278 views
Skip to first unread message

Justin

unread,
Jul 28, 2009, 10:04:07 AM7/28/09
to
I'm running a Vista x64 Professional laptop and using Netbeans 6.7

My problem is I am constantly finding the F-9 key will not compile the
source code. Instead it gives me the Windows error earcon and does
nothing. The only way to rememdy this, is to select clean/build all
from the menu. I will then be able to compile the program again using
the F-9 key. However, if I then run the program, F-9 is disabled
again.

The reason why I don't want to rely on the auto compile is I like the
highlighted syntax errors, it lets me jump to the errors very
quickly. With the autocompile, you have to find the errors manually,
which sucks.

Any help is appreciated,

thanks

Lew

unread,
Jul 28, 2009, 10:22:57 AM7/28/09
to
Justin wrote:
> I'm running a Vista x64 Professional laptop and using Netbeans 6.7
>
> My problem is I am constantly finding the F-9 key will not compile the
> source code.  Instead it gives me the Windows error earcon and does
>

"earcon"?

Is there an error message accompanying that "earcon"? Any other
information whatsoever?

> nothing.  The only way to rememdy [sic] this, is to select clean/build all


> from the menu.  I will then be able to compile the program again using
> the F-9 key.  However, if I then run the program, F-9 is disabled
> again.
>

Disabled or gives an error? Which?

> The reason why I don't want to rely on the auto compile is I like the
> highlighted syntax errors, it lets me jump to the errors very
> quickly.  With the autocompile, you have to find the errors manually,
> which sucks.

I don't see this problem at all running NB 6.7 in Windows XP. I don't
have Vista available.

You will need to provide more information.

--
Lew

Justin

unread,
Jul 28, 2009, 10:54:13 AM7/28/09
to
> Is there an error message accompanying that "earcon"?  Any other
> information whatsoever?

I looked it up in my sound settings, it is the "Default Beep" going
off. You can duplicate the sound if you click Edit->Stop Macro
Recording while not recording a macro.

> > nothing.  The only way to rememdy [sic] this, is to select clean/build all
> > from the menu.  I will then be able to compile the program again using
> > the F-9 key.  However, if I then run the program, F-9 is disabled
> > again.
>
> Disabled or gives an error?  Which?

Sounds the "Default Beep" again. No other warnings or messages.

Justin

unread,
Jul 28, 2009, 10:59:24 AM7/28/09
to
OK. There is a file in my project/build/classes directory
called .netbeans_automatic_build

When it is present, I can't recompile using F-9. If I delete, I can
compile. Running my program through netbeans causes the file to be
generated.

Justin

unread,
Jul 28, 2009, 11:09:28 AM7/28/09
to
Problem solved. I had to disable the "compile on save" feature.
Right click on the project in the project tree, and select
properties. Under Categories, select Build->Compiling. And check/
uncheck Compile on Save.

Roedy Green

unread,
Jul 28, 2009, 11:12:28 AM7/28/09
to
On Tue, 28 Jul 2009 07:04:07 -0700 (PDT), Justin
<justin...@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>My problem is I am constantly finding the F-9 key will not compile the
>source code.

Most likely the problem is some quirk of Eclipse, but that sort of
thing can sometimes have a hardware cause.

Sometimes such problems are caused by a stuck shift, Alt or Ctrl key.
The computer did not notice the release. Just tap your shift, alt and
ctrl keys and see if that clears the problem.

You can also have a look at
http://mindprod.com/products1.html#KEYPLAYER to see what keystroke
events your F9 key is producing on a consistent basis.

You may be losing keystrokes. If so, try cleaning the keyboard.

See http://mindprod.com/bgloss/keyboardcleaning.html

You can also try rebooting to clear up software problems.
--
Roedy Green Canadian Mind Products
http://mindprod.com

The USA and Iraq are as mismatched combatants as Mike Tyson and a bag lady. Americans make themselves look ridiculous when they justify invading and occupying Iraq in self defence.

Justin

unread,
Aug 13, 2009, 1:43:43 PM8/13/09
to
Problem is back, although I think it's an unrelated cause. Anyways,
F9 doesn't work, and I can't compile from Run Compile. I noticed a
little icon blinking in the lower right corner, and I get this
message...


java.util.MissingResourceException: Can't find resource for bundle
org.openide.util.NbBundle$PBundle, key ACTION_compile.single
at java.util.ResourceBundle.getObject(ResourceBundle.java:384)
at java.util.ResourceBundle.getString(ResourceBundle.java:344)
at org.openide.util.NbBundle.getMessage(NbBundle.java:631)
at
org.netbeans.modules.java.j2seproject.J2SEActionProvider.invokeAction
(J2SEActionProvider.java:519)
at
org.netbeans.modules.project.ui.actions.FileCommandAction.actionPerformed
(FileCommandAction.java:96)
at
org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed
(LookupSensitiveAction.java:166)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:
1995)
at javax.swing.AbstractButton$Handler.actionPerformed
(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:
242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick
(BasicMenuItemUI.java:1225)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased
(BasicMenuItemUI.java:1266)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:
4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:
4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at org.netbeans.core.TimableEventQueue.dispatchEvent
(TimableEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForFilters
(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter
(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


I googled it, but couldn't find anything real clear. Any ideas?

0 new messages