Is the following expected?
import “sun.audio.AudioPlayer”
=> Java::SunAudio::AudioPlayerAudioPlayer # works
=> Java::SunAudio::AudioPlayerjava.sun.audio.AudioPlayer
NameError: cannot load Java class java.sun.audio.AudioPlayer
?
-=r
Is the following expected?
import “sun.audio.AudioPlayer”
=> Java::SunAudio::AudioPlayerAudioPlayer # works
=> Java::SunAudio::AudioPlayerjava.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:
–
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.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs