dlsc-software-consulting-gmbh / jfxcentral

15 stars 5 forks source link

Need info about jfx-central.com! #40

Open ctoabidmaqbool opened 1 year ago

ctoabidmaqbool commented 1 year ago

Hi devs! This repository is source code of jfx-central.com or just source code of native app for Windows, Mac or Linux.

Is there any source code of jfx-central.com website?

What is the basic purpose of this repository?

dlemmermann commented 1 year ago

This repository contains the jfx-central application source code which runs on desktops and in browsers and also on mobile devices. This is the beauty of JavaFX. Write once, run anywhere. Please check out the website jpro.one to see how this is possible.

ctoabidmaqbool commented 1 year ago

@dlemmermann Thanks for you quick nice response!

What are the requirement to run project?

I tried oracle Jdk 1.8 and Zulu Jdk 17 both not works showing error!

with oracle jdk 1.8

[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:
Detected JDK Version: 1.8.0-192 is not in the allowed range 17.

with zulu jdk 17

[INFO] --- jpro-maven-plugin:2023.1.0:run (default-cli) @ client ---
[INFO] Waiting for JPro Server
java.lang.UnsupportedClassVersionError: com/jpro/boot/JProBoot has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
    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:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)
Error: A JNI error has occurred, please check your installation and try again
[ERROR] Server could not be started. Error-Code: 1
Exception in thread "main" [INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  37.431 s
[INFO] Finished at: 2023-03-28T16:21:32+05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal one.jpro:jpro-maven-plugin:2023.1.0:run (default-cli) on project client: Error while waiting for the server.: error occurred -> [Help 1]
[ERROR] 
ctoabidmaqbool commented 1 year ago

Okay, now my project is successfully run, before I was trying from Intellij idea, maybe there is some problem.

I now run command in Cmd as:

set JAVA_HOME=D:\Programs\zulu17.34.19-ca-jdk17.0.3-win_x64
set PATH=%JAVA_HOME%\bin;%PATH%
set GRADLE_HOME=D:\Programs\gradle-7.3.3-bin
set PATH=%GRADLE_HOME%\bin;%PATH%
set MAVEN_HOME=D:\Programs\apache-maven-3.8.1-bin
set PATH=%MAVEN_HOME%\bin;%PATH%
./mvnw -P jpro jpro:run

And then project run successfully in browser!