Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Picking up the wrong jar file...

 
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
 
A berm makes a great wind break. And we all like to break wind once in a while. Like this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic