Trouble with configuration

37 views
Skip to first unread message

mwal...@ccmtrading.com

unread,
Aug 9, 2018, 11:22:16 AM8/9/18
to marlin-renderer
I'm trying to use Marlin in my application but I can't seem to get it to load.  I'm using the Oracle JVM on Ubuntu 18.04.  This is my Java command line:

/usr/lib/jvm/java-9-oracle/bin/java -Dsun.java2d.renderer=org.marlin.pisces.MarlinRenderingEngine --patch-module java.desktop=/home/mwallace/Downloads/marlin-0.9.2-Unsafe-OpenJDK9.jar -Dsun.java2d.xrender=true -Dsun.java2d.ui
Scale=2 -Dorg.slf4j.simpleLogger.defaultLogLevel=info -Xmx1024m -cp /mnt/share/apps/lib/v20180807-1524/* <more arguments for my application here>

This is the output of java -version:

java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)

I'm not seeing any output that indicates that Marlin is being loaded.  I also noticed that if I substitute a bad path for the --patch-module argument (i.e a non existent file/directory) everything seems to hum happily along.  So I have no way to know whether my command line is properly formatted, though the file I indicated is definitely there and readable.

Any help would be greatly appreciated.

Laurent Bourgès

unread,
Aug 9, 2018, 11:58:26 AM8/9/18
to marlin-...@googlegroups.com
Hi,
As marlin is already present in jdk9, just use the patch-module arg, no need to specify the renderer which is sun.java2d.renderer.DMarlinRenderingEngine (sun package):
java --patch-module java.desktop=/home/mwallace/Downloads/marlin-0.9.2-Unsafe-OpenJDK9.jar -Dsun.java2d.renderer.log=true ...

I enabled logs to let you see Marlin settings in stdout ... and check if the patch is in action.

Hope it will work now,
Cheers,
Laurent

--
You received this message because you are subscribed to the Google Groups "marlin-renderer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marlin-render...@googlegroups.com.
To post to this group, send email to marlin-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages