This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java lib loading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java lib loading" Watch "java lib loading" New topic
Author

java lib loading

Yi Meng
Ranch Hand

Joined: May 07, 2003
Posts: 270
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.


Meng Yi
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

The default Java class loader will only consider .zip, .jar, and .class files; it will ignore everything else.


[Jess in Action][AskingGoodQuestions]
Yi Meng
Ranch Hand

Joined: May 07, 2003
Posts: 270
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?
 
 
subject: java lib loading
 
Similar Threads
What is the concept of endorsed directory??
can't compile servlet
Unix error Unexpected end of file
Trying to execute java program which is in jar file
a easy question about resin please help me