Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

playing audio in an applet and embedding that applet into a jsp or Html file

 
Bharath Sekariyer
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
hi guys . project is about playing a audio file through applet and embedding that applet into a jsp or a Html file to display it on the webpage .. can anyone help me with it ..
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you have so far, and where are you stuck making progress?
 
Bharath Sekariyer
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heh thanks for the reply .. i am done with my applet coding and i am able to play the sound through applet . now i want to play that sound on my webpage either through HTML or JSP . Using JSP i tried but during the runtime its showing the error message . and it tells some plugin in missing or something like that

And this is the error msg i get whn i try to play the applet through JSP and html .


Java Plug-in 1.6.0_26
Using JRE version 1.6.0_26-b03 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------


load: class SoundApplet.class not found.
java.lang.ClassNotFoundException: SoundApplet.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: SoundApplet.class

And the JSP is coding :
<%@ page language="java" %>
<html>
<head>
<title>Welcome JSP-Applet Page</title>
</head>
<body>
<jsp:plugin type="applet" code="SoundApplet.class"
width="400" height="400">
<jsp:fallback>
<p>Unable to load applet</p>
</jsp:fallback>
</jsp:plugin>
</body>
</html>


Please help me .
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I advise not to use JSP:plugin, but to use the <applet> tag directly. The problem seems to be that SoundApplet.class file is not where the browser expects it to be.
 
Rameshwar Soni
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bharath Sekariyer wrote: and it tells some plugin in missing or something like that

As far as the plugin is concerned it's not your mistake it is the browser manufacturing companies who fail to implement the latest Java version and we finally have to install the plugin for our applets to run
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rameshwar Soni wrote: As far as the plugin is concerned it's not your mistake it is the browser manufacturing companies who fail to implement the latest Java version and we finally have to install the plugin for our applets to run

Without knowing what, exactly, Bharath Sekariyer did and what the error message was, there really is no basis for making such a claim.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic