Closed mattimatti closed 5 years ago
I just tried running that command line under macOS and it worked without error, so not sure what the issue on Ubuntu might be. I don't have quick access to an Ubuntu environment so I can't quickly test it.
Can you do "java -v" and post it here?
Hello, thanks for replying, here is my version. ( i'm very poor in java just understand the coding, no libs no tools)
$ java --version
openjdk 11.0.4 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)
Tried to add plugin to maven pom.xml as per this post:
no luck..
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.wordinator.xml2docx.MakeDocx</mainClass>
<manifestEntries>
<Multi-Release>true</Multi-Release>
</manifestEntries>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
Tried also to add dependency as per log4j2 migration guides.. no luck
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.11.1</version>
</dependency>
the problem is related with running the jar using java 11. Running with older version is the option .
/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java -jar ...
Not elegant but works
Hello I tried to build run wordinator in my ubuntu18, managed to build and run the jar from command line.
The output shows something related to the LogManager.. am i missing something?
thank you in advance,