How to execute a jar file which needs another pot to be in the class path

Hello

I need to run a pot, which needs another pot to be in the classpath.

If I run as

Java - classpath < name jar1 > - < main jar > jar

It gives classnotfoundexception, while the class is available under the name < jar1 >.


so, currently I like that

In the manifest file, I gave as
Main-Class: < class name >
Class-Path: < jar name > < name2 jar >

so it works well. But, if I want to change the location of the pot I changed again the file manifest.
Is it possible to do this? Pls help me.

What is

Java - cp jar1.jar; jar2.jar com.acme.MainClass

You won't have to worry about the manifest file after that and you can make a bat file (or .sh file in * nix) for her.

Tags: Java

Similar Questions

  • How to export a PDF file without bleed him feel extra "stuff" on the edges?

    I know that my question wording sucks, but I didn't know how else to put it.

    I created a document ID for printing with a bleeding.  When I export to PDF format, the image is not cropped to the final size of the page, but includes the excess background images that I have extended beyond the limits of the page for a bleeding.  I am now trying to export a PDF file that can be sent by e-mail and will not be printed, and so I would like to export a PDF file that has none of these extra stuff (I disabled the printing marks) on the edges.  But my PDF has the makings of excess and a red outline around the dimensions of the actual page.  How to export a PDF file which is cropped to the correct page size (8.5 "x 11")?

    I have attached the PDF I created with the stuff in excess and the red outline around the size of the page so you can see what I mean.

    Thank you!

    Bryan

    When exporting, make sure that the ' marks and bleeds options looks like don't like this (no boxes checked):

  • I'm transferring my entire website from my old Web host at GoDaddy. How to copy all my files (in Dreamweaver) to my Web site from the server, it's on now, on my desk? So I can then connect you to my new server with GoDaddy and transfer all s

    I'm transferring my entire website from my old Web host at GoDaddy. How to copy all my files (in Dreamweaver) to my Web site from the server, it's on now, on my desk? So I can then connect you to my new server with GoDaddy and transfer all of the site?

    If you don't have local copies of your site on your computer...

    1 create a new Site definition using your old FTP GS-01 information: definition of a new site. Learn Dreamweaver CS5 & CS5.5 | Adobe TV

    2. Once you have the defined site and can connect, click on the Get (down arrow) command in the files Panel

    3 when you are prompted to hit "get the entire Site? Yes

    4. After downloading the entire site, navigate to the Site > Manage Sites > click the site > Edit > servers > click on the remote server > Edit to enter your new GoDaddy FTP Info

    5. after the test connection to check, you can connect, click the command Put (up arrow) in the files Panel

    If you have a site already defined for your old Web host, go to #4 above.

  • How do you export a file from lightroom if you do not have the original raw file

    How do you export a file from lightroom if you do not have the original raw file

    Hmm, the link disappeared. Let's try again:

    Extract previews

  • Windows cannot access file you will not have permission to access the item path or specified device.

    Windows cannot access file you will not have permission to access the item path or specified device.

    I have windows7 OS, I try to open any application above the display of error messages.

    Please help me...

    Thank you!!!

    original title: Windows cannot access

    another user account works fine.

    Then, your profile is corrupt.  Create a new user, copy documents and other profile corrupted on the new profile.

    Do not copy * all *-only things you have created.  (Except the shortcuts).

    Is the user profile damaged an administrator or standard user?

  • How to add external jar file?

    Hi all
    1. work on the version of BB storm (9500/9530 Simulator) is v4.7.0.75
    2 opportunity BB JDE v4.7

    4. the request is:

    My application needs commans - httpclient.ja.

    If I add external jar file.

    application throws the runtime as error

    module "Commons-httpclient ' not found."

    My request is here:

    is it posible to add external jar file in blackberry?

    If so, how do I add external jar file?

    can any body help me on this point, because I am doing this for the first time

    Thanks in advance

    Abreu - Bureddy

    File JAR of Th which tent has class files not getting recognized by BB Jvm.

  • NOTEPAD ON HOW TO TRANSFER A JAR FILE YOU'RE CELL PHONE?

    I DOWNLOADED BLUEWARE AND IN NOTEPAD IT SAY... "TRANSFER the BLUEWARE. "THE JAR (FOUND IN THIS SAME FOLDER) YOU'RE PHONE"... HOW CAN I DO THIS?

    http://www.blurtit.com/q5429909.html

    You can read the above.

    http://www.google.com.au/search?hl=en&source=HP&q=Transfer+the+BLUEWARE.jar+file+to+a+Cell+Phone&aq=f&aqi=&AQL=&OQ=&gs_rfai=

    Google hits on this subject.

    Contact your Support of mobile phone for information about this.

    See you soon.

    Mick Murphy - Microsoft partner

  • How to delete temporary internet files which are described as "access denied."

    I tried to erase internet files temporary 'temp' and '%Temp%' records "prefetch". Some I can't delete and I get a message that says "access denied" or "this file is used by someone else. I think I have been subjected to some Martin

    Hello

    1. what operating system is installed on your system?

    2 are connected to the system as an administrator?

    Appropriate files and see if you can remove the files.

    http://TechNet.Microsoft.com/en-us/library/cc753659.aspx

    Method 1: Remove temporary files in safe mode networking.

    Follow the link below and start in safe mode with network and check if you are able to delete temporary files.

    http://Windows.Microsoft.com/en-us/Windows-Vista/advanced-startup-options-including-safe-mode  (For Windows Vista)

    http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode  (For Windows 7)

    Also, follow the link below and run the fix - it and check if the problem persists.

    How to remove the contents of the temporary Internet files folder

    http://support.Microsoft.com/kb/260897

    It will be useful.

  • How to call a jar file using the IIS virtual directory

    I have my application with limited functionality and I am trying to deploy a jar files in my library files, IIS is my web server. I want to create a virtual directory and I should be able to invoke the new jar of the virtual directory. Any thoughts?

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Deployment, redeployment JAR file for WebLogic EM without having to restart the service

    Hello

    Can someone help me how to redeploy the file .jar on weblogic EM with steps.
    Deployment, redeployment JAR file for WebLogic EM without restarting the server
    Appriciate if you provide information in steps with screenshot.
    Note: Not in the 11g weblogic console.

    Thank you
    Phani

    http://download.Oracle.com/docs/CD/E14571_01/core.1111/e10105/deploy.htm#BIHIIEIA

  • How to save a PDF file in Adobe so it appears correctly in the Firefox default drive?

    I have seen discussions on how to change your own settings of Firefox for poster correctly PDF files (documents to look at a PDF in Firefox 19 +) However, I'm looking for a solution on how to save a PDF file so that they display correctly in the new default Firefox reader. Our files PDF is bad looking and I can not go in the browser of each clients and difficulty settings (http://www.cherrybekaertbenefits.com/wp-content/uploads/2014/07/ACA_Infographic_072114.pdf). Meet them all parameters within the Acrobat Distiller is going to fix this without the Viewer to enter their own arrangements?

    Hmm, not a subtle difference.

    We did not have many experts PDF or Adobe Illustrator users post advice here; those who might be sprinkled around on other forums, blogs or support sites.

    I noticed when you view the properties of the PDF in Adobe Reader that the PDF has been created with optimization for active fast Web view. This is a feature that allows the progressive rendering of PDF files over a slow connection (http://helpx.adobe.com/illustrator/kb/optimize-native-pdf-file-sizes.html#...). You can try to re - generate the PDF file with this feature turned off to see if that makes a difference?

  • Someone knows how to fix a corrupted file mib.cab? 2350 error code? The result of the installation failed for Mindstorms NXT 2.0 on computer vista laptop, service pack 2.

    Tried to install the Lego NXT 2.0 software (programming robotics), a message "file 'mib.cab' required for this installation is corrupt and cannot be used.  A message gives the error code 2350.  Someone knows how to fix a corrupted file mib.cab?

    Try in the Forum of programs:

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/threads

    See you soon.

    Mick Murphy - Microsoft partner

  • How do to transport a file catalog to another

    I had an open catalog IBC because I was taking a class is the class in a book for Adobe Photoshop Elements 10.  The next time I opened my photoshop I did not notice that I was still in the catalogue of the IPC.  I download lots of pictures of wedding and retouched. their tag etc and discovered that they were all in the wrong catalog

    I know that I can go to get pictures etc, but if I do that I'll have to change all over again.  Is there anyway to select images and transfer them in the catalogue of the IPC to my regular catalog?

    Please say there!

    Yes and no.  (How an answer?)

    There is no means anything whatsoever skip a PSE catalog to another catalog PSE.

    However, in the old catalog, you can select photos and use the file... Write key words to picture, who will write the tags in the metadata of photos.  (Note: this only works with PSD, TIF and JPG files and not with PNG files, given that PNG files don't support metadata.)  Then, in your catalog on the other, when you import those pictures you can also import their labels.

    Your changes have been made directly on the images, so these changes will of course always be there.

    Ken

  • How to use a graphic file (jpg, png) as an active link in the body of an email?

    When I go to insert/link I would like to use a graphic file instead of text. I can paste the actual url in the location of link but space can you use text in the text area of the link where he asks me "Enter the text to display for the link. Is it possible to use an image as an active link?

    Insert > image and select the link tab after you select the location of the image.

  • How can I delete this file which allows my laptop go "standby mode"?

    How can I remove this plug-and-play of windows operating system Manager file the file is umpnpmgr.dll version 5.1.2600.5512 that causes a problem for my laptop in standby mode. I need to remove WRN_POWER_EVENT_SERVICE_VETO. MY LAPTOP IS a TOSHIBA TECRA 5 and operating Wndows XP Professional all updates to this day and has been scanned for viruses. I picked this up from the eventvwr handler on my system.

    It is not a file, it is a message of a piece of hardware attached to your laptop or inside the laptop.  This piece of hardware is refusing the request to enter the mode 'sleep'.  You need to know what hardware is rejecting the request and then either remove, see if the updated drivers will be repaired, or use a sleep mode that does not generate this message.

Maybe you are looking for