Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java lib loading

 
Yi Meng
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a have a jar file on my classpath, but i rename it such that the suffix is not .jar, e.g abc.jar_old, abc.zip, abc.txt .... etc, will it still be loaded as a java lib?

Where can i find answer of such question?

Thanks in advance.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The default Java class loader will only consider .zip, .jar, and .class files; it will ignore everything else.
 
Yi Meng
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ernest Friedman-Hill:
The default Java class loader will only consider .zip, .jar, and .class files; it will ignore everything else.


where can i find such kind of info? JVM SPEC? Java language spec?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic