Urgent: sending jar files

hii
i have created an applet that uses a JTree to display employee hierarchy data..i have compiled all the necessary class file in file called Hm.jar
now i have written an html page with the tag
<applet code="Hmain.class" archive="classes12.jar ,Hm.jar height=200 width=200>
the classes12.jar(oracle driver) and Hm.jar and the html file are both put in \apache tomcat\webapps\examples\jsp
directory
the problem is i can see the applet when i run the html from my computer..but when my friend tries to connect the classes12.jar gets downloaded but gives and error saying Hmain.class not found..i think the Hm.jar isnt getting downloaded.can u tell me why and how can i do it??
is there a progress bar which can show the progress of download??
its real urgent ..plzz help me
thankx
sairam

The error could be in the following applet tag:
<applet code="Hmain.class" archive="classes12.jar ,Hm.jar height=200 width=200>
Looks to me like there is a missing " after Hm.jar (before height=).
If that doesn't solve your problem, you may have to use the htmlconverter that comes with your jdk to make sure that the html file contains the appropriate <OBJECT> or <EMBED> tag for the browser to activate the required Java plugin.
;o)
V.V.

Similar Messages

  • How to send .jar files via bluetooth in Nokia 6500...

    I am not able to send and see the option of sending jar files vai bluetooth . I want to know how to send it.
    Kindly reply ASAP.
    Thanks
    Abhishek

    Its something like , I already have it on my mobile and wanna transfer that file to my another same mobile.
    This is case when i am away from my comp. so that i can transfer songs,images etc via bluetooth but not jar files. Is there any option or any software for Nokia 6500 slide ??
    I saw in some othen N's phone they have file manager option and they transfer app. via that through bluetooth.
    But there is no option in NOKIA 6500 SLIDE ??? Is it a bug ???
    Thanks
    Abhishek

  • Help required regarding sending jar files using bluetooth

    I want to send jar file from Nokia 7610 (S60), or any other phone for that matter, to any other phone using bluetooth. The problem is that, when I look at the options available for the jar file (which is saved in the Inbox), the send option is not visible.
    I looked at the previous postings on this topic. Is it due to "Closed Content List" (CCL)??? What are the possible workarounds, other than using getResourceAsStream or some software like FExplorer???
    Also, this problem is not encountered in Sony Ericsson phones. Plz help regarding the same...

    Hi,
    You might wanna look take a look in the JSR 82 Specifications. There is a method like agent.startInquiry(); that starts a search for nearby BT devices. All you have to do is place each found device in an array of type Vector.
    It would have been easier if your code or a snippet of it was available to see what the problem was.
    Rambo.
    PS: A client application application starts a connection on a server application. Where you put them is up to you.

  • Help : Sending Jar file using bluetooth.

    Hi
    I have done till below...
    Midlet will search available bluetooth device in range.
    I want to do below.
    1. Search available bluetooth device in range
    2. User will see list of devices.
    3. when user will select a device, i want to send the jar file itself ( i have stored jar file inside resources)
    4. on file sent to bluetooth devices, it should tell file sent successfully.
    More :
    I am confused with Bluetooth server and client terminology.
    Here my program is client or server ? Infact the whole pupose is we have made some Java program and we want to make it viral, easy for our users to send it to their friends via bluetooth
    Any pointers ?
    Raxit
    www.m4mum.com

    Hi,
    You might wanna look take a look in the JSR 82 Specifications. There is a method like agent.startInquiry(); that starts a search for nearby BT devices. All you have to do is place each found device in an array of type Vector.
    It would have been easier if your code or a snippet of it was available to see what the problem was.
    Rambo.
    PS: A client application application starts a connection on a server application. Where you put them is up to you.

  • URGENT: New JAR file NOT being pushed to web clients.

    Greetings...
    When our web app first came to market, some of our customers were still using a dial-up connection. Therefore, since one of our web pages uses an applet, it was decided to ship the necessary JAR files to clients on an installation CD, rather than burden our dialup customer with having the JAR files pushed out to them over the line. The jar files are installed in the C:\Program Files\JavaSoft\JRE\1.3\lib\ext directory on the client computers.
    Don't ask why, but we are now attempting to have our web site push out a new JAR file to just one of our clients, but the problem I'm running into is that if the OLD jar file already exists in the C:\Program Files\JavaSoft\JRE\1.3\lib\ext directory, the NEW jar file isn't pushed out by the website. My understanding was that the system would automatically detect if the JAR file on the client was older than the JAR file on the server and would then push the newer JAR file out to the client, but obviously, I'm missing something.
    Any help/suggestions you can provide would be greatly appreciated. Following is the kludgy ASP code for this...
    <%szCustomer = getCustomer();%>
    <%if (szCustomer="SccTest") {%>
    <!-- NEW CODE: Push out the NEW JAR file with the meters to feet change. -->
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="600" height="400" name="SccMapplet"
    codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0" ID="IMSMap" VIEWASTEXT>
    <PARAM NAME="code" VALUE="com.scc.mapplet.SccMapplet">
    <param name="archive" value="SccMapplet.jar,xml.jar,iiimp.jar,jai_codec.jar,jai_core.jar,mlibwrapper_jai.jar">
    <PARAM NAME="scriptable" VALUE="true">
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
    <PARAM NAME="WebAXL" VALUE="/EweData/<%=getCustomer()%>.axl">
    <PARAM NAME="Session" VALUE="<%=SCCSession.SessionID%>">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.3" width="600" height="400"
    code="com.scc.mapplet.SccMapplet" archive="SccMapplet.jar,xml.jar,iiimp.jar,jai_codec.jar,jai_core.jar,mlibwrapper_jai.jar"
    pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html">
    <NOEMBED>
    </COMMENT>
    No Java 2 SDK, Standard Edition v 1.3 support for APPLET!!
    </NOEMBED></EMBED>
    </OBJECT>
    <%} else {%>
    <!-- OLD CODE: Use the JAR file already installed on C:\Program Files\JavaSoft\JRE\1.3\lib\ext -->
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    width=600 height=400 ID="IMSMap" name="SccMapplet" VIEWASTEXT>
    <param NAME="code" VALUE="com/scc/mapplet/SccMapplet">
    <param NAME="name" VALUE="IMSMap">
    <param NAME="SCRIPTABLE" VALUE="TRUE">
    <param NAME="type" VALUE="application/x-java-applet;version=1.2">
    <PARAM NAME="WebAXL" VALUE="/EweData/<%=getCustomer()%>.axl">
    <PARAM NAME="Session" VALUE="<%=SCCSession.SessionID%>">
    <comment>
    <embed type="application/x-java-applet;version=1.2" width="600" height="480" code="com/esri/ae/applet/IMSMap" name="IMSMap">
    <noembed>
    </COMMENT>
    No JDK 1.2 support for APPLET!!
    </noembed></embed>
    </object>
    <%}%>

    I guess the problem is, that your local jar file's classes copied to the JRE's ext directory have higher priority. The JRE does not store your applet jar locally and so does not overwrite anything you may have installed, it only executes the jar file given by the browser which may cache it or not.
    Why don't you use the Java Webstart technolgy? It's pretty simple to use it. Customers would have to download every new jar version only once and Webstart will take care that the local version is up-to-date every time your app is started.

  • Can we send java classes instead jar files through web start?

    HI,
    As we all know through web start we can send jar files from server to client system and run application. is it possible to send only java class file directly without making it jar? if yes then how it is?

    no - not possible in jnlp specification.

  • How to send jar via BT in 3110c?

    How can I send jar files from 3110c to another phone via bluetooth?

    There is Java application available although not certain whether you need to purchase after trial:
    http://www.medieval.it/installation-instructions/menu-id-98.html
    Happy to have helped forum with a Support Ratio = 42.5

  • Urgent help for processing XML stream read from a JAR file

    Hi, everyone,
         Urgently need your help!
         I am reading an XML config file from a jar file. It can print out the result well when I use the following code:
    ===============================================
    InputStream is = getClass().getResourceAsStream("conf/config.xml");
    BufferedReader br = new BufferedReader(new InputStreamReader(is));
    String line;
    while ((line = br.readLine()) != null) {
    System.out.println(line); // It works fine here, which means that the inputstream is correct
    // process the XML stream I read from above
    NodeIterator ni = processXPath("//grid/gridinfo", is);
    Below is the processXPath() function I have written:
    public static NodeIterator processXPath(String xpath, InputStream byteStream) throws Exception {
    // Set up a DOM tree to query.
    InputSource in = new InputSource(byteStream);
    DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
    dfactory.setNamespaceAware(true);
    Document doc = dfactory.newDocumentBuilder().parse(in);
    // Use the simple XPath API to select a nodeIterator.
    System.out.println("Querying DOM using " + xpath);
    NodeIterator ni = XPathAPI.selectNodeIterator(doc, xpath);
    return ni;
    It gives me so much errors:
    org.xml.sax.SAXParseException: The root element is required in a well-formed doc
    ument.
    at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213
    at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
    LDocumentScanner.java:570)
    at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endO
    fInput(XMLDocumentScanner.java:790)
    at org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocument
    Scanner.java:418)
    at org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifi
    cations(XMLValidator.java:712)
    at org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultE
    ntityHandler.java:1031)
    at org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityRead
    er.java:168)
    at org.apache.xerces.readers.UTF8Reader.changeReaders(UTF8Reader.java:18
    2)
    at org.apache.xerces.readers.UTF8Reader.lookingAtChar(UTF8Reader.java:19
    7)
    at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.disp
    atch(XMLDocumentScanner.java:686)
    at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
    canner.java:381)
    at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.
    java:195)
    at processXPath(Unknown Source)
    Thank you very much!
    Sincerely Yours
    David

    org.xml.sax.SAXParseException: The root element is required in a well-formed document.This often means that the parser can't find the document. You think it should be able to find the document because your test code could. However if your test code was not in the same package as your real (failing) code, your test is no good because getResourceAsStream("conf/config.xml") is looking for that file name relative to the package of the class that contains that line of code.
    If your test code wasn't in any package, put a slash before the filename and see if that works.

  • How to send Zip files as attachments !! Very urgent, Please help!

    I am sending PDF files as attachments using java mail (it works fine). But now my requirement is to zip the PDFs and send them as attachments instead of actual PDF's. But i don't know how to achieve that. does java mail API support zip attachment facilities? I have looked in activation API also, but i couldn't find anything helpful. even i searched the forums, but no clue. Please, anybody help me about this, it's very urgent.
    thanks
    sri

    Check the first "if". If I specify an attachment, then a myme multipart doby is created: one for text and the other for the attachemnt I use this myme ovbject only for attachemnts, because some ISPs have problems and report error in email format if the attachemnet is missing and it contains only text and no attachment.
    static public void send(String to,
         String from,
         String host,
         String smtpPort,
         String subject,
         String body,
         String fileAttachment,
         String attachmentMimeType,
         String username,
         String password,
         String debug)
    throws Exception
         // create some properties and get the default Session
         Properties props = new Properties();
         props.put("mail.smtp.host", host);
         props.put("mail.smtp.port", smtpPort);
         props.put("mail.smtp.timeout","5000");
         props.put("mail.debug", debug);
         Session session = null;
         if (username != null && password != null)
              props.put("mail.smtp.auth", "true");
              MyPasswordAuthenticator auth = new MyPasswordAuthenticator(username, password);
              session = Session.getDefaultInstance(props,auth);
         else
              session = Session.getDefaultInstance(props, null);
         //session.setDebug(true);
         // create a message
         MimeMessage message = new MimeMessage(session);
         message.setFrom(new InternetAddress(from));
         InternetAddress[] address = InternetAddress.parse(to, false);
         message.setRecipients(Message.RecipientType.TO, address);
         message.setSubject(subject);
         message.setSentDate(new Date());
         // create the message part
         if ( fileAttachment != null && fileAttachment != "NO" )
              MimeBodyPart messageBodyPart = new MimeBodyPart();
              //fill message
              messageBodyPart.setText(body);
              //Multipart multipart = new MimeMultipart();
              Multipart multipart = new MimeMultipart("alternative");
              multipart.addBodyPart(messageBodyPart);
              // Part two is attachment
              System.out.println("----->fileAttachment DISTINTO de NULL");
              messageBodyPart = new MimeBodyPart();
              FileDataSource fds = new FileDataSource(fileAttachment);
              messageBodyPart.setDataHandler( new DataHandler(fds));
              messageBodyPart.setFileName(fileAttachment); //<-- El archivo atachado.
              multipart.addBodyPart(messageBodyPart);
              //EN DESARROLLO el envio de attachment!!          
              // Put parts in message
              message.setContent(multipart);
         } else { //Envio es solamente TEXTO
              message.setText(body);
         // send the message
         Transport.send(message);
    Regards,
    Vladimir

  • Urgent: Does dbms_java package is required  to load jar file into database?

    Hi, It's a urgent request. I am trying to install jar file that was created by JDeveloper into database using loadjava. But it is giving so many errors.
    Do we need to install dbms_java package in order to load jar files into the database? Thanks.

    Thanks for your reply Kamal.
    I am trying to load these jar files into Oracle 9.2.0.3.20 database.
    Could you please give me the list of the steps to enable java within the database? Thanks.

  • Transporting jar file by Midlet..send via bluetooth/infrared/??? to another

    Lovely HelloO!
    How can i transfer my programm via itself?
    my idea is about a menu item that is                     
                             | |
    [send to...] ===>     | bluetooth |
    | infrared |
    | ??? |
                             | not matter |
    by this option, user has this ability that offers my application to anpother!
    I saw it on a Midlet but i lose it :(
    Do you have any idea about it?
    I think that i must copy a (.jar) file via installation and copy it to other handset,am i right?

    please can any one replay me :(

  • Aii_map_api.jar-pls send this jar file

    Can u pls send this jar file to me..
    [email protected]
    thanks

    Hi,
    This you will find here-
    go to XI server folders i.e
    j2ee\cluster\server0\apps\sap.com\com.sap.xi.services
    Inside com.sap.xi.services folder you will get this jar file
    Regards,
    Moorthy

  • Send message with jar file

    hello,
    i'm want to send message using jar file, it is possible?
    for example : java -jar post.jar
    thnx.

    For sure "java -jar post.jar" works as any other your desktop application.
    So you can do everything from your java code, packed into post.jar

  • Unable to load jar file-Urgent

    Hi all,
    I am using AltaVista search engine in my project. I have uploaded the jar file related to this into Weblogic 8.1. But many times application doesn�t able to take files from mentioned jar and gives me an error message that couldn't find the class. I always need to start the weblogic again & again to start the search engine functionality. Please help me out why it doesn�t pick the jar file.
    Thanks & Regards
    Sachin

    Hi Guys
    Please help me out from this problem.............. I am still getting same error.
    "javs.sdk.AvsSdkException: Developer's Kit error returned from Index (avs_open):
    can't create index"
    But when i restart the weblogic, it is working fine..................................
    PLS Save me
    Sachin

  • URGENT ! Forms (jar file vs directory and classes)

    Hi,
    Our java developper has made an applet that we have to integrate with Forms.
    I said that I need a jar file that I will put in the forms90/java directory.
    The java developper want's to deploy instead of a jar file the whole directory and sub directory and all classes under the forms90/java.
    My question is, are both deployement giving the same result in term of performance on the client side when downloading the classes or the jar file.
    I always tought that jar file was better in performance.
    What is the best way to deploy our applet?
    Thanks for quick answer.
    Jean-Yves

    If you choose jar file client JVM will probably cache your jar. This will increase speed of application loading.
    Another benefit is that when you use jar file there is lazy/on demand loading option available (in my experience on demand loading doesn't work out of the box - jar file and all referenced jar files must be indexed). In other words: users that don't use forms that use your applet will not download that jar file (I have used this for FormsGraph example and some custom java application) and they don't have to download all of the jars your jar file references.

Maybe you are looking for

  • Table APQD its size is 64GB in Ecc 6.0

    Hi expert, we are using ECC 6.0 with oracle 10g. in my ecc 6.0 a table APQD its size is 64GB. how can i remove the data.if i remove the session in sm35 then its size will reduce?? Regards,

  • 21" iMac G4 running slower and s l o w e r....

    This machine is running increasingly slowly, regardless of which applications are or aren't running. I'm continually seeing the spinning beachball, and it feels like there is some incredibly cycle-consuming thing going on in the background but I can'

  • Build Issue

    Hi Experts, We are having issue with the local build of DC in NWDS. We are having a Track which contains few SCs, now a new SC has been created and further new DCs in the newly created SC. Now when I am trying to build the new DC it is giving me the

  • My ipad is locked and itunes is asked me for an account of of developer please how can i install the ios 7

    my ipad is locked and itunes is asked me for an account of of developer please how can i install the ios 7

  • Raw material sale

    Hi Here i want to sell the raw material which had been procured ealier.But while selling i want 611030 for ED rather than 611010.I have attched 611010 for DLFC for Excise group in Logistic General - india .-specify accounts for ETT.N ow i want 611030