Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

JMF applet wont find JMF package

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 9625
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 9625
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic