I have a plain old Java project that uses a third party library: that is, a third party JAR added to its build path. I have exported the library as a JAR, added it to another plain old Java project's build path and when I run the project, I'm getting a Could not find class error for a class which is in the third party JAR library, not mine. That is, the exception is getting thrown in MY JAR file because it cannot find a class in the THIRD PARTY JAR which is contained IN my JAR.
I noticed that I can fix the issue if I also add the third party JAR to the original project's build path, but I really do not want to do that. I just want my JAR to be self contained and keep the third party JAR in it. Is there a way to do this?
Issue working with nested Java libraries
271 views Asked by AudioBubble At
0
There are 0 answers
Related Questions in JAR
- how to add the button onto the furnace GUI in minecraft
- How to use Gradle to add JAR library for Flutter project?
- Having trouble executing my program from a jar, using Jinput
- how to add the button onto the mc mod without errors?
- How to run standalone files created by anylogic in matlab?
- Java .jar file not working as expected after an edit
- How can I create an executable (from a JAR) with the --enable-preview option in Launch4J?
- How to Run cucumber test cases from jar? Jar not able to find stepdefinitions?
- JavaFX issues to build an artifact and jar
- How to fix error and what causes: Error: Main method is not static in class
- How to Use an External JAR Offline in a Maven Project for Servlets Without Internet Access?
- mvn package is failing -Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tool
- How do I download Hibernate 6.4.4 JARs?
- JavaFX: how to build fat jar without needing to specify --module-path and --add-modules during execution
- Editing .jar file by removing dependent jars and then replacing them
Related Questions in CLASSNOTFOUND
- ClassNotFoundException com. mysql . jdbc . Driver
- How to handle the Spring Boot classloader 'problem'
- Error: Class "App\Common\PrintLoggerTool" not found
- Mike42/Escpos Class 'Escpos\CapabilityProfile' not found
- class not found for DomPDF
- In CoreClassReflection.php Class Does Not Exist While Using Infection
- ESAPI 2.5.2 : Unable to locate resource esapi-java-logging.properties
- Class not found in the classpath
- error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: main.java.service.ProductService
- Websphere giving error particularly on 3 nodes only whereas other 3 nodes are working fine
- problem deploying symfony app , error deploying symfony app , ErrorHandler->handleError(2, 'filemtime(): stat failed for
- AbstractFieldsSanitizer ClassNotFoundError in OroCRM 4.1
- Java Classpath error (Could not find or load main class) when using Mallet (a text analysis program) from Command Line
- Migrating com.vividsolutions.jts to org.locationtech.jts still complaining about lack of com.vividsolutions package
- Class Specified in Method signature of TLD function is not found - JasperException
Related Questions in SELF-CONTAINED
- How to include .NET 8.0 Runtime in a Windows Application Packaging Project
- How to publish a console application with COM interop and trim unused code
- Why can't Hangfire find the executable it is running from?
- Can not publish .NET Core 8 standalone exe
- How can I get my project to build into an executable in Visual Studio?
- PowerShell script to upload multiple tables into MySQL workbench DB
- Check if C++ headers are self contained
- Avalonia C# app published with PublishAot flag still contains DLLs in the output directory
- self contained deployment using .net core 2.2 is taking much time to respond
- Proper Way to Create Executable from PY File
- How are library dependencies managed in practice, in a self-contained/portable app?
- deploy .net 7 rest service in linux (shared bluehost and ionos)
- JsonConvert.DeserializeObjects does not work with trim unused code publish setting
- Self contained html with quarto and plots
- how to keep a web worker self-contained
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)