| Author |
Identifying when a jar file is added at the runtime
|
Bhagirathi Mallick
Greenhorn
Joined: Jul 21, 2011
Posts: 25
|
|
Is there any listener class to identifying when a jar file is added at the run time into our application...
if not ,then how can i acheive that...
thanks in advance
|
 |
Steve Luke
Bartender
Joined: Jan 28, 2003
Posts: 3027
|
|
|
Yes, there is a WatchService available in the java.nio package (for Java 1.7+) which will do what you need (other classes that will be good to read: java.nio.Paths, java.nio.Watchable, java.nio.FileSystem, and java.nio.Path).
|
Steve
|
 |
Bhagirathi Mallick
Greenhorn
Joined: Jul 21, 2011
Posts: 25
|
|
Actually i am using java 6 .
Is there any listener method in java 6 to notify when a jar file as added or removed from your project at the run time.
so please replay..
thanks..
|
 |
Steve Luke
Bartender
Joined: Jan 28, 2003
Posts: 3027
|
|
|
No, you will have to update or roll your own.
|
 |
 |
|
|
subject: Identifying when a jar file is added at the runtime
|
|
|