#Module Not Found, when doing "mvn clean install"

1 messages · Page 2 of 1

dusky abyss
#

And I think the project wouldn't like that solution

remote quest
#

use> Exception in thread "JavaFX Application Thread" java.lang.IllegalAccessError: class com.sun.javafx.embed.swing.SwingNodeHelper (in unnamed module @0x6a6681f1) cannot access class com.sun.javafx.util.Utils (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.util to unnamed module @0x6a6681f1

#

this comes when having both

java %VMARGS% --module-path "C:\Program Files\Java\openjfx-19_windows-x64_bin-sdk\javafx-sdk-19\lib" --add-modules javafx.controls,javafx.fxml,javafx.web --add-exports javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED,javafx.graphics/com.sun.javafx.embed.swing=ALL-UNNAMED -jar %USE_JAR% -nr %*

#

idk if I can do , between them

remote quest
dusky abyss
#

You can find it from the error message

#

the issue is I have no idea how many you need

#

It could be a lot

remote quest
#
WARNING: Unknown module: javafx.graphics/com.sun.javafx.embed.swing=ALL-UNNAMED specified to --add-exports
WARNING: Unknown module: javafx.graphics/com.sun.javafx.util=ALL-UNNAMED specified to --add-exports
USE version 7.1.1, Copyright (C) 1999-2024 University of Bremen & University of Applied Sciences Hamburg
Invalid extension directory 'C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-guiFX/oclextensions'
Error: Could not read plugin directory `C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-guiFX\lib\plugins'.
use> Exception in thread "JavaFX Application Thread" java.lang.IllegalAccessError: class com.sun.javafx.embed.swing.SwingNodeHelper (in unnamed module @0x45d72b0d) cannot access class com.sun.javafx.util.Utils (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.util to unnamed module @0x45d72b0d ```
remote quest
#

but this seems odd
WARNING: Unknown module: javafx.graphics/com.sun.javafx.embed.swing=ALL-UNNAMED specified to --add-exports
WARNING: Unknown module: javafx.graphics/com.sun.javafx.util=ALL-UNNAMED specified to --add-exports

dusky abyss
#

It might be possible to do it in a way that doesn't require any --add-exports and no JavaFX SDK by telling Maven to include the stuff for Windows, MacOS and Linux in the JAR

dusky abyss
remote quest
#

good question

#

this one right:
use-gui-jar-with-dependencies

dusky abyss
#

yes

#

Essentially you could add <classifier>win</classifier> to all JaavFX dependencies and then it would work for Windows

#

and then you could just run it with java -jar and don't need to do anything with modules - maybe

remote quest
#

il try that out

dusky abyss
#

The important thing when doing that is the following: Don't run it with --module-path, --add-modules or --add-exports

remote quest
#

so this one

:runApp
java %VMARGS% --module-path "C:\Program Files\Java\openjfx-19_windows-x64_bin-sdk\javafx-sdk-19\lib" --add-modules javafx.controls,javafx.fxml,javafx.web --add-exports javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED,javafx.graphics/com.sun.javafx.embed.swing=ALL-UNNAMED,javafx.graphics/com.sun.javafx.util=ALL-UNNAMED -jar %USE_JAR% -nr %*

#

would look like this?
:runApp
java %VMARGS% -jar %USE_JAR% -nr %*

#

you mean like this:

        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-graphics</artifactId>
            <version>17.0.13</version>
            <classifier>win</classifier>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-controls</artifactId>
            <version>17.0.13</version>
            <classifier>win</classifier>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-fxml</artifactId>
            <version>17.0.13</version>
            <classifier>win</classifier>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-web</artifactId>
            <version>17.0.13</version>
            <classifier>win</classifier>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-media</artifactId>
            <version>17.0.13</version>
            <classifier>win</classifier>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-swing</artifactId>
            <version>17.0.13</version>
            <classifier>win</classifier>
            <scope>compile</scope>
        </dependency>
dusky abyss
#

and run mvn package or mvn verify before running the JAR

remote quest
#

btw can I deleat this now:

dusky abyss
#

ok

remote quest
#

since I think you did say we dont need it anymore

dusky abyss
#

mvn clean automatically deletes it btw

worldly cargo
#

did you fix it?

remote quest
remote quest
worldly cargo
#

did you check if your javafx versions match the version on your project?

remote quest
#

I think dan1t would have realized that problem after 5 messages haha

remote quest
#

@dusky abyss
C:\Users\akifn\Desktop\MyProjects\java\useTesting>use-guiFX\src\main\resources\binFX\useFX.bat
Fehler: Zum Ausführen dieser Anwendung benötigte JavaFX-Runtime-Komponenten fehlen

worldly cargo
#

well probably, but I just ran into this issue literally 2 days ago and it resulted in the exact same problem you are experiencing so it was worth a shot

remote quest
#

it says it needs the needed javafx-runtime-components which are mising

dusky abyss
remote quest
#

:runApp
java %VMARGS% -jar %USE_JAR% -nr %*

#

when I called it like this

#

I did mvn verify

dusky abyss
#

yes that's fine

violet coyoteBOT
# remote quest ah I see thank you still

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.

remote quest
#

glad to hear yours got fixed

remote quest
dusky abyss
worldly cargo
remote quest
remote quest
#

it a problem with swing/javafx and the project being Multi Module

worldly cargo
#

just give it a try, it will take you around 30 seconds and can be easily reversed. My project was multi module too with javafx

#

it was a real odd solution and to this day I have no idea why it worked

remote quest
dusky abyss
#

the "proper" solution would be the thing with copying dependencies - or jlink

#

but the issue with that is split packages

remote quest
#

I see yeah the split packages issue we had

dusky abyss
#

which could in theory also be solved with extracting the offending dependency

dusky abyss
remote quest
#

alright il stick with mvn for now than

dusky abyss
#

I can tell you something that can be done:
You can change the guiFX pom.xml to do the following:

  • When mvn package is executed, it runs dependency:copy but excludes xercesImpl
  • It extracts xercesImpl but removes the class causing the split package issue
    And then in your bat, you can run the project with --module-path on:
  • The JAR generated by mvn package (not the jar-with-dependencies)
  • The copied dependencies
  • The extracted dependency
#

So essentially do some changes to the guiFX pom.xml and change the bat a bit

remote quest
#

alright I will note this down for now and check it out later definetly

#

for now I reached something big, which was getting this problem "fixed" since I wasnt able to run from cmd since 2 weeks

#

@dusky abyss if I should have questions or problems can I msg you or should I just post it in #1023632039829831811 again?

dusky abyss
#

or if you don't close this post, you can still use it

remote quest
#

ah posts are there forever?

dusky abyss
remote quest
#

like "inactive"

remote quest
dusky abyss
#

but it may be harder to find

remote quest
#

your such a life saver man thank you very much boohoo 🤍

#

JavaBot is so sick of me haha

dusky abyss
# remote quest yeah sure would like to see
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>3.8.1</version>
        <executions>
          <execution>
            <id>copy-deps</id>
            <phase>package</phase>
            <goals>
              <goal>copy-dependencies</goal>
            </goals>
            <configuration>
              <excludeArtifactIds>xercesImpl</excludeArtifactIds>
            </configuration>
          </execution>
          <execution>
            <id>unpack-xercesImpl</id>
            <phase>package</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>xerces</groupId>
                  <artifactId>xercesImpl</artifactId>
                </artifactItem>
              </artifactItems>
              <excludes>
                <exclude>org/w3c/dom/html/*</exclude>
              </excludes>
              <outputDirectory>${project.build.directory}/xercesImpl</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
#

Then you build it with mvn package (or mvn verify)

remote quest
#

ah thats what these xerces do

dusky abyss
#

and then you should theoretically be able to run it with a bat like

@echo off

if "%OS%"=="Windows_NT" @setlocal

rem CONFIGURATION
rem Add -Xss20m to VMARGS when using the generator
set VMARGS=

REM PATH1: C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-gui\target\use-guiFX-7.1.1.jar
REM PATH2: C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-gui\target\use-guiFX-jar-with-dependencies.jar

REM set USE_JAR="C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-guiFX\target\use-guiFX-jar-with-dependencies.jar"
set USE_JAR="C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-guiFX\target\use-guiFX.jar"
set USE_DEPENDENCIES="C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-guiFX\target\dependency"
set USE_UNPACKED="C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-guiFX\target\xercesImpl"

IF NOT EXIST %USE_JAR% (
    echo Cannot find USE executable. Please provide correct path to use.jar.
    goto end
)

:runApp
java %VMARGS% --module-path "%USE_JAR%;%USE_DEPENDENCIES%;%USE_UNPACKED%" org.tzi.use.mainFX.MainFX -nr %*

REM java %VMARGS% --module-path "C:\Program Files\Java\openjfx-19_windows-x64_bin-sdk\javafx-sdk-19\lib" --add-modules javafx.controls,javafx.fxml -jar %USE_JAR% -nr %*


if "%OS%"=="Windows_NT" @endlocal

:mainEnd
rem echo exit code:  %ERRORLEVEL%

:end
dusky abyss
dusky abyss
#

Does that approach work like that? idk I didn't test it

remote quest
dusky abyss
#

maybe I also messed up some configs, I jsut typed that out

remote quest
#

but it looks good

dusky abyss
#

Also practically you'd probably want to put all these things together in some directory (with the bat file) which you can then give to others who can just run it

remote quest
#

I guess you mean my javafx part

dusky abyss
# remote quest you mean the whole project?

only the things generated there meaning:

  • use-guiFX/target/dependency
  • use-guiFX/target/use-guiFX-YOUR_VERSION_HERE.jar
  • use-guiFX/target/xercesImpl
  • use-guiFX/src/main/resources/bin
#

these would (ideally) be required

remote quest
#

I am back faster then I thought haha

#

sooo I realized a big flaw of our solution, so the other solution allows parameters to be added to the .bat call like this for example:
use-gui\src\main\resources\bin\use.bat C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-core\src\main\resources\examples\Documentation\Fruits\Fruits.use

#

our call with mvn, would that somehow support something like that?

#
@ECHO OFF
rem This proxy batch file is needed for the BAD tests in /test/state

rem %*    = all command line arguments
rem %~dp0 = pathname of this batch file

call "%~dp0\start_use.bat" %*

#

so the %* it could contain a few parameters

dusky abyss
#

I think you can do mvn exec:java ... -Dexec.args="%*"

#

or similar

dusky abyss
remote quest
#

mvn -pl use-guiFX exec:java -Dexec.mainClass=org.tzi.use.mainFX.MainFX

#

so here how would i do that here?

dusky abyss
#

mvn -pl use-guiFX exec:java -Dexec.mainClass=org.tzi.use.mainFX.MainFX -Dexec.args="%*"

#

idk whether %* is the right thing

remote quest
#

ah so another dexec

dusky abyss
#

I don't know batch that well

#

yes

remote quest
#

I see thank you il test

violet coyoteBOT
# remote quest I see thank you il test

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.

dusky abyss
#

-Da=b means "tell maven that a is set to b"

remote quest
#

yeah %* should be correct

dusky abyss
#

so you are setting exec.args to whatever is %*

remote quest
pastel mountainBOT
#

So when i add it like this:

:runApp
mvn -pl use-guiFX exec:java -Dexec.mainClass=org.tzi.use.mainFX.MainFX -Dexec.jvmArgs="%VMARGS%" -Dexec.args="%*"

I get following:
java.lang.NullPointerException: in
(MainWindowFX.java:159)

which is this:


       if (fSession != null && fSession.hasSystem()) {
           fModelBrowser.setModel(fSession.system().model());
       } ```

inside MainWindowFX

This message has been formatted automatically. You can disable this using /preferences.

dusky abyss
#

btw for development, you can just run the main from IntelliJ

remote quest
#

idk its just a feature that should be there, but I will see if its ok this way

dusky abyss
#

btw I pinned that so you can easily find the message if you want to come back to that in the future

remote quest
violet coyoteBOT
violet coyoteBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.

remote quest
#

Idk why but it says that packages arent visible

dusky abyss
#

What's your full bat file?

remote quest
#

@echo off

if "%OS%"=="Windows_NT" @setlocal

rem CONFIGURATION
rem Add -Xss20m to VMARGS when using the generator
set VMARGS=

REM PATH1: C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-gui\target\use-guiFX-7.1.1.jar
REM PATH2: C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-gui\target\use-guiFX-jar-with-dependencies.jar

set USE_JAR="C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-guiFX\target\use-guiFX-jar-with-dependencies.jar"
set USE_DEPENDENCIES="C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-guiFX\target\dependency"
set USE_UNPACKED="C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-guiFX\target\xercesImpl"

IF NOT EXIST %USE_JAR% (
    echo Cannot find USE executable. Please provide correct path to use.jar.
    goto end
)

:runApp
java %VMARGS% --module-path "%USE_JAR%;%USE_DEPENDENCIES%;%USE_UNPACKED%" use-guiFX/src/main/java/org/tzi/use/mainFX/MainFX.java -nr %*

REM mvn -pl use-guiFX exec:java -Dexec.mainClass=org.tzi.use.mainFX.MainFX -Dexec.jvmArgs="%VMARGS%" -Dexec.args="%*"

REM mvn -pl use-guiFX javafx:run


REM java %VMARGS% --module-path "C:\Program Files\Java\openjfx-19_windows-x64_bin-sdk\javafx-sdk-19\lib" --add-modules javafx.controls,javafx.fxml,javafx.web -jar %USE_JAR% -nr %*


if "%OS%"=="Windows_NT" @endlocal

:mainEnd
rem echo exit code:  %ERRORLEVEL%

:end

dusky abyss
#

and the pom.xml of the guiFX module

violet coyoteBOT
# remote quest ```bat @echo off if "%OS%"=="Windows_NT" @setlocal rem CONFIGURATION rem Add ...
@echo off

if "%OS%"=="Windows_NT" @setlocal

rem CONFIGURATION
rem Add -Xss20m to VMARGS when using the generator
set VMARGS=

REM PATH1: C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-gui\target\use-guiFX-7.1.1.jar
REM PATH2: C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-gui\target\use-guiFX-jar-with-dependencies.jar

set USE_JAR="C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-guiFX\target\use-guiFX-jar-with-dependencies.jar"
set USE_DEPENDENCIES="C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-guiFX\target\dependency"
set USE_UNPACKED="C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-guiFX\target\xercesImpl"

IF NOT EXIST %USE_JAR% (
    echo Cannot find USE executable. Please provide correct path to use.jar.
    goto end
)

:runApp
java %VMARGS% --module-path "%USE_JAR%;%USE_DEPENDENCIES%;%USE_UNPACKED%" use-guiFX/src/main/java/org/tzi/use/mainFX/MainFX.java -nr %*

REM mvn -pl use-guiFX exec:java -Dexec.mainClass=org.tzi.use.mainFX.MainFX -Dexec.jvmArgs="%VMARGS%" -Dexec.args="%*"

REM mvn -pl use-guiFX javafx:run


REM java %VMARGS% --module-path "C:\Program Files\Java\openjfx-19_windows-x64_bin-sdk\javafx-sdk-19\lib" --add-modules javafx.controls,javafx.fxml,javafx.web -jar %USE_JAR% -nr %*


if "%OS%"=="Windows_NT" @endlocal

:mainEnd
rem echo exit code:  %ERRORLEVEL%

:end
dusky abyss
#

set USE_JAR="C:\Users\akifn\Desktop\MyProjects\java\useTesting\use-guiFX\target\use-guiFX-jar-with-dependencies.jar"
That shouldn't be the jar-with-dependencies

remote quest
#

why again was it supposed to be not that one?

dusky abyss
remote quest
# remote quest ```xml ```

btw here I too out the :

                   <execution>
                        <id>unpack-xercesImpl</id>
                        <phase>package</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>xerces</groupId>
                                    <artifactId>xercesImpl</artifactId>
                                    <outputDirectory>${project.build.directory}/xercesImpl</outputDirectory>
                                    <excludes>**/org/w3c/dom/html/*</excludes>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>

part

dusky abyss
remote quest
dusky abyss
#

like it copies all dependency JARs somewhere and also fixes the xercesImpl stuff

remote quest
#

I get till the same one I just the jar without dependencies

dusky abyss
#

You have use-guiFX/src/main/java/org/tzi/use/mainFX/MainFX.java in your bat. I think that should be org.tzi.use.mainFX.MainFX

remote quest
dusky abyss
#

or maybe -m YOUR_MODULE_NAME_HERE/org.tzi.use.mainFX.MainFX

remote quest
#
PS C:\Users\akifn\Desktop\MyProjects\java\useTesting> use-guiFX\src\main\resources\binFX\useFX.bat
Fehler: Hauptklasse org.tzi.use.mainFX.MainFX konnte nicht gefunden oder geladen werden
Ursache: java.lang.ClassNotFoundException: org.tzi.use.mainFX.MainFX
#

it says could not be found

dusky abyss
#

What's the name of the guiFX module?

#

in the module-info.java

remote quest
#

idk that somehow sometimes happens

remote quest
pastel mountainBOT
#
open module use.guiFX {

    requires javafx.graphics;
    requires javafx.fxml;
    requires use.core;
    requires javafx.controls;
    requires javafx.swing;
    requires javafx.web;
    requires org.kordamp.desktoppanefx.core;
    requires use.gui;

    exports org.tzi.use.mainFX;
    exports org.tzi.use.gui.mainFX;
} ```

This message has been formatted automatically. You can disable this using /preferences.

dusky abyss
#

java %VMARGS% --module-path "%USE_JAR%;%USE_DEPENDENCIES%;%USE_UNPACKED%" -m use.guiFX/org.tzi.use.mainFX.MainFX -nr %*

remote quest
#

oh wow that one worked

#

what did that change?

#

o you defined the module which one it needs to use?

#

ahh I guess it was looking in a different module maybe

dusky abyss
remote quest
#

makes totally sense

dusky abyss
#

if you use use-guiFX/src/main/java/org/tzi/use/mainFX/MainFX.java, it tries to run use-guiFX/src/main/java/org/tzi/use/mainFX/MainFX.java and figure out stuff by itself

remote quest
#

prob my structure making problems

dusky abyss
#

which didn't know about modules properly as it seems

dusky abyss
remote quest
#

Ty! but so how could someone run it now without having the need to have the whole project?

dusky abyss
remote quest
#

like you know when someone has the jar with dependencies they can run it without needing the project like in the swing version

dusky abyss
#

Like you would not use full paths

remote quest
dusky abyss
#

One option would be to give them a zip file containing

  • the dependency directory
  • the guiFX JAR
  • the xercesImpl directory
  • the bat file
    and ensure the relative paths are set up in a way that it works whenever extracting the zip file
#

you can also configure Maven to put everything in a single directory with the correct layout

#

But since it works, you might want to commit and push first

remote quest
#

xercesImpl Directory? I dont have that

remote quest
#

Ah I had a typo there sorry

#

I took out that xerces part bcs it was causing problems

#

so this is the only thing added in pom.xml as a new plugin:

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>3.8.1</version>
                <executions>
                    <execution>
                        <id>copy-deps</id>
                        <phase>package</phase>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
                            <excludeArtifactIds>xercesImpl</excludeArtifactIds>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
dusky abyss
dusky abyss
remote quest
#

theres nothing at least I didnt see it

dusky abyss
#

but if it works without it, ig that would be fine

remote quest
#

btw can you maybe Help me out with a few warnings that kinda sound concerning when doing any mvn call?

#

like I did check stackoverflow but It felt like all they where saying i accept it theres nothing to fix it ☠️

remote quest
#

its these ones

#

Required filename-based automodules detected:

remote quest
dusky abyss
#

The good news about that warning is that you can pretty much ignore it as long as you don't publish it to a Maven repository

#

and if you are able to change names in the module-info.java if that's necessary in the future

#

but that would be something these library maintainers have to fix

dusky abyss
#

but that's more complicated to set up

#

and note: You can also configure Maven to automatically copy the bat file etc to the right location using the resource maven plugin if you want to

remote quest
#

am I not publishing it to one?

dusky abyss
#

since that isn't the case with you, that wouldn't be an issue

remote quest
#

I heared thats for javafx to create a runnable application for them kinda old but yeah

#

jut watched a video on youtube about it today, dont know thought how it would work out, but was looking forward to it, but first wanted to try out what you told me here

#

amazed that this worked

dusky abyss
#

btw I think if you build it on Windows, it might only work on Windows

#

because the JavaFX Maven plugin might select the Windows version of JavaFX

remote quest
remote quest
#

i guess i am not using it so far and not needed

dusky abyss
dusky abyss
remote quest
remote quest
#

I might try it out later on an macbook

dusky abyss
#

so you'd need to fix that

dusky abyss
#

Note: With jlink/jpackage, you would create different artifacts/files/installers/whatever for different operating systems

remote quest
dusky abyss
dusky abyss
#

e.g. $*

remote quest
dusky abyss
remote quest
#

I would need to check that out first, until than Il put that on lower priority i think

dusky abyss
remote quest
#

ah ok so its only a javaFX problem?

#

bcs its not in the java standard library anymore?

dusky abyss
dusky abyss
dusky abyss
#

You could also say "Users have to download Java and the JavaFX SDK" to avoid this problem but do you really want to do that?

remote quest
#

I have to look more into it than

remote quest
dusky abyss
#

Currently with the Swing version it would probably be users having to download Java

remote quest
dusky abyss
#

With jlink/jpackage, everything would come with the application

#

including Java

remote quest
#

ah I see

#

i didnt know java also in it in the "package"

dusky abyss
dusky abyss
remote quest
#

i was thinking only the dependencies like a jar with dep

#

just like as a java solution kinda

dusky abyss
#

jlink --> create a partial Java installation that only contains what you need (and also some extra things like your application and dependencies if you want to)
jpackage --> pretty much like jlink but it can create it as a single executable installer

remote quest
#

hmm so what would you recommend I should go for

#

should I like do the Zip? or should I do one of these both

#

Il need to first fix my code haha

#

at least the call works now with java form the bat and not with mvn, thank you Daniel!

violet coyoteBOT
dusky abyss
#

For now, you could make sure that Maven puts all files in one directory you can easily create a zip file from. So such a directory would contain

  • the stuff from (I think) src/main/resources/bin
    • You'd need to update the paths there
  • the guiFX JAR
  • the dependencies
  • the xercesImpl folder if necessary
#

if you have a directory like that (let's say target/dist) where Maven puts all these things automatically, you could just create a zip file and give that to others. After extracting that zip file, they could just run the bat

#

In principle, I think it would also be possible to make that work for multiple OSes but that would increase the size of the zip file (and you can still do that independently from the other things)

remote quest
#

Thank You @dusky abyss I will check these out and try that out!

violet coyoteBOT
remote quest
#

Mannnn @dusky abyss I can call now from the cmd with Parameters its working OMG

dusky abyss
#

nice

remote quest
#

Thanks to your help bro, I am sooo happpy

violet coyoteBOT
# remote quest Thanks to your help bro, I am sooo happpy

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.

remote quest
#

has been a while I felt so good ngl

#

i will sleep well tonight

#

we are geniuses

dusky abyss
#

good night

remote quest
#

Thank You and wishing you the same