Forum: JRuby A Question About java_import

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ccb9dcb7ff797b6875d8c98b61978474?d=identicon&s=25 Michael C. (kabbotta)
on 2014-06-08 19:54
Does anyone know why I sometimes need to use quotations when using

For instance, this works fine:

    java_import com.badlogic.gdx.Gdx

But if I try and use this,

    java_import box2dLight.RayHandler

it tells me it can't find the library. But it works fine if I add the

    java_import 'box2dLight.RayHandler'

Is there something missing from the setup of the .jar? It's not a big
deal, but I have no idea what's going on.
Alex Tambellini (Guest)
on 2014-06-08 20:18
(Received via mailing list)
My guess is this line of code:

So packages that start with java, javax, javafx, com, and org will work
without quotes, but for any other packages you will need to quote.
Ccb9dcb7ff797b6875d8c98b61978474?d=identicon&s=25 Michael C. (kabbotta)
on 2014-06-09 02:14
Ahh, thanks. That makes a lot of sense.
This topic is locked and can not be replied to.