Friday Oct 17, 2008

NetBeans 6.5 Beta quick tip

Here's a quick tip that might help people using NetBeans 6.5 beta. When I tried to run an application from within the tool I got a stack trace with the message: "Absent code attribute in method that is not native or abstract". If I tried to run the application outside NetBeans using the generated jar file everything worked fine.

Googling the error message turned up a lot of results related to some stubs jar files in Maven which clearly was not related to my problem.

Further searching led me to a forum entry in German, the crux of which was that this was a bug in the compile-on-save functionality. To fix this you simply need to right-click the project you're trying to run and select properties. In the Compiling section under Build there is a check-box for "Compile on Save". Deselect this and voila! the application runs without problem.

About

simonri

Search

Top Tags
Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today