• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

AspectJ and Netbeans

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have installed AspectJ 1.1 as per instructions from John Zoetebier which match the installation instructions. All goes well until I try to compile the first example in AspectJ In Action.
I get the error:
E:\AspectJ\HelloWorld\MannersAspect.java:1-1:0: This compilation unit indirectly references the missing type java.lang.Object (typically some required class file is referencing a type outside the classpath)
I am running NB 3.5 JDK 1.4.2. Regular, non AOP compiles work fine.
Any ideas?
Thanks,
David
 
David Holliday
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In case anyone else has this problem, this is what I have found.
I tried the set up on another machine with Netbeans 3.4 and AspectJ 1.1.b4.
All worked fine.
Also, AspectJ 1.1.1 for Netbeans won't unzip with WinZip. Had to use jar xf filename.
So 1.1.1 did not unzip or work on three different Netbeans3.5 machines, but 1.1.b4 does unzip and work on Netbeans3.4
Thanks,
David
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had the same problem with NetBeans 3.5.1 with AspectJ 1.1.1
I solved it with the following configuration option in netbeans, in the AspectJ options.
goto Tools->AspectJ->ADJE Options
on the 'AspectJ Build Options' tab add the following to 'other compiler options':
-classpath F:\Progra~1\Java\j2re1.4.2_03\jsse.jar
It seem as if the AspectJ compiler can not find the JRE, and this fixes that problem.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Seth, I did what you said. Now aspectj works seamlessly...
Mert Nuhoglu
 
When evil is afoot and you don't have any arms you gotta be hip and do the legwork, but always kick some ... tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic