Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Picking up the wrong jar file...  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my OBJECT tag, my codebase specifically points to a jar file in the current directory (where all the html is...). However I found out that if this jar file also exists in the JRE's lib/applet directory, for example C:\Program Files\Java\j2re1.4.1_02\lib\applet directory, my applet will always pick this jar file for the first applet that is engaged by the browser. Anybody know if this is a current problem? Should it pick up jars from this library before any library we specify in the codebase param? My CLASSPATH is empty as well, Thanks in advance.
 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not an expert but Java has a strict rule of where it searches first. Maybe there would be a way to give hints.
My textbook has it somewhere if I find I'll post it but i think its current directory, common, and jre.
I'll try to find it.
sorry couldnt be of more help
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!