Skip to content

JRuby fails to display Java splash at startup on OS X #2386

@donv

Description

@donv

Get the JRuby logo using

curl http://jruby.org/images/jruby-logo.png > jruby-logo.png

The following Java program Main.java:

public class Main {
    public static void main(String[] args) {
        try {
        Thread.sleep(3000);
        } catch (InterruptedException ie) {
        System.out.println("Interrupted!");
        }
        System.out.println("Hello World");
    }
}

compiled with

javac Main.java

and started with the following line

java -splash:jruby-logo.png Main

displays the JRuby logo as a splash. This works on Java 6, Java 7, and Java 8.

However the corresponding Ruby command line

ruby -rjava -J-splash:jruby-logo.png -J-XstartOnFirstThread -e "sleep 3;puts 'Hello world'"

does not display the splash using Java 7 or Java 8 on OS X. It does work using Java 6.

I would expect this to work using Java 7 and Java 8 as well.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions