Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Java9 module-info.java
#1
Hi ULC-Team,

I'm playing around with the java9 feature jlink. I'm trying to pack the client in a zip-file with the java runtime. For that it would be great if the ulc-core-client library would have a module information file.  Can you tell me if you are working on that, will it come maybe in one of the next releases?

greetings, henrik
Reply
#2
Hi Henrik,

RIA Suite 9 is built with Java 8.

We have not explored jlink and modularization of jars of ULC so far.

Are you looking at jlink feature as an alternative for JWS?

Please see http://riasuite.canoo.com/forum/showthread.php?tid=7866 . It has info about one alternative to JWS.

Thanks

Janak
Reply
#3
Hi, not as an alternative for JWS, about that problem we talked already with Andreas and I build an own solution where I use spring boot to pack everything in a fat jar with 4MB in the end.

Now we are planing to distribute maybe ULC-Client with a java-runtime, I'm checking javapackager, launch4j, jlink and more.

But so on, I will check how I can pack the ulc-client in a module, we will see if it will work.
Reply
#4
(10-12-2018, 03:49 PM)feidner Wrote: Hi, not as an alternative for JWS, about that problem we talked already with Andreas and I build an own solution where I use spring boot to pack everything in a fat jar with 4MB in the end.

Now we are planing to distribute maybe ULC-Client with a java-runtime, I'm checking javapackager, launch4j, jlink and more.

But so on, I will check how I can pack the ulc-client in a module, we will see if it will work.


Hi, I added module-info.java to ulc-core-client.jar and also to the other libraries we use at the client. In the end I have a Windows-EXE program which ist about 28MB. It includes ulc-core-client and our additional 3rd party client libraries, and the special platform java program to run this client. The main class ist a CustomizableStandaloneLauncher. The EXE program opens a browser page to login via single-sign-on infrastructure, after this login the ulc session will be opended with the session id from the single-sign-on login.
On github (https://github.com/feidner/jdeps-jlink) I have an project where you can see how to create module-info.java and the use of jdeps and jlink.
Ask me directly if you have any questions.
Reply


Forum Jump: