esig / dss-demonstrations

Examples of DSS integration
GNU Lesser General Public License v2.1
92 stars 70 forks source link

NexU not detected or not started ! Download the open source version of NexU (more info) #30

Closed MPParsley closed 2 years ago

MPParsley commented 2 years ago

https://ec.europa.eu/cefdigital/DSS/webapp-demo/sign-a-pdf

image

bsanchezb commented 2 years ago

Hello,

The DSS demonstrations webApp uses an integrated Nexu module for signing with a token or a smartcard. Please download an open-source version of Nexu using the link provided in the demo and run it locally.

Best regards, Aleksandr.

MPParsley commented 2 years ago

Thank you @bsanchezb!

dagnelies commented 2 years ago

Well, that "NexU" does not even start.

image

And the copyright is still from 2015 🙄

bsanchezb commented 2 years ago

Hello @dagnelies ,

The open-source version of Nexu is out of support since 2018. For the Pro-version of Nexu you need to contact https://nowina.lu/.

Best regards, Aleksandr.

dagnelies commented 2 years ago

Thanks for the prompt response.

...so basically, you cannot even try this european public service demo without buying some other commercial software. A bit disappointing.

bsanchezb commented 2 years ago

@dagnelies , the open-source version is still functionable, try to check why it is not working for you.

You can provide the logs here, which you can find in C:\Users\name\AppData\Local\Nowina\NexU\ folder.

Best regards, Aleksandr.

jesuslpm commented 6 months ago

I'm having similar issue. But I have NexU running, there is an icon that appears when I click on "Show hidden icons" on the task bar, I can right click on it and choose "About", this is what it shows:

AboutNexU

However the page still says "NexU not detected or not started !"

jesuslpm commented 6 months ago

Ok, you need to run NexU as administrator, perhaps because it tries to open a port under 1024. But if you run NexU-Startup.bat as administrator it fails to find javaw. So you need to do the following:

  1. Run "Command Prompt" as administrator
  2. CD into the folder you extracted the downloaded the zip file: cd "C:\Users\<User>\Downloads\nexu-bundle-1.22"
  3. Exeture the bach file from the command promtp: NexU-Startup.bat
  4. One dialog ask you to install a certificate into Trusted Root Certificates Authorities. Click yes.
  5. Refresh the demo page, now it detects NexU running.

PdfSign

The page ask you to plug a card reader, but it is not really needed, you can use any certificate on your certificate store.

Next do the following:

  1. Upload the pdf file
  2. After a while, 20 seconds or so, NexU ask you for a certificate
  3. The process complementes and the signed pdf is open on Acrobat Reader. You can see the signature on the signature panel.

After the demo you should remove the localhost certificate, friendly name "NexU-localhost" from Trusted Root Certificates Authorities

maeri commented 4 months ago

Hello - is there a way to run NexU on other platforms ( mac / arm / linux ) ?

Also getting error msg when running software `~/Downloads/nexu-bundle-1.22  1.8 11:42:44 AM ❯ java -version openjdk version "1.8.0_412" OpenJDK Runtime Environment (Zulu 8.78.0.19-CA-macos-aarch64) (build 1.8.0_412-b08) OpenJDK 64-Bit Server VM (Zulu 8.78.0.19-CA-macos-aarch64) (build 25.412-b08, mixed mode) ~/Downloads/nexu-bundle-1.22  1.8 11:48:46 AM ❯ java -Djavafx.preloader=lu.nowina.nexu.NexUPreLoader -Dglass.accessible.force=false -jar nexu.jar

Exception in thread "main" java.lang.NoClassDefFoundError: javafx/application/Application at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:757) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:419) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:352) at lu.nowina.nexu.NexuLauncher.loadPropertiesFromClasspath(NexuLauncher.java:152) at lu.nowina.nexu.NexuLauncher.loadProperties(NexuLauncher.java:146) at lu.nowina.nexu.NexuLauncher.launch(NexuLauncher.java:51) at lu.nowina.nexu.NexuLauncher.main(NexuLauncher.java:47) Caused by: java.lang.ClassNotFoundException: javafx.application.Application at java.net.URLClassLoader.findClass(URLClassLoader.java:387) at java.lang.ClassLoader.loadClass(ClassLoader.java:419) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:352) ... 16 more `

Anyone to respond ? Thank you ...

bsanchezb commented 4 months ago

Hello,

From what I see, you run nexu.jar with a java command. This forces the program to be run with installed Java on local computer, instead of using an enveloped Java folder within the Nexu archive. JavaFX has been removed from Java package starting from JDK 11, and shall be provided separately. In your case, Nexu is not able to find JavaFX classes, and it eventually fails.

You need to start application using the embedded Java package (i.e. using \nexu-bundle-1.22\java\bin\java.exe); or install JavaFX locally and set path to javafx folder through environment variables.

Best regards, Aleksandr