Using Signed Jars with Web Start

Hi
I am working with an application that needs to access disk. I signed the jars, and in the jnlp file I gave full permisions to it. My question is how Web start recognize that the jar is signed, should I upload the certificate and how to do it? I am having permissions problems at the client side.
Thank you!!!

http://www.vamphq.com/jwsfaq.htmlI don't want to be picky but the Unofficial Web Start FAQ moved to the Lopica Web Start Paradise site a couple of months ago. Please update your bookmarks. The new web address (URL) is:
http://lopica.sourceforge.net/faq.html
and the ongoing in-progress FAQ Update and Errata page is online @ http://lopica.sourceforge.net/update.html
- Gerald
(Unofficial Web Start FAQ Editor)

Similar Messages

  • Using Comm API with Web Start

    I am trying to use Sun's Comm API with Web Start so I can access COM1 from my application.
    When the application starts, I receive an exception for the CommPortIdentifier. When I run this
    application as a standalone, it works fine. I have to assume that there is a problem with the
    deployment of the Comm API.
    I have include the win32com.dll in a jar file and defined it in the nativelib tag in the jnlp file.
    The comm.jar and the javax.comm.properties files are include in another jar. I am not sure
    what is the proper way to deploy these files and cannot find any documentation on this.
    Does anyone know the correct way to handle this?

    I have include the win32com.dll in a jar file and
    defined it in the nativelib tag in the jnlp file.
    The comm.jar and the javax.comm.properties files are
    include in another jar. I am not sure
    what is the proper way to deploy these files and
    cannot find any documentation on this.
    should like like this
    <resources>
    <j2se version="..." href="..."/>
    <jar href="application.jar"/>
    <jar href="comm.jar" />
    </resources>
    <resources os="Windows">
    <nativelib href="win32com.dll"/>
    </resources>
    Then in the code in application.jar, call
    System.loadLibrary("win32com");
    /Dietz

  • A few questions about signing JARs for Web start

    I'm still a bit new to all this, so just want to clear a few things up.
    I'm currently trying to publish an application using Web start, so i know I have to sign all the JARs, as it needs to do some writing to the hard drive.
    1. I have my main JAR file, and then two "third party" JAR files in the /lib subfolder, I take it I need to sign those two as well, does it matter that I don't have the .class file for those two, as I didn't write them?
    2. I'm running the JARSIGNER program with exactly the same command line apart from the filename of the .jar file, is that correct? or do I need a different certificate for each .jar file?
    Just can't seem to get all three signed, Web start says one different one isn't signed each time I try it out.
    3. When signing, does it add something to the end of the JAR file itself? as I can't see any extra files created.

    Signing adds entries in the mainifest, not in the main file list in the jar file.
    You can sign third party jar files, but it is not advisable. An alternative is to put third party jars in a seperate extension jnlp file, if they need all-permissions, you can get the third party jars already signed by whoever supplied them. If not, you do not need to request all-permissions in the extension jnlp file, and that part of the code will be run in the secure sandbox.
    /Andy

  • Loading an image from a jar with web start

    Hi,
    I have a jar file that contains all the classes and .gif images that my program uses. I am trying to set this up to use web start. I have the .jnlp file working correctly, but I get i/o errors when my images are loaded via an ImageIcon.
    The Developer Guide says that "[t]he jar file will typically contain Java classes that contain the code for the particular application, but can also contain other resources, such as icons and configuration files, that are available through the getResource mechanism. "
    I can't figure out how getResource() works. I've tried this:
    ClassLoader.getSystemClassLoader().getResource(fileName).getContent()
    but the content it returns is an Object, Given the filename, it should be my gif, but I don't know what type of Object it is, much less how to turn it into an Image.
    Can't anyone help? I'd really appreciate it!
    Thanks,
    B. Danny K.

    use Thread.currentThread().getContextClassLoader().loadResource() to get the JNLPClassLoader.
    The system class loader will not find resources in jars loaded by java web start.
    /Dietz

  • Problem with Using Spring IoC and Web Start

    Greetings Everyone,
    I have a small Swing app that runs using spring to load its dependencies. I can run it from a single signed jar file locally, and I setup my .jnlp file to try it with Web Start.
    Unfortunately, I get the following:
    java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
         at java.security.AccessController.checkPermission(AccessController.java:546)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1662)
         at java.lang.Class.checkMemberAccess(Class.java:2157)
         at java.lang.Class.getDeclaredMethods(Class.java:1790)
         at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:429)
         at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:412)
         at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:363)
         at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:296)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:745)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:448)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
         at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:881)
         at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:597)
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:366)
         at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
         at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
         at org.chibgrant.main.MainPOE.main(MainPOE.java:31)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.javaws.Launcher.executeApplication(Launcher.java:1321)
         at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1267)
         at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1066)
         at com.sun.javaws.Launcher.run(Launcher.java:116)
         at java.lang.Thread.run(Thread.java:619)
    I am running build 1.6.0_13-b03. Anyone run into this before?
    Thanks for any insights...!

    I suspect you may have solved this yourself by now, but in case not.
    I've recently created a desktop application that uses Spring and is launched via Java Web Start and I did have a problem getting it to launch via Web Start until I modified my code to ensure the classloader setup is done before any Spring methods are called.
    i.e.
        // This is needed for Java Web Start compatibility.
        UIManager.getLookAndFeelDefaults().put("ClassLoader", Loader.class.getClassLoader());In may application this code is invoked in the class that starts my application (Loader) before I load anything via Spring.
    Cheers,
    Stephen.

  • Trying to use 1.4 beta 3 with Web Start

    Hello,
    I'm trying to use the JRE 1.4 beta 3 on Windows with
    Web Start and it keeps giving me an error when trying
    to get the JRE version. I looked at the Sun docs on
    Web Start for using beta versions of the JRE and it states to put this in my .jnlp file, but it doesn't seem to work:
    <j2se version="1.4-beta" href="http://java.sun.com/products/autodl/j2se" />
    Has anyone got this to work?
    Thanks,
    Cory.

    I am having trouble with this as well. I have also tried the java1.4* for the version field and the client machine still states that it can not find the right runtime. Is there anything else you added?
    thanks

  • Deploying SWT application with web start

    Hi there,
    I was trying out to deploy the IBM's sample SWT application, FileViewer, with web start, but ended with the following exception which I couldn't figure out how this happened.
    EXCEPTION : -
    JNLPException[category: Download Error : Exception: java.net.ConnectException: Connection refused: connect : LaunchDesc: null ]
         at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)
         at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    WRAPPED EXCEPTION : -
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at com.sun.javaws.net.BasicNetworkLayer.doRequest(Unknown Source)
         at com.sun.javaws.net.BasicNetworkLayer.doHeadRequest(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)
         at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I am now using JDK5.0. Even when I was trying out the JDK's sample Webpad, I got "Servlet JnlpDownloadServlet is not available" . Can anyone advise please?

    Hi Jim,
    Try to replace,
    <jnlp spec="1.0+" codebase="http://localhost:8080/fileviewer" href="index.jnlp">
    with
    <jnlp spec="1.0+" codebase="$$codebase" href="index.jnlp">
    But i was using JNlpdownload servlet to do the task
    Regards
    Leo

  • Is a signed jar with another unsigned jar possible?

    Is it possible to use 1 signed jar with another unsigned jar with webstart. I read this wasn't possible with version 1.0, but what about higher versions? if so how to specify this?
    Thanks
    James
    Edited by: fatbatman on Mar 26, 2009 1:01 PM

    All jars within same jnlp must be signed with the same certificate, but you can use extensions to have many jnlp with different (or no) signature within the same application.
    Bye.

  • How to get access to the local file system when running with Web Start

    I'm trying to create a JavaFX app that reads and writes image files to the local file system. Unfortunately, when I run it using the JNLP file that NetBeans generates, I get access permission errors when I try to create an Image object from a .png file.
    Is there any way to make this work in Netbeans? I assume I need to sign the jar or something? I tried turning "Enable Web Start" on in the application settings, and "self-sign by generated key", but that made it so the app wouldn't launch at all using the JNLP file.

    Same as usual as with any other web start app : sign the app or modify the policies of the local JRE. Better sign the app with a temp certificate.
    As for the 2nd error (signed app does not launch), I have no idea as I haven't tried using JWS with FX 2.0 yet. Try to activate console and loggin in Java's control panel options (in W7, JWS logs are in c:\users\<userid>\appdata\LocalLow\Sun\Java\Deployment\log) and see if anything appear here.
    Anyway JWS errors are notoriously not easy to figure out and the whole technology in itself is temperamental. Find the tool named JaNeLA on the web it will help you analyze syntax error in your JNLP (though it is not aware of the new syntax introduced for FX 2.0 and may produce lots of errors on those) and head to the JWS forum (Java Web Start & JNLP Andrew Thompson who dwells over there is the author of JaNeLA).

  • Urgent Problems with Web Start Security

    Has anyone used Java Web Start to load application? I have given all-permissions to the application when loaded and also give the AllPermission in Policy.setPolicy() inside the code. I encountered the following problems right now.
    (1) In the application, I want to connect another server (different from the web server where I load the application), and get the following error (looks like that I cannot ping other server):
    com.esri.mo.client.io.UnableToPingEsrimapException: Unable to ping ESRIMAP
    (2) I create local directory, connect to database, use the return results to create some corresponding local files and load the local files in the Swing component, but it just cannot load. Here is the error message:
    java.security.AccessControlException: access denied (java.io.FilePermission C:\Documents and Settings\ABC\Desktop\.\shpdir read)
    I believe all these problems are resulted from security. But I have set the permission and policy already, so any solutions are highly appreciated!
    Best Regards
    David

    Has anyone used Java Web Start to load application? I
    have given all-permissions to the application when
    loaded and also give the AllPermission in
    Policy.setPolicy() inside the code. I encountered the
    following problems right now.
    (1) In the application, I want to connect another
    server (different from the web server where I load the
    application), and get the following error (looks like
    that I cannot ping other server):
    com.esri.mo.client.io.UnableToPingEsrimapException:
    Unable to ping ESRIMAP
    (2) I create local directory, connect to database, use
    the return results to create some corresponding local
    files and load the local files in the Swing component,
    but it just cannot load. Here is the error message:
    java.security.AccessControlException: access denied
    (java.io.FilePermission C:\Documents and
    Settings\ABC\Desktop\.\shpdir read)
    I believe all these problems are resulted from
    security. But I have set the permission and policy
    already, so any solutions are highly appreciated!
    Best Regards
    DavidHello David,
    If you want to use local files(R&W) then you have to set the following lines the .jnlp file like this:
    <security>
        <all-permissions/>
    </security>Now if you assign all permission then you have to make jar file signed.(you can use jarsigner tools provided with the jdk_1.4.* to make the jar file signed).
    If the jar file is signed then you have unrestricted access to the client side.
    best of luck.

  • Accessing third party jars in Web Start. (Urgent)

    hi!
    I have developed an application using jbuilder which uses thirdparty jars, i specify the jars in the project properties & the application runs fine , I tried to deploy that application using Java web start ,i copied all the third party jars in the same directory as the jnlp file's directory.
    my jnlp file has a tag-<jar href="accessor.jar" />
    in the manifest file of accessor.jar-I specified :-Class-Path: a1.jar a2.jar...........an.jar
    since the application access the local file system,
    i gave <security> <all-permissions/> </security>
    i signed all the jar files.
    When i deploy the application i get the following exception
    java.lang.NoClassDefFoundError: a1/StringData
    StringData is a class in a1.jar.
    thus my application cannot access "a1.jar"
    How do i solve this problem?
    Thanks
    Sudhanshu

    The following is the jnlp file:-
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://localhost:8080/AccessorApp" href="A.jnlp">
    <information>
    <title>Acessor Application</title>
    <vendor>abcd</vendor>
    <homepage href="A.html" />
    </information>
    <resources>
    <j2se version="1.3+" />
    <jar href="accessor.jar" />
    <jar href="a1.jar" />
    </resources>
    <security> <all-permissions/></security>
    <application-desc main-class="accessor.DataAccess" />
    </jnlp>
    I hope Duck Creek Software -JNLP Wrapper solves this problem.
    Sudhanshu........

  • Making exe of application which work fine with Web start.

    Hello guys,
    i am working on on-line casino gaming.First thing i want to explain to you is about my current mechanism for downloading game.
    I have used JNLP and web start to download all necessary files at client side and it works fine..At every time it checks new jars are there or not...
    Now i want to make the exe of my java application which i can give to client on movable device like compact disk..so client can install the application from anywhere and play casino games..
    Now I want to know how to make on-line application as executable (exe) and every time it checks for updates which is supported right now by jnlp file..
    which thing i have to consider,which tool is easy to use,which mechanism can solve my query....
    please help me out...
    thank you in advance...

    Hi
    Chris RENAUD 768,
    First of all the PDF files should be set to be read by the application you developed by default.
    To set the default program:
    Control panel \Programs \Default Programs \Associate a file or protocol with a program
    In IE8 There used to be a key called HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}  which stored the File Types that could either
    Auto-Open or not. We can create a .bat file to automatically add a value here to achieve the goal.
    The code is as following:
    @ECHO OFF
    reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}
    if "%ERRORLEVEL%" EQU "1" (
    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}" /f /v "PDF.File" /t REG_NONE
    Note: Please Back up the registry before you modified the registry and delete the key  {0002DF01-0000-0000-C000-000000000046} if it has existed in the registry before you ran the .bat file.
    Best regards

  • Please Help ! Problems with Web Start and HTTPS

    Hi everyone,
    my Web Start application crashes with a SSLPeerUnverifiedException when I
    try to connect to the server with HTTPClient :
    // proxy settings
    HTTPConnection.setProxyServer(ipProxy, portProxy);
    // connection
    HTTPConnection con = new HTTPConnection("https", serverName, -1);
    // Post (then there is a SSLPeerUnverifiedException....)
    HTTPResponse rsp = con.Post("/myurl.jsp, toSend, ct_hdr);
    My application runs in a secure environnement configured by the javaws.policy :
    grant codeBase "file:${jnlpx.home}/javaws.jar" {
    permission java.security.AllPermission;
    and the ${user.home}.java.policy (shared by another application, an applet I think) :
    keystore "file:${user.home}/xxxxxxxxxxxxxxxxxxxxx.p7c";
    grant codebase "https://xxxxxxxxxxxxxxx/-" signedby "xxxxxxxxxx" {
    permission java.lang.RuntimePermission "usePolicy";
    permission java.lang.RuntimePermission "accessDeclaredMembers";
    permission java.lang.RuntimePermission "setIO";
    permission java.lang.RuntimePermission "modifyThread";
    permission java.lang.RuntimePermission "stopThread";
    permission java.lang.RuntimePermission "accessClassInPackage.sun.security.provider";
    permission java.lang.RuntimePermission "loadLibrary.*";
    permission java.security.SecurityPermission "insertProvider.SUN";
    permission java.security.SecurityPermission "insertProvider.JCRYPTO";
    permission java.security.SecurityPermission "insertProvider.JCRYPTO_PKCS11";
    permission java.security.SecurityPermission "putProviderProperty.JCRYPTO";
    permission java.security.SecurityPermission "putProviderProperty.JCRYPTO_PKCS11";
    permission java.security.SecurityPermission "removeProviderProperty.JCRYPTO";
    permission java.security.SecurityPermission "removeProvider.JCRYPTO";
    permission java.security.SecurityPermission "removeProvider.JCRYPTO_PKCS11";
    permission java.security.SecurityPermission "removeProvider.SUN";
    permission java.util.PropertyPermission "*", "read,write";
    permission java.io.FilePermission "<<ALL FILES>>", "write,read,delete";
    permission java.net.NetPermission "specifyStreamHandler";
    permission java.net.SocketPermission "localhost:1024-", "listen";
    permission java.net.SocketPermission "*", "connect,accept,listen,resolve";
    permission java.awt.AWTPermission "accessClipboard";
    permission java.lang.RuntimePermission "queuePrintJob";
    permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
    permission java.awt.AWTPermission "showWindowWithoutWarningBanner";
    grant codebase "file:/myApplication/-" {
    permission java.security.AllPermission;
    In this file (.java.policy) when I replace "codebase "https://xxxxxxxxxxxxxxx/-""
    by "codebase "http://xxxxxxxxxxxxxxx/-"" everything works fine !! It's very very
    very very strange...
    my application is launched by Web Start 1.2 and use JRE 1.4.1
    Any ideas ? Please, I become crazy...

    try using URLConnection instead of HTTPConnection.

  • Error of using Java Mail in Web Start

    Hi,
    I got a problem when using Java Mail to send email. My apps is a stand alone and no problem when it was deployed normally. When I used the Web Start to deploy it, the following error was caught when I tried to send email:
    javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary="----=_Part_0_2824645.1032281188963"
         at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851)
         at javax.activation.DataHandler.writeTo(DataHandler.java:305)
         at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
         at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:321)
         at javax.mail.Transport.send0(Transport.java:164)
         at javax.mail.Transport.send(Transport.java:81)
         at com.mailcom.client.util.EMail.sendMail(EMail.java:180)
    Here is the source code:
    public class EMail {
    public static void sendMail(String host,
    String sender,
    String recipient,
    String subject,
    String content,
    Vector fileNames) throws MessagingException {
    Properties props = new Properties();
    props.put("mail.smtp.host",host);
    Session session = Session.getDefaultInstance(props,null);
    session.setDebug(true);
    Message msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(sender));
    msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(recipient,false));
    msg.setSubject(subject);
    Multipart mp = new MimeMultipart();
         // create and fill the first message part
         MimeBodyPart mbp1 = new MimeBodyPart();
         mbp1.setText(content);
         mp.addBodyPart(mbp1);
    // attach the file to the message
    if(fileNames != null && fileNames.size() != 0) {
    FileDataSource fds = null;
    for(int i = 0; i < fileNames.size(); i++ ) {
    String currentFileName = (String)fileNames.elementAt(i);
         fds = new FileDataSource(currentFileName);
         // create the second message part
         MimeBodyPart mbp2 = new MimeBodyPart();
         mbp2.setDataHandler(new DataHandler(fds));
         mbp2.setFileName(fds.getName());
         // create the Multipart and its parts to it
         mp.addBodyPart(mbp2);
         // add the Multipart to the message
         msg.setContent(mp);
    msg.setHeader("X-Mailer",MAILER);
         // set the Date: header
         msg.setSentDate(new Date());
         // send the message
    line 180     Transport.send(msg);

    Yes. All the third party jar files and our application jar are put on the server side. Here is the JNLP file:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for software-->
    <jnlp spec="1.0+" codebase="http://www.software.com/apps" href="client.JNLP">
    <information>
    <title>client application</title>
    <vendor> * </vendor>
    <homepage href="docs/help.html"/>
    <description>Client</description>
    <description kind="short">A tool</description>
    <icon href="images/logo.jpg"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.3"/>
    <jar href="lib/client.jar"/>
    <jar href="lib/mail.jar"/>
    <jar href="lib/smtp.jar"/>
    <jar href="lib/activation.jar"/>
    </resources>
    <application-desc main-class="com.software.client.MainFrame">
         <argument>2226</argument>
         <argument>www.software.com</argument>
         <argument>5351</argument>
    </application>
    </jnlp>

  • Using external Jar with a mobile application

    Hi folks!
       I need some help with my application, i make a simple mobile application and i need to use a external jar, in this case, this jar have a simple JAVA class that represents a manipulation with eSWT, so my problem is How to using external Jar in NetWeaver 7.1?
       I see other threads that have a same doubts, but i don´t have a solution for my problem.
       Thats it.

    Hi Sivakumar,
    I have similar problem. i want use iText or similar jar files to create pdf. I have currently developed a UI component for handheld. I have dont the following things:
    1)Created a external dc of type external library
    2) addedd the jar in the build path
    3) added the jar in the lib folder of the webdynpro project
    4) added the external jar dc as dependency in my webdynpro project
    I am getting no class def found eror still for some wierd reason. please let me know if some step is missing. I have pasted the trace.
    rror starting the framework
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sap.tc.mobile.cfs.startup.pda.Startup.main(Unknown Source)
    Caused by: java.lang.NoClassDefFoundError: com/cete/dynamicpdf/Font
         at com.sap.demo.testui.testapp.comp.SignatureStandard.runApps(SignatureStandard.java:88)
         at com.sap.demo.testui.testapp.comp.TestCompView.wdDoInit(TestCompView.java:85)
         at com.sap.tc.mobile.wdlite.progmodel.core.Controller.enter(Controller.java:21)
         at com.sap.tc.mobile.wdlite.progmodel.core.View.enter(View.java:45)
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.setCurrentView(Application.java:133)
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.navigate(Application.java:169)
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.enter(Application.java:19)
         at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.setCurrentApplication(WDLite.java:148)
         at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.launchApplication(WDLite.java:80)
         at com.sap.tc.mobile.wdlite.container.ContainerApp.startApp(ContainerApp.java:171)
         at com.sap.tc.mobile.wdlite.container.AppMenuView.onActionLaunchApp(AppMenuView.java:325)
         at com.sap.tc.mobile.wdlite.container.AppMenuView.invokeEventHandler(AppMenuView.java:368)
         at com.sap.tc.mobile.wdlite.progmodel.core.AbstractViewElement.doHandleEvent(AbstractViewElement.java:199)
         at com.sap.tc.mobile.wdlite.renderer.api.UIElement.doHandleEvent(UIElement.java:369)
         at com.sap.tc.mobile.wdlite.renderer.api.UIImageButton.mouseReleased(UIImageButton.java:148)
         at com.sap.tc.mobile.wdlite.renderer.api.UIElement.dispatchMouseReleasedWidgetEvent(UIElement.java:412)
         at com.sap.tc.mobile.wdlite.renderer.api.UIElement$1.mouseReleased(UIElement.java:455)
         at com.sap.tc.mobile.wdlite.renderer.swt.MouseEventDispatcher.mouseUp(SWTControl.java:380)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:137)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)

Maybe you are looking for

  • Label sticker printout for Goods receipt of materials from vendor

    We would like to have Label (sticker type) print out during goods receipt of goods from supplier. This Lable printing is by customzed Z program or output message type same as mateiral document printout??

  • Oracle 10gIDS on LINUX(Redhat 4.2.0, update 3)

    How can I run formbuilder (i.e. frmbld.sh) from a different linux user other than oracle10gids user? Now the frmbld.sh is running from oracleds user. But I have one application user, but I could not run frmbld.sh from that user. It shows an error "FR

  • How do I get an old aluminium cable replaced?

    I have been visited by an Openreach engineer who advised me my cable is very old and needed replacing. I spoke to BT who said my Broadband was above the min (20mbps) so they wouldn't do anything. I am paying for 76Mbps and my neigbour (on a better ca

  • QS41 - Upload codes

    Hi,   We have a requirement to upload code groups and codes using QS41. We used the LSMW and uploaded the code groups , but when we tried writing a BDC for uploading codes of the codegroup the dialog tree structure that comes in the left hand frame o

  • Data Management Videos & Exercises

    Does anyone else think the pace of the videos is too fast for Data Management? Exercises 3 and 4 feel very rushed and I'm having to pause the videos to keep up with the instructor. Also, the query totals differ from the training environment and video