Amiga!
Home
Support
Get the SDK
(Answer) (Category) Amiga Inc. Faq-O-Matic : (Category) Amiga SDK FAQ : (Category) Java and the Amiga SDK :
I've some problem to excute an application that use JMF classes.....
I've implementated an application that use Java Media Framework with jdk 1.1.8. With sun jdk the program run well, withouth problem. With sdk my application got an exception when call the method "createPlayer" of the Manager class. jcode: (*env)->CallStaticVoidMethod returned an exception java.lang.NoClassDefFoundError: com/ms/security/PermissionID
I want know if is sdk problem, or i'm not authorizated too use JMF class under no sun java virtual machine.
My application is this and in my classpath i have jmf.jar and sound.jar (JMF classes):
import java.awt.*; import java.awt.event.*; import javax.media.*; import java.io.*; import javax.media.protocol.*; import java.net.*; import java.awt.Toolkit;
 
public class PAmiga implements ControllerListener
  { 
    Player player; 
       
    public void open() 
    { 
      player= null; 
      URL mediaURL; 
      try 
      { 
        mediaURL = new URL ("file:////usr/FileMultimediali/ProvaMp3.mp3"); 
        player=Manager.createPlayer(mediaURL); 
      } 
      catch (Exception e)
      { 
        System.out.println("Non posso aprire il file");
      } 
      player.addControllerListener (this); 
      player.start();
      System.out.println("player.start()");
    } 
    
    public synchronized void controllerUpdate (ControllerEvent ae) 
    {
        System.out.println("public synchronized void controllerUpdate (ControllerEvent ae)");   
    } 
 
    public static void main (String [] args) 
    { 
      PAmiga lettoreMultimediale = new PAmiga(); 
      lettoreMultimediale.open(); 
    } 
 
  } 

See my answer to your proceeding related question for suggestions on using the JMF with the Amiga SDK.
[Append to This Answer]
ddv_74, joe
Previous: (Answer) Is Sdk completily compatible with Sun jdk1.1.8?
This document is: http://www.amiga.com/cgi-bin/fom.cgi?file=141
[Search] [Appearance]
This is a Faq-O-Matic 2.710.
This FAQ administered by ray@amiga.com


© 1996-2000 Amiga, Inc.