You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

JasonS

Trainee

  • "JasonS" is male
  • "JasonS" started this thread

Posts: 65

Date of registration: Feb 17th 2010

  • Send private message

1

Sunday, July 1st 2012, 5:31pm

Java 7 JRE breaks playing sounds saved as resources in Jabaco project

Hi,

After an update to Java 7, the playing of sounds imported into the resource folder into my hosted Jabaco projects seemed to be broke in applets made and tested with JRE 6 or previous and Jabaco, but only if loading the sounds as internal jar resources. You have to load them via url() function post-jar-load. I have fixed most of my apps on my site, but have one left to fix. Xmas game hasnt been fixed yet, as I plan to do a huge update to that anyways. It's a pain how things get changed like this in the JVMs and then updates to things have to occur, guess it keeps us on our feet, lol. But with some quick googling, I found out this was something that I probably never should of done that way anyways. It is something to do with the classloader and inputstream.

http://stackoverflow.com/questions/55297…t-not-supported

'Mark/Reset not supported' is what I got in Jabaco exceptions too--but only when running applet from browser, worked fine via Jabaco IDE.. it was also fine if i ran the jar file from the desktop, just got the exceptions when loading via web browser. That's what threw me off. So I had to make a few functions/subs that pre-load all the sounds into their holder via HTTP via url() before the program fully loads... You will be able to see the right way to do this now, in the updated code in for my project JRPGT. The current code source zip I have hosted for sharing is located at http://www.tecktronic.net/jrpgt/jrpgt_clientsrc.zip

Hope this helps anyone else running into this issue.

Regards,
Jason

This post has been edited 1 times, last edit by "JasonS" (Jul 1st 2012, 10:51pm)


Rate this thread
WoltLab Burning Board