Sitemap

Amicuk Programming Answers

Runtime error when i try to execute this program

2015-10-11   Views:0

Advertisement

I get a runtime error when i run this file using appletviewer. Please help me in getting out of this problem. The runtime errror is: C:\prashanth>appletviewer HelloMedia.java java.lang.NoClassDefFoundError: javax/media/ControllerListener at java.lang

I get a runtime error when i run this file using appletviewer. Please help me in getting out of this problem.
The runtime errror is:
C:\prashanth>appletviewer HelloMedia.java
java.lang.NoClassDefFoundError: javax/media/ControllerListener
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:142)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:108)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:373)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:579)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:515)
at sun.applet.AppletPanel.run(AppletPanel.java:293)
at java.lang.Thread.run(Thread.java:484)
The code is :
<applet code=HelloMedia.class width=500 height=400>
<param name=FILE value="globe.avi">
</applet>
import java.applet.*;
import java.awt.*;
import java.net.*;
import javax.media.*;
public class HelloMedia extends Applet implements ControllerListener
Player player;
public void init()
setLayout(new BorderLayout());
String mediaFile = getParameter("FILE");
try
URL mediaURL = new URL(getDocumentBase(), mediaFile);
player = Manager.createPlayer(mediaURL);
catch(Exception e)
System.err.println("Exception : " + e);
player.addControllerListener(this);
public synchronized void controllerUpdate(ControllerEvent event)
if(event instanceof RealizeCompleteEvent)
Component compVisual = player.getVisualComponent();
Component compControl = player.getControlPanelComponent();
if(compVisual != null)
add("Center", compVisual);
if(compControl != null)
add("South", compControl);
validate();
public void start()
player.start();
public void stop()
player.stop();
player.deallocate();
public void destroy()
player.close();

The replay answer
Advertisement
My classpath has the following value
.;.;.;C:\PROGRA~1\JMF21~1.1\lib\sound.jar;C:\PROGRA~1\JMF21~1.1\lib\jmf.jar;C:\Program Files\CosmoSoftware\CosmoPlayer\npcosmop211.zip;%systemroot%\java\classes;.;
Please help me out.
Prashanth

Go to See the other 3 answers

Runtime error when i try to execute this program

Category:DefaultRelease time:2015-10-11Views:130

I get a runtime error when i run this file using appletviewer. Please help me in getting out of this problem. The runtime errror is: C:\prashanth>appletviewer HelloMedia.java java.lang.NoClassDefFoundError: javax/media/ControllerListener at java.lang[More]

Runtime error(Time limit exceeds)after executing select query

Category:DefaultRelease time:-0001-11-30Views:130

Dear experts, whenever i executing the select query in this zprogram i am getting runtime error that time limit exceeds.i am using inner join and into table.after that also i am geetting error. how can i resolve it?? SELECT LIKP~VBELN LIKP~WADAT_IST[More]

Payroll Runtime error - Division by 0 (type P) in program "RPCTX0KC"

Category:DefaultRelease time:-0001-11-30Views:130

Dear All, I am running Canadian Payroll on ECC 6.0 (Curent HRSP level is 40 SAPKE60040) . when I run the transaction : PC00_M07_CALC_SIMU it throws ABAP Dump. Standard Schema (Tcode : PE01) --> K000 is used in running payroll. Currently if I dont wan[More]

Error when i try to execute a program on my Mac

Category:DefaultRelease time:2015-10-11Views:130

Hi,my program work very well on my Pc with xp,but when i try to execute it on my mac(with macosx tiger)the compiler gives me this error: java.net.BindException: Permission denied maybe it is a permisson error,root/user or buh? this program runs on po[More]

Runtime Error Contract -System attempted dynpro 0201 in program "SAPLXM06"

Category:DefaultRelease time:-0001-11-30Views:130

Hi Experts, While Creating Contract in Me31k transaction in IS-Retail server , I am getting a ABAP Runtime Error : "The system attempted to use dynpro 0201 in program "SAPLXM06".This dynpro does not exist". Program SAPMM06E Include MM0[More]

Can't find answer to Query Of Queries runtime error

Category:DefaultRelease time:2015-10-11Views:130

Not only I browsed this forum but also googled this problem but unfortunnately I have no luck in finding the answer. All I did was writing this simple query: <cfquery name="test" dbtype="query"> select SSN,BirthDate from myquery[More]

How to catch CONVT_NO_NUMBER runtime error in ABAP Proxy

Category:DefaultRelease time:2015-10-11Views:130

Hi all,        In our abap proxy program, sometimes the CONVT_NO_NUMBER will happen and cause the program dump and then stuck the whole queue. I noticed that this error cannot be caught by CX_ROOT exception class. So, how can I catch this runtime err[More]

Reg runtime error

Category:DefaultRelease time:2015-10-11Views:130

hai to all, i am trying to run PO bapi. suddenly i am getting runtime error as "Data objects in a Unicode program are not convertible" Error in ABAP application program.                                                                            [More]

Runtime Errors STORAGE_PARAMETERS_WRONG_SET

Category:DefaultRelease time:2015-10-11Views:130

Hi, My functional team had run customized program in dialog, but after few minutes the error occured as below:- Runtime Errors STORAGE_PARAMETERS_WRONG_SET What happened? The current program had to be terminated because of an error when installing th[More]

Hit Runtime ERROR

Category:DefaultRelease time:-0001-11-30Views:130

HI, This message appears at the bottom of the screen when i execute my program.     "Runtime error TIME_OUT has occurred" When i debug the program, it seems to take longer time than expected at this FM     "HR_INFOTYPE_OPERATION" When[More]

Catch CONVT_NO_NUMBER runtime error in OO ABAP Program

Category:DefaultRelease time:2015-10-11Views:130

Hi all,        In our abap proxy program, sometimes the CONVT_NO_NUMBER will happen and cause the program dump. I noticed that this error cannot be caught by CX_ROOT exception class.        Some told me I can use the CATCH SYSTEM-EXCEPTIONS sentence[More]

Hot
I have multiple mac's (both desktops and laptops) as well as multiple iphones and ipads at home.  I am limited in itunes to only 5 devices - what should i do?  set-up a different itunes account for my kids (but then they will not be able to access th [More]
My daughter's ipod touch (2nd generation) is not being recognized by itunes.... The cords are fine (they recoginize my iphone) but we can sync her ipod to her library because of this. I have tried updating itunes, turning the ipod off and back on, re [More]
While creating data in IT580 ( Previous Employment Tax Details).. The screen is not visible completely. Only following feields are visible : Pers. No. Name Category Location From & To date Previous Employment Tax Details : Leave Encahsment Exemption [More]
Hello allllllllll... When runnning any form i get the error Internet Explorer has encountered a problem and needs to close.We are sorry for the inconvenience. Any help pls. Abdetu..Thanks Sim for reply I went to the pass : C:\Developer10\j2ee\DevSuit [More]
I had to erase and re-install the operating system. I thought I had iTunes covered by burning an iTunes backup to a CD, but when trying to restore iTunes from the CD it will restore a few songs and then give an error message that it was unable to rea [More]
Hi , I need some of your help regarding restricting repeat cheque printing . Once a cheque is printed , it can not be printed again . But here we have customised form , customised program and customised t-code for that . Can we  maintain a z table wh [More]
I'm messing around with parsing data from an XML. I'm trying to pull data form the WoW armory page (yes I'm an addict :). If you go to the page and select view source you can see the XML, however when I try using URL and a buffer to output the data t [More]
I wanted to experiment with profiles so I created a new profile called "temp". This seemed to work but when I tried to go back and reselect any of the older profiles I received an error message saying that this couldn't be done while any instanc [More]
From my iPhone, can I import single images/videos one at a time? Example: on a PC, I can view every image and video file individually. After preview, I can copy and paste only the images/videos that I want, one at a time. How can I do this same proce [More]
I have a black image covering half a page whilst placed next to it is a black box which has been sampled from the colour of the image, the CYMK are the same yet when printed the box comes out a different shade of black. suggestions?There are a couple [More]