spark-excel_2.10 package creating conflict with maven on Mac - java

This java package work fine on my Windows machine, but when I run this on my Mac machine it create conflict with maven; both machine have same version of maven. Can you tell me why it's happening, and can you give me the solution to this error?
Note: I already tried spark-excel_2.11 but same problem still.
<dependency>
<groupId>com.crealytics</groupId>
<artifactId>spark-excel_2.10</artifactId>
<version>0.8.3</version>
</dependency>

Related

JAXB project to be compiled with JDK SE 8 but has to run also on JRE 11

I have a Java program I compile in Java 1.8 because it has - between others - because many users only have JRE 1.8. In that program I use javax.xml.bind.* quite often to marshall and unmarshall XML. To help users run it on JRE 9-10, I also provided a shell script that calls java with the -add-modules argument. For users that have Java 11+ (and no previous Java version installed), that won't work, will it?
So I thought of bundling JAXB (or EclipseLink Moxy) with my program and still compile it with JDK8 (with Eclipse IDE). So that I runs on Java 8 and still on Java 11+. Will that work?
Thanks!
here a solution add these dependencies to your pom.xml ( if u re using) maven :
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>${jaxb.api.version}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>${jaxb.api.version}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>${jaxb.api.version}</version>
</dependency>
and the code will compile in both version java 8 and 11.
Thank you for your comments and answers!
I finally got it running, though it is not perfect yet. This is what I did:
downloaded Jakarta JAXB 2.3.2 here: maven
unzipped it and put the content to my project directory
in Eclipse IDE 2020-6, I edited the properties of the project (Cmd+I):
Under the topic "Java Build Path", I added 3 jars with "Add External JAR": jaxb-impl.jar, jakarta.xml.bind-api.jar and jakarta.activation.jar
The part I obviously forgot before: also under "order and export", I checked that 3 JARs.
To test the result, I told Eclipse IDE under "Run/Debug", register "JRE" to run my main class with JRE 12.
That worked for me.

Maven plugin compatibility error with newest version of Java

So recently I was given a maven project I need to compile, but there seems to be some compatibility issues with wr04j and the most recent version of Java I have installed on my Mac.
Execution {redacted} of goal ro.isdc.wro4j:wro4j-maven-plugin:1.8.0:run failed: An API incompatibility was encountered while executing ro.isdc.wro4j:wro4j-maven-plugin:1.8.0:run: java.lang.ExceptionInInitializerError: null
Upon further research I found a Java version manager similar to nvm with node. I followed all of the steps I could find to download prior versions of Java hoping to find the one that worked. One issue arrived that caskroom and homebrew don't appear to host versions of Java older than Java11.
Is there something I am missing? I run these lines in my command line
brew tap caskroom/versions
brew search java
The only versions that show up after doing this are
java
java-beta
java11
java6
All of the instructions list versions 6-11 as available. Maybe they were removed? Maybe I'm doing something wrong? Any direction would be much appreciated.
I was unable to find a version of Java before 11 on homebrew other than Java6, but found this fix for anyone receiving the same error.
<plugin> section for wr04j in the pom.xml
<dependencies>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>2.18.0</version>
</dependency>
</dependencies>

Can't run Java with specific dependecy

I use Intellij 2018.1 and when i add to my project a serenity-cucumber dependency with latest versions, the run and debug button doesn't work anymore. (It's strange that maven it's able to run the tests with no problem).
I tried and built the simplest project with hello world and just with that dependency. No success, same situation. When i've gone to version 1.9.8(maybe there are newer versions that could work, i will try), the intellij started to work normal.
Also tried to change project sdk and project language level.
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-cucumber</artifactId>
<version>1.9.35</version>
<dependency>
Now the program works with that older version, but it doesn't generate the report well. Maybe i will find a solution to run the tests with intellij with debug mode using last version.

Build Path Exception using Spring 4.0.2 and eclipse kepler

I have the same problem mentioned at this SO question. I have tried to find the solution every where but could not find one.
Here is information about my environment
OS: Ubuntu 13.10
IDE: eclipse kepler 4.3
Spring version 4.0.2
I have jdk 8 installed on my machine and I am using JRE 1.7 for the project
I do have aspectjweaver dependency in my POM file
<dependency>
<groupId>aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.5.4</version>
</dependency>
I can find the class BCException using ctrl+shift+T
Please find the screen shot of my eclipse.

How do you install the latest version of Xuggler (5.4, as of 18/05/2013) in eclipse?

I have literally no clue where to start doing this. I've downloaded the necessary Jar's from the site, and done some research on how to install Xuggler in Eclipse, and everything is outdated or irrelevant.
My system is a 64-Bit Windows 8. Most things that worked in vista and windows 7 should be compatible with my system as long as they are also 64-bit compatible.
All I would like to be able to do is obviously run an application with it in Eclipse.
Any advice, helpful explanations would be much appreciated.
You can download Xuggler 5.4 here
and some more jar to make it work...
commons-cli-1.1.jar
commons-lang-2.1.jar
logback-classic-1.0.0.jar
logback-core-1.0.0.jar
slf4j-api-1.6.4.jar
You can check which dependencies xuggler needs from here:
Add this jars and xuggle-xuggler-5.4.jar to your project's build path and it s ready.
**version numbers may change
If you use maven, only add this repository:
<repository>
<id>xuggle repo</id>
<url>http://xuggle.googlecode.com/svn/trunk/repo/share/java/</url>
</repository>
and this dependency:
<dependency>
<groupId>xuggle</groupId>
<artifactId>xuggle-xuggler</artifactId>
<version>5.2</version>
</dependency>
I use currently this dependency and work fine.
For people who are still looking for the download link, here it is: http://web.archive.org/web/20160501013248/http://xuggle.googlecode.com/svn/trunk/repo/share/java/xuggle/xuggle-xuggler/5.4/

Categories