• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic Classloading from Jar Files  RSS feed

 
Zak Nixon
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my previous posts, we ran the dynamic class loading example from Sun.
Now, we need to load these classes from a set of .jar files.

Is there any way to do that ?

Zak
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd have to write a different ClassServer - rather than ClassFileServer, you'd have something like ClassJarFileServer, that's able to take a JAR file and extract the class files from it and send them to clients. Luckily, Java provides you with a lot of classes to already do operations like this on JAR files.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!