I am trying to use Apache POI 4.1 from Eclipse Orbit Drop R20200831200620. This is what the relevant piece of MANIFEST.MF looks like: All required bundles are part of the target platform and I can see them in the plugin list in the runtime Eclipse. However, when trying to load an Excel file at runtime I get the following stacktrace:
Tag: dependencies
Gradle build – add module path
My question: How do I set a module path for gradle build? I’ve become comfortable working with Java modules from the command line. I do a frequent exercise in Powershell which results in these source files. appMod/module-info appMod/appPack.Entry greetMod/module-info greetMod/greetPack.Hello Since the appMod module requires greetMod, I compile and jar greetMod first. Then I compile and jar appMod, but as
Can a java 8 project depend on a java 11 dependency in gradle
I have a project in Java 8 and attempting to utilise a library written in Java 11. I am getting an error: class file has wrong version 55.0, should be 52.0 Is this something that is basically not possible or is there some Gradle configuration which allows a Java 8 project to use a library written and compiled to Java
xml-apis JAR file necessary?
I’m using a (Maven) dependency which itself depends on xml-apis. Unfortunately, the presence of this package now causes conflicts in our OSGi environment (see below in case it should be relevant). Looking at the JAR content, I find classes which seem to be present in a current JRE anyways. So, my question: Is it safe to exclude this dependency? In
NoClassDefFoundError: org/apache/commons/lang3/StringUtils
I’m trying to run the sample project with this library and I get the following error: I’ve added commons-lang-2.6.jar & commons-lang3-3.1-sources.jar in libs and classpath Main class: I have referred to the following links: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils from BaseClassLoader Struts 2 framework demo http://apache-commons.680414.n4.nabble.com/lang-java-lang-NoClassDefFoundError-org-apache-commons-lang-StringUtils-Exception-td3735881.html Answer I have added commons-lang-2.6.jar & commons-lang3-3.1-sources.jar… Here’s your problem: commons-lang-2.6.jar doesn’t contain the org.apache.commons.lang3 package, since
Wildfly configuration with DataSource
this is the first time I am trying to setup datasource in my Wildfly server. I tried to follow some tutorials which I found on Google but it still doesn’t work. I am working on a web service but I keep getting some errors when I deploy my .war file. Here is the latest log when app is deployed: persistence.xml
SPRING java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext
It seems people have had similar problems, but on IDE’s. I am not using an IDE. I installed Spring using a Maven dependency as you will see in my build.xml file. I get the following stacktrace that says org.springframework.context is not found: run-decouple: BUILD SUCCESSFUL Total time: 4 seconds Here is my client (java file: DecoupledDataReaderClient.java): Here is my build.xml
How to add Java JAR files to Grails project?
I have a few Java/Maven projects that I want to use in a Grails 2.0.4 project. I have tried various approaches, such as: Installing the JAR files in my local maven repository, and executing grails install-dependency com.foo:my-project:0.0.1-SNAPSHOT Copying the JAR files into the lib folder of grails. Adding compile com.foo:my-project:0.0.1-SNAPSHOT to the dependencies section of BuildConfig.groovy Uncommenting mavenLocal() and passing
What are unused/undeclared dependencies in Maven? What to do with them?
Maven dependency:analyze complains about the dependencies in my project. How does it determine which are unused and which are undeclared? What should I do about them? Example: Note: A lot of these dependencies are used in my runtime container and I declared them as provided to avoid having the same library on the classpath twice with different versions. Answer Not