Results 1 to 2 of 2
  1. #1
    Arvutis6ber is offline Member
    Join Date
    Jun 2008
    Rep Power

    Default How to force applet to use libraries?

    My applet uses JDBC (mysql-connector-java-3.1.13), but is it possible to start applet from html and tell him that where the needed .jar file is located?
    I uploaded this whole JDBC directory to the my web folder, but applet was not able to find it.

    If I start my java file from bat file, I have to use something like that:
    SET CLASSPATH=.;%lib\%lib\jarname.jar;
    java filename -classpath %CLASSPATH%s
    But how can I do it when executing my applet from htmlr?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power


    You can specify additional jar files in the <APPLET tag's archive= attribute

Similar Threads

  1. Force Print API to Use Physical Printer
    By tom_a in forum Advanced Java
    Replies: 4
    Last Post: 09-03-2012, 06:40 AM
  2. Replies: 1
    Last Post: 01-17-2010, 04:29 PM
  3. How to force Firefox to reload applet
    By JordashTalon in forum Java Applets
    Replies: 3
    Last Post: 02-20-2009, 12:19 PM
  4. Howto force to use an external jar
    By riccardo_b in forum Eclipse
    Replies: 0
    Last Post: 12-11-2008, 11:08 AM
  5. Force Caps in JTable...
    By markw8500 in forum Advanced Java
    Replies: 0
    Last Post: 07-09-2008, 03:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts