Problems with libs in jar and .bat file

I have a third party library in a jar, let's say LIBRARY.JAR. Then I have my program which uses classes in that Jar, let's call it Program.JAR. The main class is program.Main.class. And I want to write a batch file so that it set's the classpath ro the LIBRARY.JAR, and runs program.Main class. Could anybody help me? I can't manage so far...

For Windows the batch file could containjava -classpath LIBRARY.JAR;Program.JAR program.MainFor *nix, use : instead of ;                                                                                                                                                                                                                                                                       

Similar Messages

  • Problems with installation of system and support files with Labview 5.1 on Windows NT.

    I make installations disks with Labview 5.1 on Windows NT and I need to add some system files and other support files. When I'm in App Builder I choose them in "Add support files" and I mark their "custom directory destination" (c:\winnt\system32, c:\est\base) but, when I test the installation I see that files don't save in this directory, they save in 'C:\c\winnt\system32' and 'C:\c\est\base'. How can I solve this problem?

    Jorge,
    I know there were some problems with the LabVIEW 5.1 Application Builder that were fixed in the LabVIEW 5.1.1 Updater. I recommend you download that update to see if this fixes the problem. Also, double-check to make sure you have typed the file paths correctly. If you continue to have problems after installing the 5.1.1 updater, please let me know, and please attach your .bld file so I can examine it for any problems.
    Thanks for your patience on this issue, and have a pleasant day.
    Sincerely,
    Darren Nattinger
    Applications Engineer
    National Instruments
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Login problems with create pdf,share and my files

    Hello ,
    When I currently go to www.acrobat.com on my windows xp
    computer and try to go to one of the create pdf,share and my files
    and click on begin I get a message saying sorry this service is
    temporary unavailable but when I click on learn more it says all
    service are up and runing. Does anyone know what is wrong and if
    the service is down when will it be fixed.?

    Hi Sue!
    This seems like a separate issue you're running into. It is
    good that you can get logged in, but odd that you're only seeing
    partial functionality in your user.
    How many files are missing? Is this affecting certain file
    types?
    Did you ever see files in your My Files section?
    How long have they been unavailable/missing?
    When uploaded, did they complete making it through the
    scanning process?
    Can you see files in your Buzzword organizer? (which is a
    different section than your My files organizer)
    Create new documents?
    It would be good to get another browser as a comparison test
    here as well, to see if there is any different behavior!
    It could be firewall related, but what you could do is maybe
    try logging into your account from another person's computer for a
    moment, to see if the files are visible there?
    Otherwise, the test from home, or laptop at a coffee shop,
    would be another good test!
    Get back to us with some of these questions answered, and
    we'll see about getting you up and running!
    Cheers,
    Pete

  • Problems with QT 7.03 and Mpeg files

    QT 7.0.3 won't play any Mpeg file on my computer. It will play all other files but not the MPEG files???? why? Also, I was getting a bluetooth audio error when I tried to play a MPEG file. Which is really wierd, I don't use any bluetooth device on my G5 iMac.

    So do I !! Smooth playback is a bit of a laugh at the moment !! For MPEG 4 that is MPEG2 is fine and dare I mention it MPEG 1 is OK
    I have a copy of Player 6.5.1 still on my system and they play smoothly thru this player but not the 7.03 Player and defintely NOT thru iTunes since I installed 7.03
    am going back to 7.01 and see what happens
    ( yes I have the official Apple MPEG Playback Component added on )
    they seem to play alright in VLC but out of sync in MPlayer

  • Problem with using external jar file

    Hi
    I was using mail.jar library for swing application to send and receive emails. It just works perfect when I run with netbeans. But when I run the executable jar file at dist folder it runs but mail related functions doesn't work.What should I do now to make it work with mail features outside netbeans.
    thanks
    vinay
    Edited by: 899657 on Dec 24, 2011 5:07 AM

    899657 wrote:
    No. Because I am running the jar file which is created by netbeansNetbeans creates a 'dist' directory in which it puts your jar and a "dist/lib' directory in which it puts the dependent jars that are added to the project using 'project right mouse click'->Properties->Libraries. I would expect to see this 'dist/lib' directory contain mail.jar and activation.jar and any other jars that your jar needs. Within your program jar's manifest I would expect to see the Class-Path attribute have relative reference these jars ( lib/mail.jar lib/activation.jar ) and for the Main-Class attribute define your main class.
    Given this setup then you should be able to just type -
    java -jar yourjar.jarto run your program.

  • HT3042 Please show us the video tutorial for this because i am having so much problem with my iphone5 bluetooth and can not send any file . So plz plz help me

    Please show us the video tutorial for this because i am having so much problem with my iphone5 bluetooth and can not send any file . So plz plz help me

    You have to use airdrop which is on iOS 7

  • Problems with Cocoon 2.03 and Weblogic 6.1 SP3

    I am having problems with Cocoon 2.03 and Weblogic 6.1 SP3, when I try to deploy
    the cocoon.war.
    Cocoon works fine when I unpack the cocoon.war into ...\mydomain\applications
    (after I changed cocoon.xconf to use the following transformer factory: org.apache.xalan.processor.TransformerFactoryImpl).
    However, when I deploy the cocoon.war through the weblogic console and try to
    invoke cocoon (http://localhost:7001/cocoon/) I get the following error:
    ERROR (2002-09-26) 11:28.40:859 [sitemap] (/cocoon/) ExecuteThread: '7' for
    queue: 'default'/Handler: Error compiling sitemap
    java.util.zip.ZipException: The system cannot find the file specified
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.<init>(ZipFile.java:110)
         at java.util.zip.ZipFile.<init>(ZipFile.java:125)
         at weblogic.utils.zip.ZipURLConnection.getInputStream(Handler.java:49)
         at org.apache.cocoon.components.source.URLSource.getInputStream(URLSource.java:151)
         at org.apache.cocoon.components.source.URLSource.getInputSource(URLSource.java:223)
         at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:318)
         at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:282)
         at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:196)
         at org.apache.cocoon.sitemap.Handler.run(Handler.java:228)
         at java.lang.Thread.run(Thread.java:484)
    I understood that there were problems when the cocoon.war file that did occur
    when you unpacked the war, but I believed that these problems did not occur with
    WLS6.1 SP3.
    Has anyone else encountered this problem and solved it? Any help would be greatly
    appreciated.
    Thanks in advance.
    Paul

    This how I got Cocoon 2.04 up and running on WLS 6.1.4
    Download the Cocoon source from http://xml.apache.org/cocoon/dist/
    Remove all but the following JARs from lib/optional:
    commons-jxpath-1.0.jar
    jing-20020724.jar
    resolver-20020130.jar
    servlet_2_2.jar
    commons-logging-1.0.jar
    jtidy-04aug2000r7-dev.jar
    rhino-1.5r3.jar
    xt-19991105.jar
    Update lib/jars.xml to reflect these changes
    Issue build commands:
    ./build.sh clean (Note: Always clean first!)
    ./build.sh -Dinclude.webapp.libs=yes -Dexclude.webapp.samples=yes -Dexclude.webapp.documenation=yes
    -Dexclude.webapp.javadocs=yes webapp
    Copy the following JARs to your WLS instance’s lib directory:
    xercesImpl-2.0.0.jar
    xml-apis.jar
    xalan-2.3.1.jar
    xt-19991105.jar
    java/lib/tools.jar
    Sample of config/SERVER_NAME.setenv
    LIB=/path/to/lib
    JARS=$LIB/xercesImpl-2.0.0.jar:$LIB/xml-apis.jar:$LIB/xalan-2.3.1.jar:$LIB/xt-19991105.jar:/opt/java1.3/lib/tools.jar
    JAVACLASSPATH=$JARS:.:$JAVACLASSPATH
    JAVA_HOME=/opt/java1.3
    Deploy the resluting cocoon.war and you should have a Cocoon up and running that
    can do the XML->HTML Hello World sample. The status page works fine too.
    My advice is to launch this stripped configuration first and if needed add more
    features later by adding the JARs of your choice to the class path (or add the
    to your webapp-build if you are confident that WLS are capable of handling their
    manifests).
    Good luck
    /Peter
    "Paul Petley" <[email protected]> wrote:
    >
    >
    I am having problems with Cocoon 2.03 and Weblogic 6.1 SP3, when I try
    to deploy
    the cocoon.war.
    Cocoon works fine when I unpack the cocoon.war into ...\mydomain\applications
    (after I changed cocoon.xconf to use the following transformer factory:
    org.apache.xalan.processor.TransformerFactoryImpl).
    However, when I deploy the cocoon.war through the weblogic console and
    try to
    invoke cocoon (http://localhost:7001/cocoon/) I get the following error:
    ERROR (2002-09-26) 11:28.40:859 [sitemap] (/cocoon/) ExecuteThread:
    '7' for
    queue: 'default'/Handler: Error compiling sitemap
    java.util.zip.ZipException: The system cannot find the file specified
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.<init>(ZipFile.java:110)
         at java.util.zip.ZipFile.<init>(ZipFile.java:125)
         at weblogic.utils.zip.ZipURLConnection.getInputStream(Handler.java:49)
         at org.apache.cocoon.components.source.URLSource.getInputStream(URLSource.java:151)
         at org.apache.cocoon.components.source.URLSource.getInputSource(URLSource.java:223)
         at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:318)
         at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:282)
         at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:196)
         at org.apache.cocoon.sitemap.Handler.run(Handler.java:228)
         at java.lang.Thread.run(Thread.java:484)
    I understood that there were problems when the cocoon.war file that did
    occur
    when you unpacked the war, but I believed that these problems did not
    occur with
    WLS6.1 SP3.
    Has anyone else encountered this problem and solved it? Any help would
    be greatly
    appreciated.
    Thanks in advance.
    Paul

  • Problem with creation of jar with external libraries

    hi guys, I've no problem with creation of jar,i use this command:
    jar -mcf MANIFEST.MF NameFile.jar *.class
    my file manifest is this:
    Manifest-Version: 1.0
    Created-By: Me
    Main-Class: NameFile
    Now,I've to make a jar file,but i have to use some external libraries in jar format.
    I've read on sun tutorial and i've added to manifest this line:
    Class-Path: dt.jar formshelp.jar formsrt.jar jh.jar looks-1.3.1.jar substance.jar TableLayout.jar
    But the jar file doesn't work, neither with a double click nor with console...
    Someone can help me?Thanks!:)

    Darkweb wrote:
    sorry but,the external libraries that i use are in .jar,what i've to do to include these libraries in my jar?One of 3 things
    1) Take them out of the jar, and put them in a folder, preferably a folder in the same folder as the jar
    2) Write a custom classloader to load classes from nested jars
    3) Extract the contents of all the dependency jars, and jar them all up with your own code
    The first is almost always the most preferable, the second one is doable but brittle and resistent to updating dependencies ( you have to release everything for any changes you need, even if it's not a change in your own code ) and the third one is tedious and suffers from the same robustness problems of the second, not to mention that a lot of software licences prohibit you from actually doing it. Do the first one, it's by far the most common and easiest to maintain. I really wouldn't advise the third option, ever, though. Any activity that reduces the modularity of your application is ill-advised

  • Strange problem with my build JAR

    Hiii everybody... I'm having a strange problem with my build (JAR file)... when I work with the Eclipse and I click in the table that returns the clients stored in my PostGre database it works fine, but when I build my application and it generates my JAR file and I open it and click in the same table to return the objects that I have.. it does not appears anymore.. just show when I work with eclipse... and the database is the same for both.
    I already checked the database path in my properties file... and the application recognize the database because I can login and there isn't any runtime exception...
    In that application I work with Hibernate and Spring... for me it is very strange because the application works fine when I run by eclipse... but does not return the database data when I click on my Jar file to open the application..
    Someone can help me with that?
    I dont know if the problem is in the Spring, Hibernate, Libraries...
    thanks in advance...

    So what's the error then? Are there any error messages? Have you checked the console? Or are you just clicking on the jar and you wouldn't even see the errors if there are any?
    What do the logs say?
    You're not giving a lot to work on here.

  • Jarring and unjarring files at runtime.

    I have this line
    Runtime.getRuntime().exec("jar -x foo.jar");which hangs.
    I wanted to dynamically jar and unjar files.. Can I do this with Runtime.exec()?

    Umm..
    It took some fiddling for me to realize that I have to have my class file in the directory where I want the extracted files to be for those files to be unjarred in the right place, which then created this problem during rejarring, where my class file gets jarred into it... how can I
    a) exclude my class file from being jarred? OR
    b) remove auto.class after the jar file is created?
    If I knew it was this much of a pain, I would've done it manually :D

  • Communication problem with Adobe 9.0 and HP Printer when I scan

    I'm having a problem getting a .pdf file to come up when I scan from a HP 5610 All-in-one printer. Have uninstalled and reinstalled HP software three times but when I scan and want a pdf file it won't communicate with Adobe 9.0 reader for some reason. Is there a setting in Adobe reader that's a problem?
    Thanks.

    Thanks...found out that an HP5610xi All-in-One will not completely communicate with Adobe 9.0   Had to go to Adobe 6.0
    Date: Thu, 17 Dec 2009 03:19:49 -0700
    From: [email protected]
    To: [email protected]
    Subject: Communication problem with Adobe 9.0 and HP Printer when I scan
    May be that the HP software doesn't support Adobe Reader 9.
    >

  • IE11 Problem with Windows 8.1 and IIS 8.5

    I have upgraded my computer from Windows 8 to Windows 8.1, 64bit and IIS 8.5 is installed on the upgraded machine. I am unable to view with IE11 the default page of the default website  hosted on the local machine. The problem occurs with both
    the desktop version of IE11 and the Windows 8 metro style version.
    When Chrome is installed on the machine the page is visible but when using IE11 a "This page can't be displayed" message appears. The IIS Log Files reveal that it is receiving nothing from IE11. Other machines I have that have also been upgraded
    to Windows 8.1 exhibit the same fault.
    The strange thing is that when viewing pages on other networked machines exhibiting the same problem, you can see the pages on the remote machines but in all instances the local page cannot be viewed.
    It appears that there is a problem with IE11. Uninstalling and reinstalling IE11 does not fix the problem.
    Can anyone help me? Assitance with this problem would be most appreciated. 

    Description
    <dir>
    </dir><dir></dir><dir></dir><dir>
    Faulting Application Path: C:\Program Files (x86)\Internet Explorer\iexplore.exe
    </dir>
    Problem signature
    <dir>
    </dir><dir></dir><dir></dir><dir>
    Problem Event Name: APPCRASH
    Application Name: IEXPLORE.EXE
    Application Version: 11.0.9600.16384
    Application Timestamp: 52157231
    Fault Module Name: MSHTML.dll
    Fault Module Version: 11.0.9600.16432
    Fault Module Timestamp: 52620354
    Exception Code: c0000005
    Exception Offset: 002964a7
    OS Version: 6.3.9600.2.0.0.256.48
    Locale ID: 2057
    Additional Information 1: ab90
    Additional Information 2: ab9026eb5cad8b25f882a373e2d752b2
    Additional Information 3: d486
    Additional Information 4: d48664e52db6f0b0676e13c96e422192
    </dir>
    Extra information about the problem
    <dir>
    </dir><dir></dir><dir></dir><dir>
    Bucket ID: 45b7b98d077be82c89ec9142c2213a5f (-374769956)
    </dir>

  • Problem with the EFI system partition's file system.

    I installed latest yosemite 10.10.2 update - did a verify disk on “WDC WD1001FALS-403AA0 Media” (internal HD on my iMac 21.5-inch, Mid 2011) and got
    Problems were found with the partition map which might prevent booting
    Error: The partition map needs to be repaired because there’s a problem with the EFI system partition’s file system.
    However a verify disk on the volume partition gets a clean bill of health!
    I haven't done a 'repair disk' yet. Thought I'd check if anybody else has same message first.
    Cheers

    I had issues where my MacPro 8-core would not boot after the 10.7.4 upgrade, but my MacBook Air 13" 2011 upgrade worked just fine.
    I had to restore my MacPro HD from my TimeMachine back up. Apparently, the Softraid raid drivers that I use on my MacPro are not compatible yet with 10.7.4. See here for more info:
    http://macperformanceguide.com/blog/2012/20120511_1-MacOSX-SoftRAID.html
    I contacted Softraid and they are already aware of the issues and are working with Apple for a fix.
    Cheers.
    Bud

  • I'm having problems with CS2 (mainly illustrator and photoshop

    I'm having problems with CS2 (mainly illustrator and photoshop ) randomly shutting down while trying to save a file. Reformatted my laptop for fear of a virus and reloaded... I have gotten nowhere.
    Please Help!

    CS3 still had issues with the preferences becoming corrupt, so a possible workaround would be to reset the preferences.
    The file is called AIPrefs and is located under 'Documents and Settings/User/Application Data/Adobe/Adobe Illustrator CS3 Settings'. It is a hidden file. Delete it with Illustrator closed and when you launch the program again the file will be rebuilt.
    May be it is also sounds like you need more memory for your computer. If you can navigate to your computer's memory controls, and allow your operating system to use a portion of your hard disk drive (HDD) as RAM (maybe 2Gb or so) it may solve your issue.
    How is about: http://www.filerepairforum.com/forum/adobe/adobe-aa/illustrator/383-%E2%80%8Bcorrupted-fon ts-in-illustrator-file-urgent-help-need – resource has non-commercial specialty
    Third party software Illustrator Repair Kit also must be good solution
    It has free demo version at:- http://www.illustrator.repair/
    Hope this will be helpful.

  • MacBookPro SSD Error- ALERT: The partition map needs to be repaired because there's a problem with the EFI system partition's file system.

    MacBook Pro OS x Mavericks. I have Sandisk 256GB SSD and I am getting a below error message.
    ALERT: The partition map needs to be repaired because there's a problem with the EFI system partition's file system.
    Does anyone know how to resolve this error and fix it ? unfortunately I don't have a Time Machine backup. Thanks!

    Have you tried to run the verify/repair permissions and verify/repair disk through the recovery disk? If that didn't work then I would reinstall the OS after backing up. If that still doesn't work I would take it in.

Maybe you are looking for

  • Legality questions about Home Sharing

    I have some legality questions about Apple's Home Sharing technology. As I understand it, you can share (that is, copy it from one computer to another) your music, movies, applications and other iTunes-managed files amongst five computers. The only '

  • Oracle9i Database Release 2 (9.0.2.0.1) Disk 2 Need Help!

    ok i just recently a couple days ago pretty much started downloading the 3 disk set of oracle 9i databse rel. 2 full thing for windows nt/xp etc anyways after 4 re-downloads using my internet explorer browser i finally got on my other pc and download

  • T530 Intel SSD 520 Freeze Issue Win 7/8

    I've tried asking Lenovo support, however I'm yet to receive a reply. The other concern is that now that I know more, which may speed the reply, I'm unable to update the support request, which is annoying that such a feature is missing from the suppo

  • Unable to Access the home page of oracle  10g express edition.

    I have installed enterprise manager 10g and also express edition 10g .But after installing the enterprise manager 10g and trying to access the url http://127.0.0.1:8080/apex .The xdb username and password is prompted.I deleted the entry in init.ora f

  • Configuring EDI Feature failing for BTS2k9

    Any pointers to fixing this solution will be greatly appreciated. OS:Win2k8R2 BTS2k9 Thanks [10:37:00 AM Error Configuration Framework]Feature: [BizTalk EDI/AS2 Runtime] Failed to configure with error message [<Exception Message="Failed to configure