Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8420837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:58:06+00:00 2026-06-10T02:58:06+00:00

I am trying to compile a vlcj application into a java applet. I have

  • 0

I am trying to compile a vlcj application into a java applet. I have the 3 jar files needed for vlcj to run in /lib. And my class file in/src. In eclipse, the applet works fine in the applet viewer. But when I package the jar file and load up my test html page. Nothing happens! I know the applet requires being signed due to the sand-boxing of java applets. And have signed the applet but I surely must be doing something wrong.

These are the steps I make:

1) So to create the applet first I compile the .java file to a .class file and store the .class file in /bin.

javac -cp lib/vlcj-2.1.0.jar:lib/platform-3.4.0.jar:lib/jna-3.4.0.jar Test.java

2) I then create my jar file with

jar cvf Test.jar lib/* Test.class

3) I then generate the keys with:keytool

4) I then sign the Test.jar file with jarsigner to produce SignedTest.jar.

5) I then Export the public key to certificate

6) and then import that certificate as a trusted certificate.

My Test html page open the java applet with:

<applet code="bin/Test.class" archive="SignedTest.jar” width=200 height=200>

Are any of these steps wrong? Am I missing a stage or two?
And a bonus question? Anyone know how to get console output in linux?

— Edit —

This is the structure of the Signed Jar File.

   703 Wed Aug 22 09:25:16 BST 2012 META-INF/MANIFEST.MF
   908 Wed Aug 22 09:25:16 BST 2012 META-INF/SIGNFILE.SF
   782 Wed Aug 22 09:25:16 BST 2012 META-INF/SIGNFILE.DSA
   500 Wed Aug 22 09:06:28 BST 2012 Test$1.class
  1448 Wed Aug 22 09:06:28 BST 2012 Test.class
    40 Tue Aug 14 11:36:48 BST 2012 Notes
1008730 Tue Jul 10 13:15:48 BST 2012 lib/jna-3.4.0.jar
913436 Tue Jul 10 13:15:48 BST 2012 lib/platform-3.4.0.jar
278211 Tue Jul 10 13:15:48 BST 2012 lib/vlcj-2.1.0.jar
   371 Tue Jul 10 13:23:54 BST 2012 .project
   351 Tue Jul 10 13:16:18 BST 2012 .classpath
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:58:08+00:00Added an answer on June 10, 2026 at 2:58 am
    java.lang.NoClassDefFoundError: uk/co/caprica/vlcj/component/EmbeddedMediaPlayerComponent.
    

    The Jar containing uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent needs to be added to the run-time class-path of the applet. That is achieved via the archive attribute of the applet element. It should be a comma delimited list of Jars that are required for the applet. Based on the compilation details and assuming they are all in the same directory as the HTML, might lead to this applet element.

    <applet 
        code="Test" 
        archive="SignedTest.jar,vlcj-2.1.0.jar,platform-3.4.0.jar,jna-3.4.0.jar" 
        width=200 
        height=200>
    </applet>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to compile a java source file that uses two jar files (trove
I trying to compile and package up my java application but I am facing
When trying to compile a c++ file in textmate (this happens when clicking run),
Was trying to compile some code from this SO question and run into this
While trying to compile some code out of .txt files (at run time), I
Trying to compile a iPhone/iPad application with SDK3.2 and am getting this error: Undefined
When trying to compile this code: #include <iostream> #include <vector> using namespace std; class
Iam trying to compile a file of the following format by making a parser
Im trying to compile a simple class library project,its from Source Safe. However,when i
I'm trying to compile a class Tmp that implements an interface TmpInter . /*

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.