playing audio in an applet and embedding that applet into a jsp or Html file
Bharath Sekariyer
Greenhorn
Joined: Sep 12, 2011
Posts: 2
posted
0
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
Marshal
Joined: Mar 22, 2005
Posts: 35237
7
posted
0
What do you have so far, and where are you stuck making progress?
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
Marshal
Joined: Mar 22, 2005
Posts: 35237
7
posted
0
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
Joined: Feb 03, 2011
Posts: 246
posted
0
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
Marshal
Joined: Mar 22, 2005
Posts: 35237
7
posted
0
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.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: playing audio in an applet and embedding that applet into a jsp or Html file