export to .jar executable package not working [message #1862391] |
Thu, 30 November 2023 15:33 |
Tapio Palomäki Messages: 20 Registered: November 2023 |
Junior Member |
|
|
when running a "extract required into.." option, double click does not display anything, but the fully working application in Eclipse IDE does nothing, displays nothing.
when running a "package required into.." option, double click shows" Java VML window, with an error: a java exception has occured. this package does not contain the jdt package.
so both of the completely self-contained .jar files do not work with latest official JRE from oracle, jre8u391 on winx64. I suppose all java vm's should be fully compatible, at least the openjdk and the official oracle jre, right?
The three options of the required libraries into the package,
which none make any actual sense, what's the real difference?
why not remove the options, that confuse the user?
the default should be the one that works best by default.
edit: well, running the package with JAVA JDK 21 (or 17), not JAVA 8u391, makes it work. related to the compliance level of the compiler, and the installed JRE/JDK Java version.
[Updated on: Fri, 01 December 2023 10:47] Report message to a moderator
|
|
|
Re: export to .jar executable package not working [message #1862507 is a reply to message #1862391] |
Thu, 07 December 2023 22:28 |
Tapio Palomäki Messages: 20 Registered: November 2023 |
Junior Member |
|
|
To continue with the topic:
If there is, say, a "res" folder in the project, including a folder structure of images, model files, it does not get automatically included in the export to self-contained executable .jar in a way it would work with loading files with path "res/file.png" directly. The system only tries to find the file on the local file system but not in the jar file. Is this a java feature or could the manifest be extended to include file structure in the .jar file instead of just the user local file system?
Yep no deploying or extracting logic of the .jar package, but just direct execution from the .jar package, including all resources. they might be temporarily extracted in memory or in a temp folder by the JVM, but there should not be any install or permanent deployment of the .jar files. Only direct .jar file run and loading all resources from that file (with tmp in memory/disk if necessary).
ps. there is no cancel button for edit/post messages, this forum.
[Updated on: Thu, 07 December 2023 22:44] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02927 seconds