Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes JMF applet wont find JMF package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JMF applet wont find JMF package" Watch "JMF applet wont find JMF package" New topic
Author

JMF applet wont find JMF package

AKEEL MALIK
Greenhorn

Joined: Feb 03, 2005
Posts: 26
I was wondering if anybody could tell me why my applet wont find the following class package.

java.lang.NoClassDefFoundError: javax/media/CaptureDeviceManager
at MorphCam.(MorphCam.java:63)
at Morph.(Morph.java:47)

this is my applet code can anybody please help

applet
codebase = "C:\JMF-2.1.1e\lib\jmf.jar"


Thank You
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8718
    
    6

Since our last go-around in the April Fool's forum was deleted, let's try this again. Read the documentation for the APPLET tag. Your code base can't contain a path on the local file system. How would other clients access it?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
AKEEL MALIK
Greenhorn

Joined: Feb 03, 2005
Posts: 26
Other clients are not required to access the program, i've basicllay developed a webcam applet which compiles fine as Ive imported the java media packages but it wont run i'm assuming it is a problem with my applet code. Ive read the applet doc, and dont know of anything different that I need to do.

I forgot it was April fools day. lol
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8718
    
    6

Other clients are not required to access the program

That does not change the design and functionality of the Java language.

I really can't make it any more clear:
Your code base can't contain a path on the local file system.
From the Java Tutorial page I posted earlier:

By default, a browser looks for an applet's class and archive files in the same directory as the HTML file that has the <APPLET> tag. . . You can use the CODEBASE attribute to tell the browser in which directory the applet's files are located

Look at the code base in your applet tag. Is it a directory name?
AKEEL MALIK
Greenhorn

Joined: Feb 03, 2005
Posts: 26
The codebase in the applet tag is a directory name, i've tried having the jar file in the same directory but it still does not seem to work, Ive tried the codebase as follows "C:\JMF-2.1.1e\lib\jmf.jar", ".", "jmf.jar", but nothing seems to work.

i'm not 100% sure whether its not working because of the applet codebase. Could it be another problem.
AKEEL MALIK
Greenhorn

Joined: Feb 03, 2005
Posts: 26
will anybody not help me, I do not understand what i need to do ive read the applet tag doc and tried some alternate methods but to no avail.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMF applet wont find JMF package
 
Similar Threads
What is the best way to show a video in a swing Application
Is JMF really so flaky?
jmf or something else
JMF Not Supported
Audio in Java