• 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

Compiler can't find external jars when using custom ClassLoader

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys, longtime lurker, first time poster!

I managed to get this tutorial on adding dynamic code to your Java application working correctly, http://www.javaworld.com/javaworld/jw-06-2006/jw-0612-dynamic.html?page=1 . However, when i tried to adapt the code for my work i ran into this problem.

In the tutorial, the dynamic java file which the custom classloader uses, does not import any packages which is something i need to do. Hence, when i try to import a package, i get a compiler error "package xxx.yyy.zzz does not exist" even though the jars are in the project buildpath in eclipse.

Interestingly i do not get this error when i try to import classes from packages that are in the same src folder as my application in eclipse, or when i import standard Java classes like java.util etc. It's only external jars that i get this problem with.

Any suggestions would be greatly appreciated.
 
reply
    Bookmark Topic Watch Topic
  • New Topic