Error : Could not find or load main class - maven-2

I have compiled the maven project using "mvn install" command.
test.jar file is created in the path of /project/target/test.jar.
I am just trying run the the command "sudo java -jar test.jar".
Getting below error
Error: Could not find or load main class com.xxx.xx.controller.MainApp.
Could you please help to resolve this error.
I am new this technology(maven).
Note: This code I am compiling in ubuntu 20.04 64 bit machine.

Issue is resolved after reinstalling JDK 8.

Related

Error when installing a python module in Linux

I am encoutering two kinds of issues while trying to install a package called Boltztrap2.
1) Trying to install Boltztrap2 using 'pip3'. However, when I punch in the command, the process goes smoothly for a while and then spits out an error :
BoltzTraP2/sphere/frontend.cpp:32:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
I did some troubleshooting and found out that it is just a path issue - I confirmed this by typing 'locate Python.h'. However, I don't get how to manually incorporate this change since the 'pip3' command that I use downloads the program and compiles it automatically. I don't seem to have access to change any scripts, or rather I do not know how to, since I'm kind of new to all this.
PS: I do not have sudo access.
2) Trying to install Boltztrap2 by manually compiling the python setup file: This seems to work fine until the system spits out an error saying:
Error:numpy is not installed.
PS: Again, I do not have sudo access.
I would be very glad if someone could help me install this package through either method. I just want to get the software to work. Thanks in advance for any assistance.
python3 -m pip install --upgrade pip
pip3 install numpy
Check if you can upgrade pip?
If that works then you can pip install numpy.

Gnuradio OOT module has no attribute

I'm making a GNURadio OOT module on CentOS 7, and I've successfully gone through the cmake and make steps, imported it into GRC and can place it on the canvas with no errors. But when I run the graph, it throws an error saying Attribute error: module 'test' has no attribute 'testSource'
The testSource is the constructor of my c++ code that was generated from gr_modtool. After running sudo make install, that header file is installed at /usr/local/include/test/testSource.h. What am I missing here? Thanks in advance...
Did you run sudo ldconfig after sudo make install ?

Installation of Wpasupplicant failed on ubuntu 16.04 server, problems with libnl-3-dev

I am trying to install the latest Wpa_Supplicant on Ubuntu 16.04 server from the official website. According to http://deployingradius.com/scripts/eapol_test/ I uncommented CONFIG_EAPOL_TEST=yes and run make eapol_test but I get failed:
/usr/bin/ld: cannot find -lnl
collect2: error: ld returned 1 exit status
Makefile:1613: recipe for target 'eapol_test' failed
make: *** [eapol_test] Error 1
However, when I did the same but using Ubuntu 14.04 server, everything is ok!
I realized that the package libnl-devresolves the problem of **/usr/bin/ld: cannot find -lnl** for ubuntu14.04. However, the Ubuntu 16.04 does not have libnl-dev in his repository, instead of It has libnl-3-dev, but wpa_supplicant failed when I run make eapol_test.
Could anyone help me install wpa_supplicant on ubuntu 16.04 plz?, I am trying run everything on ubuntu 16.04 and not on ubuntu 14.04.
Thank you in advance,
Javier
You might try the following:
install the package libnl-genl-3-dev
in the .config file uncomment the following (2nd) line:
# Use libnl 3.2 libraries (if this is selected, CONFIG_LIBNL20 is ignored)
CONFIG_LIBNL32=y
I could then link the target correctly, because it then used "-lnl-3" instead of "-lnl"

nuget command line utility package restore with mono on ubuntu

I'm trying to restore packages with the nuget restore command using the nuget.exe command line utility.
I'm on Ubuntu 14.04, and have just performed apt-get update.
Calling mono --version returns:
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1)
Here is my exact call and response:
$ mono nuget.exe restore
WARNING: The initialization function tries to access Value on this instance
WARNING: The initialization function tries to access Value on this instance
WARNING: The initialization function tries to access Value on this instance
WARNING: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure
Unable to find version '2.0.14' of package 'FSharp.Data'.
Unable to find version '1.3.0.1' of package 'FsUnit'.
Unable to find version '1.3.0.1' of package 'FsUnit.Sample'.
Unable to find version '2.6.3' of package 'NUnit'.
I have tried with and without a nuget.config file in the same folder.
What's going wrong and what can I do to solve?
The problem you describe has to do with root security certificates.
Enter the following command in your terminal:
mozroots --import --sync
As per #ahri below, here is a more up-to-date answer:
mozroots --import --sync --url https://hg.mozilla.org/mozilla-central/raw-file/tip/security‌​/nss/lib/ckfw/builti‌​ns/certdata.txt
Source

Buildr doesn't find JAVA_HOME from Intellij

I have Buildr installed on Ubuntu and it works fine running from command line. I've also installed the Buildr plugin for Intellij IDEA. But I can't run commands such as compile from the IDE. It gives the following message:
/usr/local/bin/buildr compile
(in /path/to/project, development)
Compiling scala-spike
Compiling scala-spike into /path/to/project/target/classes
Buildr aborted!
RuntimeError : Are we forgetting something? JAVA_HOME not set.
But JAVA_HOME is set. The command echo $JAVA_HOME prints the correct path where Java is installed.
Make sure that you are passing JAVA_HOME while starting idea.sh.
Try starting IDEA with sh -c "export JAVA_HOME=/opt/java && $IDEA/bin/idea.sh"