File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 24166
    
  30

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java lib loading
 
Similar Threads
a easy question about resin please help me
can't compile servlet
Trying to execute java program which is in jar file
What is the concept of endorsed directory??
Unix error Unexpected end of file