Notifications
Clear all

SQLInform not starting with Java 1.8.0_211  

  

0

So I installed the latest Java 1.8.0_211 on my new laptop.

Made sure Java is in the path:

  C:\SQL_Inform>java -version
   java version "1.8.0_211"
   Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
   Java HotSpot(TM) Client VM (build 25.211-b12, mixed mode)

For some reason though I cannot start SQLInform:

   C:\SQL_Inform>java SQLinFormFXpro_5.1.71.jar
   Error: Could not find or load main class SQLinFormFXpro_5.1.71.jar

Any ideas?  Never had a problem before with this.

 

 

@Jared

So previously this was fixed by the following as per Guido:

"thanks for your mail and your post in the forum. Sometimes these issues happen when more than one Java version is installed. Could you please try following:

goto your Java8 folder and insert this command:

java -jar C:\SQL_Inform\SQLinFormFXpro_5.1.71.jar"

Now I have a new laptop, installed the same Java - it doesn't work again.

I see that the requirement is now 1.8.1+.

Due to the new licensing restrictions from Oracle, I downloaded and installed openJDK 13.

Same problem.

Here are details:

C:\Java\jdk-13.0.2\bin

C:\Java\jdk-13.0.2\bin>.\java.exe -version
openjdk version "13.0.2" 2020-01-14
OpenJDK Runtime Environment (build 13.0.2+8)
OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)

C:\Java\jdk-13.0.2\bin>
C:\Java\jdk-13.0.2\bin>java -jar C:\SQL_Inform\SQLinFormFXpro_5.1.71.jar
Error: Could not find or load main class com.sqlinform.app.SQLinFormFX
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

@Jared

Hi if you install openjdk you will also need to install openjfx from https://openjfx.io/
Regards
Guido

@Guido

Thanks Guido.

I tried installing OpenJDK 14, with OpenJFX over the top of it.

Assuming that is the correct way to do it, as there doesn't seem to be a lot of instructions for this.

C:\SQL_Inform>java -version
java version "14" 2020-03-17
Java(TM) SE Runtime Environment (build 14+36-1461)
Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)

C:\SQL_Inform>java -cp C:\SQL_Inform\SQLinFormFXpro_5.1.71.jar;C:\SQL_Inform -jar C:\SQL_Inform\SQLinFormFXpro_5.1.71.jar
Error: Could not find or load main class com.sqlinform.app.SQLinFormFX
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

3 Answers
0

Hi,

I have the same issue.

 

Regards,

0

HI Sergei,

do you have more than one Java version installed?

Do yo have OpenJDK installed? In OpenJDK the JavaFX is not included.

0

The solution was to install Java 8 241 from java.com.

 

Your Answer


 
Preview 0 Revisions Saved
Share: