Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMF applet wont find JMF package

 
AKEEL MALIK
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9258
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
AKEEL MALIK
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9258
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic