question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors by installing Maven with $ ./mvnw package

See original GitHub issue

Dear community,

I had successfully installed MsgViewer on this same laptop before under Ubuntu 20.04. Now I have done a fresh install of Ubuntu 22.04.

Ran the following command lines successfully:

$ sudo apt install openjdk-11-jre-headless $ sudo apt install maven $ sudo apt install git $ git clone https://github.com/lolo101/MsgViewer.git $ cd MsgViewer

Java is correctly installed: $ java -version openjdk version "11.0.15" 2022-04-19 OpenJDK Runtime Environment (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1) OpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1, mixed mode, sharing)

Now when running the Maven install: $ ./mvnw package I get error notifications:

[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.44 s - in at.redeye.FrameWork.base.UniqueDialogHelperTest [INFO] Running at.redeye.FrameWork.base.bindtypes.DBStringTest [INFO] Tests run: 29, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.088 s - in at.redeye.FrameWork.base.bindtypes.DBStringTest [INFO] [INFO] Results: [INFO] [ERROR] Errors: [ERROR] UniqueDialogHelperTest$WhenDialogAlreadyInvoked.<init>:40 NoClassDefFound Could not initialize class at.redeye.FrameWork.base.BaseDialogDialog [ERROR] UniqueDialogHelperTest$WhenDialogAlreadyInvoked.<init>:40 NoClassDefFound Could not initialize class at.redeye.FrameWork.base.BaseDialogDialog [ERROR] UniqueDialogHelperTest.should_return_dialog_instance:18 » UnsatisfiedLink Can’t load library: /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so [INFO] [ERROR] Tests run: 66, Failures: 0, Errors: 3, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for parent 1.8.6-SNAPSHOT: [INFO] [INFO] parent … SUCCESS [ 0.147 s] [INFO] FrameWorkMinimized … FAILURE [ 2.200 s] [INFO] msgparser … SKIPPED [INFO] MSGViewer … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.410 s [INFO] Finished at: 2022-06-19T09:43:58+03:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-test) on project FrameWorkMinimized: [ERROR] [ERROR] Please refer to /home/nicolas/MsgViewer/FrameWorkMinimized/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :FrameWorkMinimized

The required file is not installed: $ cd MsgViewer/MSGViewer/target bash: MsgViewer/MSGViewer/target: No such file or directory Can anyone please help fixing these errors?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
philippuluscommented, Jun 21, 2022

@lolo101 please have a loot

0reactions
philippuluscommented, Jun 24, 2022

The one issue I am encountering is that it is terminal dependent. After opening the interface, I mostly close the terminal inadvertently, then MsgViewer also closes. At least it would be nice to have an interface that remains open when closing the terminal.

In addition, I just reopened it and now I got this notification: $ cd MsgViewer/MSGViewer/target $ java -jar msgviewer.jar WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. Gtk-Message: 16:25:09.804: Failed to load module “canberra-gtk-module”

Read more comments on GitHub >

github_iconTop Results From Across the Web

I am having problem with mvnw package command. ...
It appears that the installation that your CLI environment points to ( $JAVA_HOME , usually) is an older version. You can upgrade it, ......
Read more >
Building Java maven project with mvnw wrapper fails on ...
The issue is not about file permissions but about line endings. The mvnw script is transformed by git on Windows. Here's a PR...
Read more >
A Quick Guide to Maven Wrapper
Learn how to set up and use Maven Wrapper in a Maven project.
Read more >
mvn clean install - a short guide to Maven
You can use this guide to understand what a 'mvn clean install' really ... Install will then compile, test & package your Java...
Read more >
fix “mvn command not found” Error
The “mvn command not found” error mainly occurs when Apache Maven is not installed on your system. Before invoking Maven, you need to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found