How do I call JAR which is in same folder as my java file? BUT I don't want to place this JAR file into JRE>lib>ext and also I don't want to create CLASSPATH for it.
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
Recommended Answers
Jump to Postdo you want to run this JAR file or do you want to import it in your application so you can use it?
Jump to Postnope. the JVM will ONLY load classes it can find on its classpath (and that includes your application classes, if those aren't on the classpath it won't load them).
Best set up the classpath when running the JVM, that way it's local to that instance of the JVM.
That's …
All 7 Replies
tonakai 9 Junior Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
tonakai 9 Junior Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
tonakai 9 Junior Poster
jwenting 1,905 duckman Team Colleague
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.