Skip to content

Creation of Script Engine Fails with Open JDK11 : java.lang.NoSuchFieldError: O_TMPFILE  #5334

Description

@nmondal

Environment

Provide at least:

  • JRuby version (jruby -v) and command line (flags, JRUBY_OPTS, etc)
    jruby-9.2.0.0
  • Operating system and platform (e.g. uname -a)
    Mac OS X - 10.13.6 High Sierra - Open JDK 11
    Other relevant info you may wish to add:
  • Installed or activated gems
  • Application/framework version (e.g. Rails, Sinatra)
  • Environment variables

Expected Behavior

  • ScriptEngine should be created

Actual Behavior

  • The error log is shown below.
Exception in thread "main" java.lang.NoSuchFieldError: O_TMPFILE
	at org.jruby.RubyFile.createFileClass(RubyFile.java:204)
	at org.jruby.Ruby.initCore(Ruby.java:1547)
	at org.jruby.Ruby.bootstrap(Ruby.java:1318)
	at org.jruby.Ruby.init(Ruby.java:1217)
	at org.jruby.Ruby.newInstance(Ruby.java:362)
	at org.jruby.embed.internal.AbstractLocalContextProvider.getGlobalRuntime(AbstractLocalContextProvider.java:82)
	at org.jruby.embed.internal.SingletonLocalContextProvider.getRuntime(SingletonLocalContextProvider.java:99)
	at org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.runParser(EmbedRubyRuntimeAdapterImpl.java:167)
	at org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.parse(EmbedRubyRuntimeAdapterImpl.java:94)
	at org.jruby.embed.ScriptingContainer.parse(ScriptingContainer.java:1227)
	at org.jruby.embed.jsr223.JRubyCompiledScript.<init>(JRubyCompiledScript.java:59)
	at org.jruby.embed.jsr223.JRubyEngine.compile(JRubyEngine.java:69)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions