I have new in JMF-Any one help me
Hai
I am beginner of JMF.i have facing one problem for past 3 days.
I wrote one applet program for playing mp3 song.Atfer i wrote one jsp file it has several radio button when i clicked any one of them it would called applet(i have using plugin tag for this embbed).i got one error i.e. Class not found exception.but i tried in appletviewer it's work perfectly.
My path folders are:
Applet program: c:/Tomcat/webapps/Vj/web-inf/classes/AB.java
Jsp File:c:/Tomcat/webapps/Vj/playapp.jsp
My code is applet code
import java.applet.Applet;
import java.awt.*;
import java.io.IOException;
import java.io.PrintStream;
import java.net.MalformedURLException;
import java.net.URL;
import javax.media.*;
<APPLET height=300 width=300 code="AB.class">
<PARAM NAME="file" VALUE="artist - Track 01.mp3">
</APPLET>
public class AB extends Applet
implements ControllerListener
public SimplePlayerApplet()
player = null;
public void init()
MediaLocator medialocator = null;
Object obj = null;
if ((s = getParameter("FILE")) == null)
System.out.println("S value is:NULL");
Fatal("Invalid media file parameter");
try
URL url = new URL(getDocumentBase(), s);
System.out.println("URL Value is:" + url);
s = url.toExternalForm();
catch(MalformedURLException malformedurlexception) { }
try
if((medialocator = new MediaLocator("file:" + s)) == null)
Fatal("Can't build URL for " + s);
System.out.println("catch in malformed");
try
player = Manager.createPlayer(medialocator);
System.out.println("it is from create player");
catch(NoPlayerException noplayerexception)
System.out.println(noplayerexception);
Fatal("Could not create player for " + medialocator);
catch(MalformedURLException malformedurlexception1)
Fatal("Invalid media file URL!");
catch(IOException ioexception)
Fatal("IO exception creating player for " + medialocator);
public void start()
if(player != null)
player.start();
System.out.println("This from start");
public void stop()
if(player != null)
System.out.println("This from stop");
player.stop();
player.deallocate();
public void destroy()
player.close();
System.out.println("This from Destory");
void Fatal(String s)
System.err.println("FATAL ERROR: " + s);
throw new Error(s);
Player player;
}now i run in appletviewer it's work perfectly.After that
I remove applet tags in this program and again i was compiled.
then now i embeded in jsp .
Jsp is below:
<%@ page language="java" import="java.io.*;" %>
<HTML><HEAD><TITLE>Doctor Page</TITLE>
<META http-equiv=Content-Language content=en-us>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR>
<script language="JavaScript">
function Check(){
for (var i=0; i < document.playChk.R1.length; i++)
if (document.playChk.R1.checked)
var n = document.playChk.R1[i].value;
document.playChk.action="Doctor.jsp";
document.playChk.submit();
</script>
</HEAD>
<BODY>
<%
if (request.getParameter("R1") != null){
out.println("U Have Checked : " + request.getParameter("R1"));
System.out.println("U Have Checked : " + request.getParameter("R1"));
%>
<jsp:plugin type="applet" code="AB.class" height="30" width="10" >
<jsp:params>
<jsp:param name="File" value="artist - Track 01.mp3">
</jsp:param>
</jsp:params>
<jsp:fallback>
Plugin tag OBJECT or EMBED not supported by browser.
</jsp:fallback>
</jsp:plugin>
<%
else{
System.out.println("This is First Strike");
out.println("This is First Strike");
%>
<FORM method="post" name="playChk" >
<%
try{
File f =new File("C://Tomcat 5.0/webapps/Vj/images");
System.out.println();
String lists[] =f.list();
out.println("Length:" + lists.length);
%>
<TABLE width="100%" border=1>
<%
for(int i =0 ;i < lists.length-1;i++){
System.out.println( f + lists[i]);
%>
<TR>
<TD><IMG height=109 src="<%=f + "/" + lists[i]%>" width=150 border=0></TD>
</TR>
<TR>
<TD><INPUT type="radio" checked value="<%=lists[i]%>" name="R1" onClick="Check()"></TD>
</TR>
<%
catch(Exception e){
System.out.println("Exception" + e);
%>
</FORM>
</BODY>
</HTML
Audio file is placed in same dir of applet.
now i am getting Class not found exception.
Ant one help me
With Regards
K.suresh
It might be if you explain "the Problem" - whats the error
for a start?
Similar Messages
-
I cannot see any videos due to blocked plug in. I tried to down load adobe flash and still have problem. can any one help
Hello,
Safari, blocked plug-ins…
http://support.apple.com/kb/HT5271 -
Hello guys..!! I have got my new iphone 4 2 days ago.The same day it got a problem of auto restart in every 1, to 2 minutes. I updated and restored it many times...but of no use... can any one help me how to solve this problem..!!
Go to Settings/General/Reset - Erase all content and settings. the connecto to iTunes and restore as a New phone. Do not restore any backup. If the problem persists you have a hardware problem. Take it to Apple for exchange.
This assumes that the phone is not hacked or jailbroken. If it is you will have to go elsewhere on the internet for help. -
I have new I pad 2 and when I get connected to iMac I can't find it detected in I tunes can any one help me and i am new to I pad
If it's not showing on the left-hand sidebar of your Mac's iTunes (if you are on iTunes 11 then you can enable the sidebar via option-command-S) under Devices then see if this troubleshooting article helps : http://support.apple.com/kb/TS1591
-
I have MAC OSX 10.5.8 and need to install adobe illustrator. I checked the compatibility and found that CS5 will work.Can any one help where i can find it. The trail version is fine with me as i just have to use it for couple of days till i get my mac book back from service. Can any one help me on this.
You are welcome, ameronweb.
To elaborate a bit, you may come across offers of a new/unopened/unregistered version, which is the simplest case (you would need a guarantee). Other cases require much detailed information (and a guarantee).
If upgrading to 10.6.8 or higher is an option, you could use CS6. -
I have a early 2008 macbook 13 inch and dont have the pass word can any one help?
I have an early 08 macbook that is locked by password and do not know Itunes account. can any one help thanks.
Upgrading to Yosemite
You can upgrade to Yosemite from Lion or directly from Snow Leopard. Yosemite can be downloaded from the Mac App Store for FREE.
Upgrading to Yosemite
To upgrade to Yosemite you must have Snow Leopard 10.6.8 or Lion installed. Download Yosemite from the App Store. Sign in using your Apple ID. Yosemite is free. The file is quite large, over 5 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
OS X Mavericks/Yosemite - System Requirements
Macs that can be upgraded to OS X Yosemite
1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
7. Xserve (Early 2009) - Model Identifier 3,1 or later
To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
Are my applications compatible?
See App Compatibility Table - RoaringApps. -
I have an Imac running snow leopard and have recently installed a cannon i-sensys lbp7750Cdn printer since then I can't get the printer working and the air port has lost the DNS servers; if it ever had them!!! but it dose not look happy and it is telling me so. Can any one help please?
Snow Leopard breaks quite a few drivers - my Canon exhibited the same problem.
I eventually found updated drivers on the Canon website. You can try that with the HP, but if the all-in-one is more than a year or so old, don't hold your breath.
You can also try Software Update to see if it will offer new drivers, or failing that go to the Support Downloads site and search for HP updates.
In fact there's a new one for HP at the top of the list just now.
You may not necessarily want the latest one, though - check the specs to see if your model is covered; if not, search for the previous update etc. -
Since itunes and apple tvs latest update I have had problem wtching movies on apple tv via my itunes can any one help, movie takes a very long time to load sometimes never, it use to work really well, whats going on please help?
You might find useful information in item D1 of Time Machine Troubleshooting.
-
I am not able to register my Apple ID for iCloud and the error is "the maximum no of free accounts have been activated on this phone" can any one help me why I need to do
Sir, your Apple ID can be used as an iCloud account as well. They are both the same thing.
You can learn more from --> Set up your Apple ID for iCloud and iTunes - Apple Support -
hi there can any one help me i have a iphone 5 but my mobile data is not working but a can connect to my wifi no bother
talk to your carrier about the data subscription and possible settings changes to their apn than
-
I'm not able to copy and paste files from my mac to hard disk and usb. I have tried dragging the items I want to copy to those devices but it won't work. I also have tried copying and pasting those files onto those devices too but that doesn't work too. Can any one help?
Hi BobRz
Thanks for you suggestion but it didn't work - are there other ways for solving this problem? Or is it because my files that I want to copy and paste onto my hard disk etc are too big? (However there is space on my hard disk and it works on a PC) -
Have just down loaded Yosemite over Mountain Lion, Indesign CS5 does not work ( Am dependant on it) although Bridge , Light Room and Elements operate OK How do I solve this rapidly. Can any one help on this issue. Thanks
Sorry to say it, but I think you can see from Bob's response that there's no way to solve this rapidly.
Did you take an image of your Mountain Lion install before upgrading to Yosemite? Roll back to that. If you're not in the habit of taking a snapshot of your system before performing operating system upgrades - get in that habit. If you are dependent on anything at all on hour computer, having a reliable backup method in place is essential. If you don't have a Time Capsule, or some other way to run Time Machine onto a disk that's not in your computer, go set that up yesterday.
If you can't just remove Yosemite and roll back to Mountain Lion for whatever reason, you can partition your drive so that you can install both Yosemite and Mountain Lion on the same drive, and then boot into Mountain Lion when you need to work in CS5. Or you can take your Mountain Lion disc (I assume you have one, no?) and then use it to create a virtual machine in something like VirtualBox to run Mountain Lion from inside Yosemite. -
I have problem in quicklook for mp4 files in my mountain lion os 10.8.2 so please help me what i need to do? but i can view mov,3gp,jpeg files problem is only with mp4 files.... any one help me...
I have problem in quicklook for mp4 files in my mountain lion os 10.8.2 so please help me what i need to do? but i can view mov,3gp,jpeg files problem is only with mp4 files.... any one help me...
-
i bought an iphone5 from saudi arabia,can i use it in india?is there any requirements i have to take?many one are saying i need to unlock it,please any one help me,i did'nt activate my phone yet.
If the phone is unlocked then you can use it in India.
If your phone is locked, then the only way to get the phone unlocked is to contact your phone company/carrier. The person that sold you the phone in Saudi should have told you whether it was locked or unlocked. Contact them to check and then contact the carrier to have it unlocked if it is locked.
Other than that there is not a lot that you can do - perhaps it was unwise to purchase a phone in Saudi - it won't have Facetime on it if you got it there. -
When trying to turn off compatibility mode on my itunes i dont have a compatibility tab after right clicking properties. Can any one help???
Hi Roger
Thank you for your reply.
My original feed is: http://casa-egypt.com/feed/
However, because I modified the feed http://feeds.feedburner.com/imananddinasbroadcast and nothing changed, I redirected it to another feed and then I deleted this feed.
Is there any way to change the feed in itunes? The only feed I have now is http://feeds.feedburner.com/CasaEgyptStation
I tried to restore the feed http://feeds.feedburner.com/imananddinasbroadcast but feedburner refused.
I know that I missed things up but I still have hope in working things out.
Thanks is advance.
Dina
Message was edited by: dinadik
Maybe you are looking for
-
I'm thinking about upgrading my old 802.11g router for a new airport extreme. Can it connect to a usb printer and external hard drive at the same time and acutally work. It only has one usb port on the back. thank you!
-
Can't play flv in acrobat pro 9
Hi, I want to play a flv clip in acrobat 9 pro. I can import it but if I want to play the clip I get only a grey square. I use adobe premiere pro cs4 to export the clip to flv. What I'm doing wrong? Thx
-
Issue sourcing from Microsoft Access - Syntax error (missing operator)
I apologize if this has been discussed before. I used the search and went through 7 pages of results, but didn't see a similar issue. I'm using Windows 7, ODI 11.1.1.5. I'm trying to source from a local MS Access DB to an Oracle DB. The session fails
-
Total count and count based on column value
Primaryid Id Status 1 50 1 2 50 1 3 50 1 4 50 3 5 50 2 6 50 1 7 51 1 8 51 2Im looking for
-
USB connected in non compatible mode E75
Hello pleeze help... phone wont charge,via charger or usb,(ive tried diffrent charger+usb leads) ive done a battery pull +sim,several times,it boots up,lights up,vibrates,showing nokia logo,then dies... its my sons phone,he said he had been taking ph