Which jar file contains class
To report an error click here! Full path to article: Ubunlog » Ubuntu » How to find out which. Your email address will not be published.
Be the first to comment Leave a Comment Cancel reply Your email address will not be published. Legitimation: Your consent Communication of the data: The data will not be communicated to third parties except by legal obligation. I want to receive the newsletter.
How to install Tomcat on Ubuntu. How to set up a peer-to-peer VPN. However, it is also possible for the java interpreter to read class information directly from a jar file. Also, in the context of Microsoft's new C programming language an assembly is defined to be a unit of deployment and execution which is self-describing via a manifest. To which one might respond with the question, "OK, but so is a jar file, isn't it? The following command will put the two class files Foo.
Suppose we have a program that consists of the the three classes Foo. TZubiri 9 9 silver badges 27 27 bronze badges. I run into this all the time. That's stackoverflow for you. Add a comment. Active Oldest Votes. I've built a script findinjars which does just that. Improve this answer. Fanny H. The website has moved to : findjar.
Wenbing Li Wenbing Li 9, 1 1 gold badge 27 27 silver badges 41 41 bronze badges. I ran into the same problem countless times, so I wrote a little tool to find them.
A simple command line: findclass MyClass -classpath Rob Rob 61 1 1 silver badge 1 1 bronze badge. I found your tool useful. Thank you! I suspect, there's some windows equivalent too. Nikita Rybak Nikita Rybak Yeah, but the problem is that it's hard to tell if the file contains a definition or a use of the class.
And, yes, there's a grep utility that can be downloaded. I don't know, probably most of content including referenced classes is encoded in some way.
Unfortunately I got a bunch of false positives. Or maybe it's because the class has the same name across multiple packages. In any case, I'll give it another shot.
Thanks, Nikita! Mike Pone Mike Pone You can run the utility like grepj package. Class my1. Multiple jar, ear, war files can be provided. Native memory allocation mmap failed to map bytes for committing reserved memory. Is there a recommended amount of memory to be assigned to this JAR? I just ran it on OpenJDK version 8, and it is working as expected. You can pull down the sources and build locally with your JDK. It has no dependencies, so building is easy — ipolevoy.
BalusC BalusC 1. If it's not in the classpath, then you likely don't have the JAR file itself at all Well, it often happened to me with jboss. Hundreds of internal libs and you often need few of them to compile your code. Thanks for the link, though, that's interesting. Nikita: In that specific case, you'd rather like to update the target server of your dynamic web project to JBoss.
0コメント