aspose file tools
The moose likes Beginning Java and the fly likes java lib loading Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 24057
    
  13

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
can't compile servlet
What is the concept of endorsed directory??
Unix error Unexpected end of file
Trying to execute java program which is in jar file
a easy question about resin please help me