Module org.applied_geodesy.jag3d not found

by jeremylkk95, Tuesday, May 14, 2024, 07:50 (34 days ago)

I tried running the following command on the source code using ubuntu linux, "java -jar -Xms200m -Xmx500m --class-path "./resources;" --module-path "jag3d.jar;./javafx/lib;./lib;" --module org.applied_geodesy.jag3d/org.applied_geodesy.jag3d.ui.JAG3D" and it display the following error.

Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.applied_geodesy.jag3d not found

Is there any additional module I need to install or run?

Module org.applied_geodesy.jag3d not found

by Micha ⌂, Bad Vilbel, Tuesday, May 14, 2024, 08:19 (34 days ago) @ jeremylkk95

Hello,

I tried running the following command on the source code using ubuntu linux

What is the installed Java version? YOu can check it via java -version.

To run JAG3D, you can simple use

java -jar jag3d.jar

or with some extra space

java -jar -Xms200m -Xmx500m jag3d.jar

You will get the warning WARNING: Unsupported JavaFX configuration. However, it should work as you can see on my screenshot (testing on windows system).

[image]

Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.applied_geodesy.jag3d not found

Please check the correct syntax using java -help, especially the file separator. For windows user, it is:

    --module-path <module path>...
                  A ; separated list of directories, each directory
                  is a directory of modules.

At Ubuntu the separator can be a : instead of a ;

Kind regards
Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

Tags:
Java, Ubuntu, Linux, module-path

Module org.applied_geodesy.jag3d not found

by jeremylkk95, Tuesday, May 14, 2024, 08:31 (34 days ago) @ Micha
edited by jeremylkk95, Tuesday, May 14, 2024, 08:48

Thank you Micha for the prompt reply.

Current Directory:
total 24
drwxrwxrwx 2 jeremy jeremy 4096 May 14 16:24 bin
drwxrwxrwx 2 root root 4096 May 14 16:20 exe
drwxrwxrwx 2 root root 4096 May 14 16:20 lib
drwxrwxrwx 2 root root 4096 May 14 16:20 META-INF
drwxrwxrwx 7 root root 4096 May 14 16:23 resources
drwxrwxrwx 3 root root 4096 May 14 16:20 src


My current java verion is 17.0.10:
openjdk 17.0.10 2024-01-16
OpenJDK Runtime Environment (build 17.0.10+7-Ubuntu-122.04.1)
OpenJDK 64-Bit Server VM (build 17.0.10+7-Ubuntu-122.04.1, mixed mode, sharing)

[image]

I currently trying to compile and generate a jar file for the project from the source code as there no jag3d.jar and I encountered the module error. Is there anyway for me to compile and run the application? :-)

Module org.applied_geodesy.jag3d not found

by Micha ⌂, Bad Vilbel, Tuesday, May 14, 2024, 08:51 (34 days ago) @ jeremylkk95

Hello,

My current java verion is 17.0.10:

Okay, this version should work. Did you try java -jar jag3d.jar?

I currently trying to compile and generate a jar file for the project from the source code as there no jag3d.jar and I encountered the module error. Is there anyway for me to compile and run the application? :-)

The jar file is not part of the repository but it is generated from the sources. Compiling your own version will not solve your problem because Java works platform independent. However, I use Eclipse for developing JAG3D using the Github sources. Please note, you have to provide the FX library.

[image]

Regards
Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

Module org.applied_geodesy.jag3d not found

by jeremylkk95, Wednesday, May 15, 2024, 09:21 (33 days ago) @ Micha

Thank you Micha for the reply.

Is it possible to compile and export the project to a runnable jar file without any additional dependency or into ".exe"?

-> Currently, the source code can be run after including "javafx".

[image]

JAG3D and Ubuntu

by Micha ⌂, Bad Vilbel, Wednesday, May 15, 2024, 04:41 (33 days ago) @ jeremylkk95

Hello,

I have tried to start JAG3D under Ubuntu and it works as already described, i.e.,

./jdk-22.0.1/bin/java -jar -Xms200m -Xmx500m --class-path "./resources" --module-path "jag3d.jar:./javafx/lib:./lib:" --module "org.applied_geodesy.jag3d/org.applied_geodesy.jag3d.ui.JAG3D"

or simple

./jdk-22.0.1/bin/java -jar -Xms200m -Xmx500m jag3d.jar

no need to compile the sources again.

[image]

Kind regards
Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

Tags:
JAG3D, Ubuntu, Linux

RSS Feed of thread