How to use packages and jar files for applet?

Hi!
My applet takes a class say a.class.
Now this class depends on other classes that are packaged
in a directory and put separately.
I want to put this applet on the web.
So how do I manage the .class files in he package.
I have tried using jar file format.But I was not able to get it working.
Can someone please help me?
Thanks

Use Archive instead of codebase:
<APPLET CODE="MyApplet.class" ARCHIVE="MyApplet.jar" WIDTH=400 HEIGHT=300></APPLET>

Similar Messages

  • How to use 3rd party jar files for xml transform

    Hi all,
    Am using OAS9.0.4 and I deployed my .ear successfully.
    In my application am using 4 jar files for xml transformation. (xerces.jar, xalan.jar, xml-apis.jar,xercesImpl.jar)
    OAS has its own xmlparserv2.jar file. Its using this jar file for transforming xml data and not even looking for above mentioned 4 jar files.
    In opmn.xml, I provided these 4 jar files in to class path. Then also it didn't effect my output.
    I also tried as put these 4 jar files into j2ee\home\applib directory, but o result.
    Can anybody tell me where should I keep these 4 jar files in OAS and OAS should use these 4 jar files instead of its own xmlparserv2.jar for transforming data.
    Thanks in Anticipation,
    Regards,
    RK

    Add the Xbootclasspath variable in the java-options field. It will somewhat look like the following in your opmn.xml file
    <process-type id="<OC4J Instance Name>" module-id="OC4J">
    <module-data>
    <category id="start-parameters">
    <data id="java-options value="........... -Xbootclasspath^/a:<location of your jar files>" />
    Ensure to use th ^/a (append) signature
    Regards,
    Chirag

  • How to use javap with jar files ?

    how to use javap with jar files ?
    thanks

    As long as the jar is on the class path, your gold. So,
    javap -classpath myjar.jar mypackage.MyClass
    Chuck

  • How to use one external jar (SDK) for several apps in WTK?

    Hi,
    I have one external jar (SDK) I use for developing J2ME applications.
    Every time I have no choice but to copy this JAR (SDK) into my current application lib directory.
    I am building a family of MIDlets that I dont want to put into just one huge JAR but rather to have several JAR files for each application.
    In C world I need only to tell the linker where it should pickup ".so" or ".lib" file.
    Is any way to do the same with WTK? Or any other J2ME development tool?
    Thanks in advance,
    Andrew

    Link to wtk2.5 beta has been posted to this forum
    while ago. It's worth to try it It is MSA1.0
    compliant. It has many new JSRs.TomTom,
    Thanks again.
    I tested the WTK2.5BETA and here I ahve strange fact. My application works perfectly on WTK2.1, WTK2.2 WTK2.3 BETA but it crashes with a very weird message on WTK2.5BETA
    Method............: 22482ac 'com/tinyline/app/SVGEventQueue.handleEvent (virtual)'
    Stack Chunk.......: 2216e44
    Frame Pointer.....: 2216e7c
    Current IP........: 224820b = 22481fc + offset 15
    Previous Frame....: 2216e58
    Previous IP.......: 226afd6 (offset 26)
    Frame size........: 3 (2 arguments, 1 local variables)
    Argument[0].......: 20bc0b8
    Argument[1].......: 2216d7c
    ALERT: java/lang/NoSuchMethodError: No such method dispatchEvent.(Lorg/w3c/dom/events/Event;)Z.
    So I thought, OK it was compiled under WTK2.1 may it was the reason of crash.
    I took sources and compile them under WTK2.5 BETA. I came up with the same result - crash.
    Thanks,
    Andrew

  • Applet : How to use Images in Jar file

    I want to put all images into a jar file to improve speed of loading.
    But how to invoke images from Jar file?
    Thanks.

    @Op. It's very important for a developer to know how to find information, and that skill usually comes with experience. Google is one of the best ways to find information and solutions to the most common problems.
    Kaj

  • Plz suggest me How to use Third party jar files in ODI

    Hi all,
    I need to know how to use the third party jar files or our own customised jar file in ODI.
    regards
    palash

    Hi all,
    I am unable to implement..................
    I have one question, if I add any type 4 coneection supported jar file in my ODI_CLASSPATH can I use them in writing procedure to connect Databases
    I am trying to connect Oracle database by putting Ojdbc14.jar in the class path of ODI_CLASSPATH so that in my procedure I can use it .............but failed I dont know how to solve this problem.
    another thing Open Tools are delivered as a Java package (.zip or .jar) containing several files:
    A compiled Java .class file
    Other resources, such as icon files is it so ..............Then I can use full java apllication by preparing required bunch of classes and by set them appropriately in open tool
    need ur suggestion....
    regards
    palash

  • How to use external libraries jar files in the composite application?

    Hi,
    I have some external jars files (which consists of java classes) that I would like to use in my composite application. 
    I have created a DC with type as external library for the jars.  However, I don't know how to specify the DC to be used in my caf application.
    Can anyone help?
    Thanks.
    Regards,
    Fui Voon

    Hi,
    My jar files consists only java classes and a manifest.mf. The files are compiled using jdk 1.4.2-b28.  Will this be any issue?
    It seems that if I ignore the error and continue step 7 which is to do deployment of the ear, the error given is
    Cannot update it.
    Caused by: com.sap.engine.library.bytecode.cf.CFException: Invalid constant pool tag, 60 at index 41.
    Does anyone know what that mean?
    Is there any sample that teach how to deploy external libraries as bundled library?
    Thanks.
    Regards,
    Fui Voon

  • How to use SquirrelMail and Require SSL for IMAP Service?

    Hello,
    Mac OS X Server v.10.4.9 – Open Directory Master
    Providing POP, IMAP, SMTP, web services including webmail via SquirrelMail.
    PHP v.4.4.4 Nov. 1, 2006
    OpenSSL v.0.9.7l Sept. 2006
    I need to require SSL for IMAP access, however, I also need to provide webmail access. SquirrelMail does support TSL it seems and that can be configured from /etc/squirrelmail/config/conf.pl and is discussed briefly here: http://www.squirrelmail.org/wiki/SquirrelMailIMAPS .
    When I turn on TSL on SquirrelMail and change the IMAP port number to 993 attempting to log into SquirrelMail provides the following error:
    Bad request: IMAP server does not appear to support the authentication method selected. Please contact your system administrator.
    According to the above noted page from the SquirrelMail site one needs PHP 4.3 and SSLv3 in order for TSL to work, one must also connect to the IMAP server over port 993. Requirements I appear to meet.
    So – how can one require the use of SSL for IMAP and still provide webmail access via SquirrelMail?
    I have reviewed these three threads:
    http://discussions.apple.com/thread.jspa?threadID=912841&tstart=75
    http://discussions.apple.com/thread.jspa?messageID=1457773&#1457773
    http://discussions.apple.com/thread.jspa?messageID=3921004&#3921004
    However they do not answer the fundamental question of how to use SquirrelMail with SSL required by IMAP. Essentially the conversation revolves around working around the SSL requirement or forgoing it.
    Thank you for any assistance.

    David,
    Yet from time to time these same users are in a
    circumstance where they need to use webmail, thus
    SquirrelMail needs to work. I am not trying to
    secure webmail by requiring SSL.
    I see, your problem. In this particular case there is a workaround.
    Use different ports for postfix and cyrus limited to localhost, thus catering only to SquirrelMail, thus not needing TLS.
    Roughly do this (this is just off the top of my head, may contain errors):
    For SMTP / Postfix:
    Edit /etc/postfix/master.cf
    and add:
    465 inet n - n - - smtpd
    -o smtpdrecipientrestrictions= permit_mynetworks,reject
    -o mynetworks=127.0.0.1/32
    -o smtpdenforcetls=no
    # This will create a port 465 (if you use this alreay pick another one. choose the number wisely, depending ony what is in use on your server)
    # This port is only accessible to IP number in "mynetworks"
    For IMAP / Cyrus
    Edit /etc/cyrus.conf and add (below imap):
    imaplocal cmd="imapd -C /etc/imapd-local.conf" listen="127.0.0.1:imap" prefork=0
    Next duplicate /etc/imapd.conf and name it imapd-local.conf
    Edit /etc/imapd-local.conf
    Change
    tlsserveroptions: require
    to
    tlsserveroptions: use
    Next edit:
    /etc/services
    and create a port called "imaplocal"
    (you could probably recycle 585 wich is deprecated, check what is in the services file, make sure no duplicate port numbers).
    should look something like:
    imaplocal 585/udp
    imaplocal 585/tcp
    When done with all config files:
    Save & restart mail services
    Point SquirrelMail to the new ports wich should only be accessible to localhost (check with an external client if it holds
    Sorry for the "draft style" post, but I don't have much time.
    Just ask, if anything isn't clear.
    HTH,
    Alex

  • How do you make a jar file for your program?

    Title says it all - I don't have software that automatically does it for me.
    Using text pad :O

    Everything you always wanted to know about JAR files, but were afraid to ask:
    http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

  • How to use jsp and xhtml files in an application

    This is web.xml file,
    <web-app>
    <context-param>
         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
         <param-value>.xhtml</param-value>
    </context-param>
    <context-param>
    <param-name>facelets.DEVELOPMENT</param-name>
    <param-value>true</param-value>
    </context-param>
    <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>
    </web-app>
    If i configure like this, i am not able to work with jsp file.
    So, how to configure web.xml file to work with both jsp and xhtml file.
    Thanks,
    Vinutha.

    Hi Sam,
    To Use properties file you need to keep the properties file in a location and in the code you need to mention the path from where it should read in the runtime.
    Fuego.Io.PropertiesFile propfile;
    propfile.load(fileName : "<Path: C:/sample.properties>"); //Path: Place the properties file in the respective directory/drive and mention the path
    String val = propfile.get(key : "One"); //One - is the key against which the value should be mentioned in the properties file like <One = 1>. It should return 1
    logMessage("Value: " + val);
    To use the Enum in your project first create a Module in your catalogue component and then right click on module create New Enumeration say ProcessStatus
    Uncheck the Is Sequential if you want to keep key/value as pair. Click on add +* and mention the Name and Value say ABORTED as Name and Value as Aborted. To use it in your project conditional path write the condion as somevariable == String(ProcessStatus.ABORTED)
    Hope this will help you.
    Bibhu

  • How to use Dlls and Header files in my java Code?

    Hi All,
    I want to make use of dll and header files of DataStage, from my Java Interface.
    i am buliding a product where i need to contact DataStage server from my Java Code alone, For this they provided dlls and header files
    Now i wan to make use of them and need to perform DataStage operations from my Java Interface.
    Can any on help out me regarding this?

    Try Java Platform SDK for native function calls without JNI writing code, like it done in .NET languages.
    For MS Windows:
    http://www.simtel.net/product.php[id]100916[SiteID]simtel.net
    For Linux/Unix:
    http://www.simtel.net/product.php[id]117719[SiteID]simtel.net

  • Getting JAR file for Applet doesn't work

    Hi,
    We have the following problem: we have some clients who want to use our applet. There are some clients that have problems with receiving the .jar file:
    When the applet tries to start we get a ClassNotFoundException: 'prestaties.class' not found. (the client wants to acces the class file directly from the server)
    If we check the .jar file, it exists on the client, but the file is empty.
    What could be the problem?
    - PRoxy or firewall blocks the jar file
    - applet doesn't have enough rights to write.
    Does anyone a solution, some workarounds or suggestions for this problem.
    Thanks!
    Luk

    Hi,
    Thanks for answering my question!
    Here is the extra information you asked.
    At server side everything is OK (the jar file is present and has all the class files).
    Where working with Weblogic server 4.51
    The clients run JRE 1.3.0-C
    I can't give you the applet code (confidential) but here is the html code:
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="600" height="80" align="middle">
    <PARAM NAME="cache_archive" VALUE="prestaties.jar">
    <PARAM NAME="cache_option" VALUE="Plugin">
    <PARAM NAME="cache_version" VALUE="1.4.2.1">
    <PARAM NAME="code" VALUE="be.vdab.cvsesf.applet.prestaties.PrestatiesApplet">
         <PARAM NAME="codebase" VALUE="/lib">
         <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
         <PARAM NAME="scriptable" VALUE="true">
         <PARAM NAME="windowId" VALUE="185498422412000">
         <PARAM NAME="cursusId" VALUE="23178">
         <PARAM NAME="opleiding" VALUE="boetseren">
         <PARAM NAME="organisator" VALUE="TESTOE Omschrijving">
         <PARAM NAME="locatie" VALUE="TESTDOSSIER HELKPDESK / 0">
         <PARAM NAME="instructeur" VALUE="TESTDOSSIER HELKPDESK / 0">
         <PARAM NAME="WebLogicSession" VALUE="1">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.3" width="600" height="80" align="middle"code="be.vdab.cvsesf.applet.prestaties.PrestatiesApplet"codebase="/lib"pluginspage="cvsesf/plugin.jsp"cache_option="Plugin" cache_version="1.4.2.1" cache_archive="prestaties.jar" windowId = "185498422412000"cursusId = "23178"opleiding="boetseren" organisator="TESTOE Omschrijving" locatie="TESTDOSSIER HELKPDESK / 0" instructeur="TESTDOSSIER HELKPDESK / 0"WebLogicSession="1">
    <NOEMBED>
    </COMMENT>           
              <html>
                   <head>
                        <title>Java plugin download</title>
                        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                        <link rel="stylesheet" href="../includes/vdabstyle.css">
                   </head>     
                   <body bgcolor="#FFFFFF">
                   <TABLE width="600" border="0" cellpadding="1" cellspacing="0">
                        <tr>
                             <td>               
                                  <h1 align="right"><b><font face="Verdana, Arial, Helvetica, sans-serif">Java plugin</font></b></h1>
                                  <P><B>Voor het invullen van prestaties en vergoedingen heeft u de JRE 1.3 Java Plugin nodig: deze staat op de CD-ROM die u normaal gezien van de VDAB gekregen heeft.<br><br>
                                  Ofwel kan u de plugin hier zelf downloaden (<U>opgelet:</U> bestand is 8 MB groot).<br><br>
                             U kan het VDAB callcenter contacteren om een CD-ROM aan te vragen of om problemen te melden. Het nummer vindt u onderaan het scherm.</B></p>
                             </td>
                        </TR>                    
                   </table>               
                   </body>
              </html>
         </NOEMBED>          
    </EMBED>
    </OBJECT>
    Hope this helps.
    Luk

  • How to use Text and Image variables for printing

    I have been working on product configurator with AS3 for several months now.
    I am not proficient with AS3.
    Now, it seems that maybe my design is all wrong.
    Is there a proper way to do this?
    I have a main timeline that has movie clips showing images of different options for the product.
    On the first frame, I use buttons to select the choice for option 1 from the Option1_mc.
    Then I store the choice in a variable.
    I use a button to go to the next choice (frame 10.)
    On frame 10, I use buttons to select the choice for option 2 from the Option2_mc.
    This is stored in another variable.
    There are about 10 options that are selected and stored in variables.
    Some are text values and others are instances of images from the Option movie clips.
    I made a Print_mc to use for printjob.
    I can't get the values of the variables to display in the first frame for printing.
    Any helpl would be appreciated.

    you're welcome.
    you won't insert a variable into a textfield.  you'll assign the text property of your textfield to be the value one of your variables points to.
    so, for example, if you have:
    var var1:String="this is a test";
    you can use:
    tf.text=var1;

  • Sata Ports how to use # 5 and 6 port for storage K9A2 Platinum

    This could be a real stupid question , I know port 5 and 6 are controlled by the promise controller. but when I plug something in to these ports nothing happens. Do you need to load the drivers, I really do not want to use raid would just like to plug in hard drives for storage only.
    Would appreciate the help

    What he said,
    enable extra raid controller in Bios,
    do not set up raid when you boot, just let it go through it's thing or hit "space bar" and it will skip through the raid setup stuff.. 
    grab your promise drivers from here :
    http://global.msi.com.tw/index.php?func=downloaddetail&type=driver&maincat_no=1&prod_no=1332
    now that you are there update other drivers as well.
    I love that promise controller --> eSata on the back , nice hot swap hard drive port.  I use it to do Norton ghost  backups. Much faster than through USB-HD. When back ups are done, just unplug it.

  • Please tell how to use package and import?

    Hi,
    My classes are in different packages
    for eg
    package manage.ui
    package manage.data
    package manage.layer
    if I try to import
    import manage.layer.*;
    in a class in manage.ui
    it shows
    package manage.layer does not exist
    Please help to find the problem?????

    Are your classes placed in a folder stucture that mirrors the package structure? So, like this:
    -manage(folder)
    --ui(subfolder of manage)
    --data(subfolder of manage)
    --layer(subfolder of manage)

Maybe you are looking for