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
265 Views Asked by AudioBubble At
0
There are 0 best solutions below
Related Questions in JAR
- Where do 'normal' println go in a scala jar, under Spark
- Importing a downloaded JAR file into a Servlet
- Can I use \ and / to be directory delimiter in CLASSPATH of .bat
- jar file input == null while java app is working
- Running a specific spring batch job amongst several jobs contained withing a spring boot fat jar
- ProguardGui make my android jar miss many classes
- Java jar File error message Exception in thread "AWT-EventQueue-0"
- How to handle empty parameters in a main method java call
- Make a Component of Android Project for use it inside another android project
- Excluding jars lib directory of tomcat
- Accessing a html file from a menu option does not work when I make a jar or store file
- Class Path entry my.jar does not point to a valid jar for a Class-Path reference
- When i execute the command "java -jar -Dlog4j.configuration="..\conf\log4j.xml" ..\simulationengine.jar" file not found with complete strack strace
- Error in executing a Jar file in remote machine
- Extracting a zip file containing a jar file in Java
Related Questions in CLASSNOTFOUND
- spark 2.0.2 ClassNotFoundException: org.apache.kafka.clients.consumer.Consumer
- Java & SQLite - another ClassNotFoundexception
- Cannot access CPCallbackClassLoaderIf / XMLable (class file not found, when using Java 8)
- mysql java connection error
- Is a good idea have a BaseController and make all controllers extend that class?
- Issue working with nested Java libraries
- Debug "Step into" class calls cause "Class not found" exception - Eclipse Debugging
- Unable to get xtify Provider (ClassNotFound exception)
- Reading serialised object java gives classnotfound exception
- javac1.8 class not found
- The remote server returned an error: NotFound. Only when i use wrong credentials...WP8
- Strange issue after inflating Google Maps MapFragment
- com.google.android.gms classes not found after update of play-services to 6.5.87
- Android: ActivityNotFoundException
- class not found for DomPDF
Related Questions in SELF-CONTAINED
- Autonomous UIViewController
- Is it possible to customize the style of javafx native package installer?
- Issue working with nested Java libraries
- Contained database SQL 2012 - and ODBC connection creation failing
- Avalonia C# app published with PublishAot flag still contains DLLs in the output directory
- Self Contained MVC Website
- What is .NET Runtime Identifier for Windows 11
- Self Contained Linux Command line tool for converting text to doc, rtf, pdf
- how can I build/deploy a self-contained .netcore app without access to nuget.org
- Is it possible to publish multiple self contained .Net Core apps with one shared framework
- Relationship between Micro Frontends (MFE) and Backend for Frontend (BFF)
- Troubleshoot Service Fabric service deployment
- Self-Contained Chrome for Selenium Testing
- Azure DevOps: publish self-contained .net Core app with Chocolatey
- Can one extract images from pandoc's self-contained HTML files?
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)
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?