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 8588559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:49:54+00:00 2026-06-11T22:49:54+00:00

I am trying to develop a Java applet for scientific purposes. I am working

  • 0

I am trying to develop a Java applet for scientific purposes. I am working in Eclipse, on Ubuntu 11.04; since I needed some additional features, I included the libraries “flanagan.jar”, “jcommons.jar” and “jfreechart.jar”. Now, when I run the applet from inside Eclipse everything goes fine. When I try to do so OUTSIDE of Eclipse, however, not quite. To say a few examples:

1) if I try to run it by embedding it into an HTML file with or tags, the applet fails and I get an error because the definitions for the classes taken from the libraries are missing, even though I placed them in the same folder and used the proper archive value to tell the browser where to look for them;

2) if I try to compile the applet with javac, by inserting:

javac -classpath sourcefile.java library1.jar library2.jar

I get an error saying that the class names for the .jar files are only accepted if annotation processing is explicitly requested.

3) I can find no way to produce a single output .jar file embedding all the required library files. I also think it would be neat if I could avoid embedding the entire libraries (they weigh something around ~4 MB) and actually use only the .class files I really need. I don’t know how to do however. Could you give me some suggestion on how to do one of the three things above?

  • 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-11T22:49:55+00:00Added an answer on June 11, 2026 at 10:49 pm

    You need to place your jar list immediately after the -classpath argument using a colon : demilited list:

    javac -classpath library1.jar:library2.jar sourcefile.java 
    

    You could use Eclipse to produce a single output jar by using:

    Export...->Java->Runnable JAR File->Next->Copy required libraries into a sub-folder next to the generated JAR.
    

    Then you can either jar up the content of the new jar file sub-folder or use:

    javac -classpath sub_folder/*.jar sourcefile.java 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently trying to develop an android application in eclipse(java) which shows some jokes
I'm trying to develop a simple homework submission system with Java. I'm working on
I'm new to Android development in Java and Eclipse. I am trying to develop
I am trying to develop my first restful service in Java and having some
Im trying to develop a simple java code which will upload some contents from
I'm trying to develop Android apps via Java,Eclipse. I'm trying to use this example
As a kind of personal project, I'm trying to develop a Java Applet that
I am trying to develop an application with eclipse (java swing) and I wonder
I'm trying to develop an Eclipse plugin that guesses some properties regarding the file
First sorry for my english. I am currently trying to develop a JAVA webservice

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.