Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
donv opened this issue Dec 30, 2014 · 5 comments
Closed

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

donv opened this issue Dec 30, 2014 · 5 comments
Assignees
Milestone

Comments

@donv
Copy link
Member

donv commented Dec 30, 2014

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.

@donv
Copy link
Member Author

donv commented Dec 30, 2014

Reporting bugs is always a good way to find answers yourself 😄

More information. This also fails to display the splash:

java -splash:jruby-logo.png -XstartOnFirstThread Main

and this also works with all versions of Java:

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

So Java cannot display the splash when the -XstartOnFirstThread option is given.

The -XstartOnFirstThread is necessary to get Eclipse SWT to work correctly.

@donv
Copy link
Member Author

donv commented Dec 30, 2014

I have reported this here:

http://bugs.java.com/view_bug.do?bug_id=JI-9017890

Since it is not directly related to JRuby, I'll close the issue.

@chrisseaton
Copy link
Contributor

The bug URL leads to 'this bug is not available for me'. Is it the right one?

@donv
Copy link
Member Author

donv commented Jan 3, 2015

This is my first time filing an issue with OpenJDK, so I am not familiar with the process.

My guess is that there is a human step to make the issue visible in the system. I cannot see it myself either.

@donv
Copy link
Member Author

donv commented Jan 3, 2015

This is the response I got:

We are evaluating this report and have stored this with an Review ID: JI-9017890. In the event this report is determined as a defect or enhancement request, it will be referenced with a new Bug ID and will be listed on Bugs.java.com. For other related issues, please visit our Bug Database at http://bugs.java.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants