Problem in loading more than one jar file in .jnlp

Greetings
Could someone help me I want two jar files in .jnlp
I have copied ufnasoft.jar.jar and mysql-connector-java-3.1.10-bin.jar in current folder. Here is code for your consideration.
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://192.168.0.100:8090/test" href="test.jnlp">
  <information>
    <title>Test</title>
    <vendor>Ufnasoft</vendor>
    <description>Ufnasoft Test</description>
    <description kind="short">Ufnasoft Test</description>
    <offline-allowed/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se version="1.4+"/>
     <jar href="ufnasoft.jar" main="true"/>
     <jar href="mysql-connector-java-3.1.10-bin.jar"/>
     </resources>
  <application-desc main-class="com.ufnasoft.gui.MainInterface"/>
</jnlp>it gives following error:
Unable to load resource: http://192.168.0.100:8090/test/mysql-connector-java-3.1.10-bin.jar
I have JRE 1.5.0 on Windows 2000 machine.
Best regards
Younas Aamir

What happens if you try:
java -classpath <path to jar1>;<path to jar2> main_class
on system 192.168.0.100?
Can that work for you?

Similar Messages

  • How to Include more than one jar files

    My application uses more than one jar files. And all the jar files i am using are signed. when i include the jar files, i am including them in the resources section of the ".jnlp" file . The section of code looks like this:
    <resources>
    <jar href="utestfw.jar" main="true" download="eager"/>
    <jar href="crimson.jar"/>
    <jar href="jaxp.jar"/>
    </resources>
    <application-desc main-class="utestfw.ObjectBrowser"/>
    The deployment of the application is successful. The jar file - "utestfw.jar" contains the application main class when the application is launched it works, but when i choose the feature which involves the classes of either "crimson.jar" or "jaxp.jar" , the application terminates and the webstart console and the application is closed automatically. Am i wrong in adding the jar files? what is the way to add more than one jar files to the ".jnlp" file.
    Can anyone please help me?
    -Aparna

    I'll post u the jnlp file which i am using. To sign all the jars i've used the same alias ( a self signed certificate using keytool and jarsigner).Here is the jnlp file:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="0.2 1.0"
    codebase="http://127.0.0.1:8080/healthdec"
    href="testTool.jnlp">
    <information>
    <title>Unit Test Manager </title>
    <vendor>Sun Microsystems, Inc.</vendor>
    <description>A minimalist drawing application along the lines of Illustrator</description>
    <icon href="images/testing.gif"/>
    <offline-allowed/>
    </information>
    <resources>
    <j2se version="1.3+ 1.2+"/>
    <jar href="utestfw.jar" main="true" download="eager"/>
    <jar href="crimson.jar" main="false" download="eager"/>
    <jar href="jaxp.jar" main="false" download="eager"/>
    </resources>
    <application-desc main-class="utestfw.ObjectBrowser"/>
    <security>
    <all-permissions/>
    </security>
    </jnlp>
    Can u please look at the above code and suggest me where i am wrong. Thanks.
    -Regards
    Aparna

  • How to prevent the User from loading more than one seq file?

    Hi,
    I would like to prevent the tester operator from loading more than one test sequence.  Any ideas how to do it?
    Thanks
    Rafi

    Hi Marty,
    Marty_H wrote:
    Hello mhousel,
    Testexec.exe by default loads the sequence files that were last open when it runs.  It is often desired behavior to have multiple sequence files load automatically. 
    [Mark Housel] Maybe for some but certainly not for me. 
    This should be easily handled by TestStand without any problems.  What do you mean by "chaos ensues"? 
    Certainly Teststand doesn't care a bit how many sequences are open.  But, when my sequences open they initialize HW of the ATE associated with
    that sequence file during the sequenceFileLoad callback.  e.g. I allocate TELNET handles to a terminal
    server that connects to multiple console within the system and als for
    the UUT.
    If a second sequence opens it knows nothing about the other sequence and again tries to open a TELENT session to the same port of the
    terminal server and obviously fails, so my sequence reports that it
    can't properly initialize the ATE HW.  Bad juju!
    Are your sequence files set to run automatically when they are loaded?
    I guess so.  Other than the trick of logging in as the special noExecution user and having special code in my sequence and modified Process Model I have no idea how to prevent a sequence fronm "runnin" when opened.
    If you want to prevent Testexec.exe from loading multiple files, you should be able to close out one of the open files when it loads and that sequence file should not load in the future.  I hope that helps.
    The trick I read somewhere else of modifying the Testexec.uir file to never re-load a sequence file automatically seemes to have covered up solved the problem.
    Thanks,
    Mark

  • How can I reference more than one jar file

    hi, In an applet, I use
    Archive = "foo.jar" to reference this jar file.
    But how can I reference more than one file?
    Thanks.

    Suggestion: spend a few minutes reading the tutorials.
    http://java.sun.com/docs/books/tutorial/applet/appletsonly/html.html
    You can specify multiple archive files by separating them with commas:
    <APPLET CODE="myapplet.class" ARCHIVE="file1, file2"     WIDTH=anInt HEIGHT=anInt>
    </APPLET>

  • Problem with printing more than one page (ghostscript broken?)

    Hello,
    since one of the last package updates I have problems with printing more than one page. The print problems occurs as well with pdf files as well with printing websites. I use an actual KDE system with commercial turboprint printer driver. The first page always prints fine, but all consecutive pages are corrupted.  As from a similar problem some months ago, I assume a broken ghostscript package. I tried to downgrade ghostscript to check that, but I get depency problems:
    root@arch32 dieter]# ls -l /var/cache/pacman/pkg/ghostscript-*
    -rw-r--r-- 1 root root  9906288 21. Mär 2010  /var/cache/pacman/pkg/ghostscript-8.71-3-i686.pkg.tar.xz
    -rw-r--r-- 1 root root 11402624  8. Okt 22:44 /var/cache/pacman/pkg/ghostscript-9.00-1-i686.pkg.tar.xz
    [root@arch32 dieter]# pacman -U /var/cache/pacman/pkg/ghostscript-8.71-3-i686.pkg.tar.xz
    Löse Abhängigkeiten auf...
    Suche nach Zwischen-Konflikten...
    Fehler: Konnte den Vorgang (Kann Abhängigkeiten nicht erfüllen) nicht vorbereiten
    :: libspectre: benötigt ghostscript>=9.00
    [root@arch32 dieter]#
    Anyone else having printing problems or a solution for my problem?
    Thanks, Dieter

    This may not be related but I had a problem printing a pdf today whereby the second page got corrupted. The same pdf had printed fine several months ago. I realised that (long story) for some reason I had switched drivers (HP printer) from hpijs to hpcups. I installed the printer again as a "new" printer using the hpijs driver and it printed properly this time.
    So it may be that the bug causes issues with some drivers. You could try an alternative driver for the printer as temporary workaround?

  • How can I put more than one source file when I am creating my installer from LV 7 Express

    Hi,
    I am creating my installer for my application and I would want to add more than one source file at once, how could I do it?
    Thanks,
    ToNi.

    Hi,
    I'm referring to the first executable. In other words, I have my application and I want to build and executable of it. Then I go to "Tools->Build application..." and then in the source files tab I can add my vi files but I want to add more than vi at the same time (at once) and not one by one. How can I do it?
    And my second question is: When I make the installer for my application I save the configuration in a build Script file (.bld) in order to use it whenever I want. Then If from another computer different from the one where I generate the .bld file, I load it, LV tells me that something is wrong (LV says there are some errors in some VIs but It doesn't tell me what files are). Why?
    Thanks in advance,
    ToNi.

  • How to open more than one RAW-File by drag&drop/doubleclick with CS2?

    Hello,
    is it possible to open more than one RAW-file from iPhoto with Photoshop's RAW-converter in just one single step? If I drag&drop my selection to my Photoshop-Icon, PS opens just the iPhoto-created library-JPGs of the RAW-files but not the RAWs itself (I've turned out the copyying of the imported photos to the iPhoto-library. Instead iPhoto seems to create a JPG for the library from every RAW I import). If I doubleclick a selection of RAWs in iPhoto just the doubleclicked RAW-File will be opened in Photoshop. Is it possible to select more than one RAW-file in iPhoto and get Photoshop to open all the selected RAWs but not the JPGs? It would make my work a lot easier... thank you.
    rockenbaby

    hello
    try selecting the photos that you want however many- go, File then Export.
    you can make all your file selections image size etc and then save them direct to your PS file.
    hope this helps.
    cjp

  • Problem with starting more than one SwingWorker

    Hello
    I wonder if anyone could tell me if there are known problems with starting more than one SwingWorker thread at once?
    In response to an action the user performs, I need to obtain several lists of things from the server. This includes a couple of server-calls, and I want to do the server calls in a thread outside the awt-event thread. So I start a couple of SwingWorker-threads. This works fine sometimes, but not always. Sometimes code in some of the SwingWorkers finished method does not update the ui. I can see that the correct calls are made, but the ui is still not updated correctly. The problem seems to be related to the sequence of when the different thread are finished. For instance, if the sequence is like this:
    SwingWorker1.construct
    SwingWorker2.construct
    SwingWorker1.finished
    SwingWorker2.finished
    Things go fine, but if the sequence is:
    SwingWorker1.construct
    SwingWorker1.finished
    SwingWorker2.construct
    SwingWorker2.finished
    the ui-updates in SwingWorker1.finished is not done correctly.
    Can anyone help me with this?

    This is the point:
    In one SwingWorker thread you have 1 construct method, and 1 finish method - which are both invoked once.
    Therefore you only have one opportunity to update the gui in that thread. This forces you to use many threads if you want regular updates, which I try to avoid.
    Therefore, the solution!
    Have a loop in the construct method that executes the algorithm accordingly, updating the gui accordingly at regular times, maintaining just the 1 thread - becomes easier and nicer for the programmer and the JVM.
    The finish method in this case is to update the gui when all iterations are finished.
    There is nothing wrong with this. Just because you have a finish method that is called in the event-dispatching thread doesn't mean that all your update code must be in there.
    What you MUST ensure is that ALL your update code is executed in the event-dispatching thread, that is the most important thing. After all, SwingWorker is just a helper class, not the gospel template of how to update a gui.

  • How to compile more than one .cpp file?

    Hi Folks!
    I'm really need help. Stuck with the simple thing: I need to compile more than one source code file into .SWC.
    It's fine with a single file typing:
    g++ source1.cpp -swc -o mylib.swc
    when I try to use
    g++ source1.cpp source2.cpp -swc -o mylib.swc
    source1.cpp is ignored, and source2.cpp is used.
    As result I'm getting error in SWF:
    Undefined sym: _main
        at cmodule.mylib::CLibInit/init()
        at test_fla::MainTimeline/frame1()
    Because source1.cpp skipped.

    I digged it.
    Just created makefile with lines
    all:
        g++ -c source1.cpp -o source1.o
        g++ -c source2.cpp -o source2.o
        g++ -swc -o mylib.swc source1.o source2.o;
    and run make.
    in docs I found that I can pass more than one .cpp file, but it won't work for Alchemy. However, if we compile .cpp one by one into .o files we can then link them together.

  • How do I attach more than one PDF file to an email

    How do I attach more than one PDF file to an email

    You cannot do that on iOS when you are using the Share feature from Reader.

  • Problem with Assigning more than one value to GROUP dynamically

    Hi,
    I have a problem with assigning more than one value to GROUP varible dynamically.
    I am able to assign only one value dynamically through Initialization block
    I have even tried with the ROW-WISE initialization blocks..
    using this query..
    SELECT 'GROUP', G.GROUP_NAME
    FROM GROUP_MAP G
    WHERE G.USER_NAME = ':USER'
    if GROUP_1, GROUP_2 are two groups to be associated,
    through this, i'm getting " GROUP_1;GROUP_2 " into GROUP variable ( seen from Narative view )
    And the properties and securities of this Groups are not inherited.
    Please let me know if there is any other way to Populate the GROUP variable dynamically with more than one value.
    Thank you.,

    Hi,
    i finally got in this way..
    i had created a function which takes USER_NAME as input and returns a string that contains the GROUP names with semicolon delimeted..
    Though it is same as that of ROW-WISE initialization,
    the properties of those groups are also being inherited..
    Now, i can assign more than one groups and its properties to a user dynamically.

  • Play more than one auido files

    Is it possible, in j2me, to play more than one auido files at the same time?
    I want to play an audio file as my background music and player some other files as sound effect.

    http://developer.sonyericsson.com/site/global/techsupport/tipstrickscode/java/p_using_simultaneous_sounds.jsp

  • More than one upload file at a time?

    Say if I have like more than one file upload field in my
    form, is there a way where I can do the upload of all the files
    together just like what I usually do in HTML?
    I am having the problem to do this because apparently, PHP
    only receives the $_FILES['Filedata'], which is only one of the
    upload fields that I have on a form. So it only allows a single
    upload when a submit button of a form is clicked on.

    Thanks mhartnett.
    I have looked at the example on the link you gave. According
    to the example for the FileReferenceList in the documentation, it
    seems to make multiple or rather separated requests to the
    server-side upload script.
    So for example if I have 3 files to upload, the script will
    call the the upload() function of the FileReference class thrice
    with the URLRequest(which is the server-side upload script). So in
    this case, my server-side script that is handling the upload will
    only upload one file at one time.
    Is there a way where I can have say all the 3 files sent
    together to the server-side script, and then have them uploaded all
    at once within the server-side script itself?
    So say my PHP file, I could have access to like
    $_FILES['Filedata1'], $_FILES['Filedata2'] and $_FILES['Filedata3']
    together at one request.

  • Can't open more than one InDesign file at a time.

    InDesign CS6
    Sometimes, when I try to open a second or third InDesign file I get this message:
    [Cannot open "file-name.indd" please close one or more Adobe InDesign documents or books or libraries and try again]
    If I close all open files, it lets me open one file.
    If I quit, and restart Id, I can open more than one file for a while, then it starts to show this error message again.
    Interestingly, it was doing this same behavior in Id CS 5.5.
    I was hoping that upgrading to CS6 would cure it of this.
    Any ideas?
    iMac i7 27"
    8 GB RAM
    OSX 10.8.1

    As a general comment, most users don't have a problem opening multiple files, so this is probably something local on all of your systems (though not necessarilty the same thing).
    Standard things to try for troubleshooting are removing all third-party plugins, including any font manager auto-activation, creating a new user account and try that, trash your prefs (see Replace Your Preferences) and start your machine with background programs disabled.

  • Can't add more than one music file at a time

    i used to be able to use "add file to library" to add several newly downloaded songs to itunes all at once by highlighting several song files. all of a sudden, i can no longer do this. i have to add them one at a time. it allows me to highlight more than one, but when i click on "OK" no songs are added.
    anyone know why?

    As a general comment, most users don't have a problem opening multiple files, so this is probably something local on all of your systems (though not necessarilty the same thing).
    Standard things to try for troubleshooting are removing all third-party plugins, including any font manager auto-activation, creating a new user account and try that, trash your prefs (see Replace Your Preferences) and start your machine with background programs disabled.

Maybe you are looking for