DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Tritonus in RCP Application
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Sep 2009
Question Tritonus in RCP Application - 09-22-2009, 07:37 AM

Hey there,

About a year ago I switched one of my applications from Swing to Eclipse RCP. Since then it won't accept any MP3 files anymore, by saying: "Unsupported Audio Format". Today I figured out why! I'm using a jar file from tritonus.org to handle MP3 files, as Java by itself is not able to handle MP3 files. This worked perfectly in the Swing environment. Problem with Eclipse RCP is, that it has it's own Class-loading mechanism and therefore this Code won't load the required class:

Code:
JDK13Services.getProviders(AudioFileReader.class);
The necessary class is available, but it's missing as a Provider. It's not possible to add the missing class to the list of providers, from my point of view. I wondered if anyone ever had the same or a similar problem!?

Thanks in advance, Sebastian
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Sep 2009
Default 09-23-2009, 06:02 AM

Resolved!

Use the mp3spi.jar from Java News - JavaZOOM. It won't make the Mp3Reader available through JDK13Services, but you can handle MP3 files separately from others (wave, midi, etc...)
Reply With Quote
Reply

Tags
tritonus mp3 rcp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application fails on Mac - can't load application class kam_83 Eclipse 0 05-02-2008 11:21 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com