Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run .jar file #7

Open
raresboza opened this issue Dec 20, 2021 · 5 comments
Open

Cannot run .jar file #7

raresboza opened this issue Dec 20, 2021 · 5 comments

Comments

@raresboza
Copy link

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?

@janmotl
Copy link
Owner

janmotl commented Dec 20, 2021

  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).

@DrDomino
Copy link

DrDomino commented Apr 4, 2023

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)

@raresboza
Copy link
Author

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

@jan-motl
Copy link

jan-motl commented Apr 5, 2023

@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: CMD Tool  #8

@janmotl
Copy link
Owner

janmotl commented Apr 7, 2023

I updated the README with a solution for M1 processors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants