Sun classes accessible?

Is the following expected?

import “sun.audio.AudioPlayer”
=> Java::SunAudio::AudioPlayer

AudioPlayer # works
=> Java::SunAudio::AudioPlayer

java.sun.audio.AudioPlayer
NameError: cannot load Java class java.sun.audio.AudioPlayer

?

-=r

Do you mean ‘Java::sun.audio.AudioPlayer’?

Java::sun.audio.AudioPlayer
does work.
So I’m a bit confused…

‘Java’ refers to Java support and the rest is the package. lowercase
java is for the java package:

java.lang.System
Java::java.lang.System

Both of the above refer to the same class.

-Tom

On Tue, Oct 4, 2011 at 3:43 PM, Roger P. [email protected] wrote:

http://xircles.codehaus.org/manage_email


blog: http://blog.enebo.com twitter: tom_enebo
mail: [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs