I need to add a class to a .jar library but I can’t figure out how to do it.
I have a library named netty-3.1.5.GA.jar but for some reason its missing a class I need
(HttpTunnelClientChannelFactory.java).
I have found that class on a repository but not as part of the library. So how can I ‘inject’ it? The class I need to add is using other classes that exist in the library.
You can use the
jartool to update the jar file: you will need to manually create the appropriate package directory though. Try this:will add it to the root package. If you need it to be set up in a package directory you should create the directory structure and then add the file with a path.
EDIT: that should be
.class, not.java.