Many jars don't they are just libraries, not supposed to be run on their own. The Jar you have is likely a library, the error you are getting states that the JVM cannot find the entry point for the application i. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Jar file downloaded as. Asked 7 years, 11 months ago.
Active 7 years, 11 months ago. Viewed 3k times. Gives me a commandpromp that crashes after a few seconds, I tried to take a print-screen and it said: "could not find or load main class" But all didn't work. My java environment is up to date. Any ideas? Improve this question.
Nick Peelman Nick Peelman 1 1 gold badge 9 9 silver badges 26 26 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Ok, I get that, and how can I add a main method, or external software for it in order to run? NickPeelman here is a tutorial that explains, how you specify the main class in the mamifest file of the jar. Sign up or log in Sign up using Google. Asked 2 years, 9 months ago. Active 2 years, 9 months ago.
Viewed 1k times. Improve this question. Lasa Lasa 31 1 1 silver badge 12 12 bronze badges. And what error might that be? It gives error as "The import org. What zip are you trying to add? Can you send a link to some online resource? When something is packaged as a zip, it's probably not meant to be added as a library in the usual way. Add a comment. Active Oldest Votes.
File extension matters for the determination of the file type. Improve this answer. Andreas Andreas k 9 9 gold badges silver badges bronze badges. Did some more research and found this: How to add external library properly in Eclipse?
I then followed the steps: Extracted all google api content to one folder named lib. In conclusion: Don't ever import the library as a zip or you will have a long headache.
Hope this helps someone else. Mossad Mossad 1 1 silver badge 10 10 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.
The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. Podcast Who is building clouds for the independent developer?
0コメント