janmotl / linkifier

Database reverse engineering
BSD 2-Clause "Simplified" License
45 stars 7 forks source link

Cannot run .jar file #7

Open raresboza opened 2 years ago

raresboza commented 2 years ago

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 commented 2 years ago
  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 commented 1 year ago

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 commented 1 year ago

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

jan-motl commented 1 year ago

@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
janmotl commented 1 year ago

I updated the README with a solution for M1 processors.