linkifier icon indicating copy to clipboard operation
linkifier copied to clipboard

Cannot run .jar file

Open raresboza opened this issue 3 years ago • 5 comments

Even though I meet all the dependencies, I cannot seem to run your .jar file. I also tried with the source code itself but to no avail. I seem to get a "Could not find or load main class controller.MainApp". I am very interested in your project, could you help me?

raresboza avatar Dec 20 '21 12:12 raresboza

  1. Try to run some of the older releases.
  2. Try it on a different computer.
  3. Try different version of Java.

Also, if the second line of the error is:

Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

then it is because OpenJDK does not by default include JavaFX (but Java 8 from Oracle includes that).

janmotl avatar Dec 20 '21 13:12 janmotl

I found the .jar in a previous version. linkifer-3.2.7

Hello Jan, I have the same problem. I cannot seem to run the ZIP file.
Please excuse my lack of knowledge with java - I'm just trying to support old production equipment with built-in SQL Server Express.

C:\Temp>java -jar linkifier-master.zip Error: Invalid or corrupt jarfile linkifier-master.zip C:\Temp\linkifier-master\gui\controller>java MainApp.java Error: Could not find or load main class MainApp.java

Java(TM) SE Runtime Environment (build 1.8.0_131-b11)

DrDomino avatar Apr 04 '23 15:04 DrDomino

My problem still persists as well. I just gave up on trying to solve it. A pity but maybe it gets fixed.

raresboza avatar Apr 04 '23 20:04 raresboza

@DrDomino

  1. Based on the error message, Java can't load GUI. The GUI requires Java from Oracle: https://stackoverflow.com/questions/33895107/how-to-know-if-i-am-using-open-jdk-or-oracle-jdk What is the output of java -version?
  2. If Oracle version of Java does not resolve it. Try to run even older versions of Linkifier.
  3. If that does not help, I propose to run it without GUI: https://github.com/janmotl/linkifier/issues/8

jan-motl avatar Apr 05 '23 05:04 jan-motl

I updated the README with a solution for M1 processors.

janmotl avatar Apr 07 '23 15:04 janmotl