Why wont this jar execute (one way fine, the other is not)

Without using a executable jar this works fine:
java.exe -classpath myproject\classes;lib1.jar;lib2.jar;lib3.jar MyMainClass
MyMainClass is my target class stored in myproject\classes
I make an executable jar called Project.jar (basically all content in myproject\classes with usual manifest file containing target class) and then try
java.exe -classpath lib1.jar;lib2.jar;lib3.jar -jar Project.jar
This does not work and gives error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/beans/factory/InitializingBean
The class org/springframework/beans/factory/InitializingBean is contained in lib1.jar
I must be missing something fundamental about creating executable jars?? Any ideas or pointers?

I've simplified my problem so someone could help me please!!!!
The following runs fine:
java -cp .;Model.jar TestThe following fails:
java -cp .;Model.jar -jar Test.jarException in thread "main" java.lang.NoClassDefFoundError: Model at Test.main(Test.java:8)
Model.jar contains one class model.Model.class
Test.jar contains one class Test.class plus manifest file. The Test class simple does the following:
import model.Model;
public class Test
  public static void main(String[] args)
    System.out.println("Start");
    Model model = new Model();
    System.out.println("End");   
}Any ideas why?

Similar Messages

  • I'm downloading a movie to each of my kids new ipads.  it says that it's downloading, but the completion % has shown the same % since it began 2 hours ago.  is this normal? one shows 94%, the other 24%.  how do I know if it's progressing?

    I'm downloading a movie to each of my kids new ipads.  it says that it's downloading, but the completion % has shown the same % since it began 2 hours ago.  is this normal? one shows 94%, the other 24%.  how do I know if it's progressing?

    You are on Windows 2000, you do not have a "Firefox" button, and should consider yourself to be fortunate in that you still have menus and don't have to do anything to get the menus back instead of the "Firefox" button. (The same applies to Windows XP users).
    Use the "File" menu to get to Import. You are not on Windows 7 or Vista, and don't have to put up with the nonsense added for Aero.
    If you want the "Firefox" button you can get it with View -> toolbars -> (uncheck) Menu Bar. The menu bar and the "Firefox" button were supposed to be mutually exclusive (which is impossible in some cases without being incompatible).
    Once you are using the "Firefox" button ...
    Use the "Alt" key to view the menu bar (temporarily) containing File, Edit, View, History, Bookmarks, Tools, and Help. On Windows 7 and Vista, the menu bar was hidden by default in Firefox 4 and above. These menu items are more or less available under the "Firefox" button which has the most used of the built-in Firefox menu items available in a different format.
    To get back to having menus again. "Firefox" button -> Options (second column) -> (check) Menu Bar
    You can make '''Firefox 7.0.1''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface

  • TS3989 Only some of the photos I have taken on my iPhone appear in the photo stream on my iPad even thou they were taken at the same time. Why is this and how can I import the other photos from my iPhone to my iPad?

    Only some of the photos I have taken on my iPhone appear in the photo stream on my iPad even thou they were taken at the same time. Why is this and how can I import the other photos from my iPhone to my iPad?

    If older photos are missing it may be because photo stream photos are only held in iCloud for 30 days.  After that they are removed from iCloud but will remain (up to 1000 photos) on your device until deleted.  Also, only photos taken after enabling photo stream are added to your photo stream, and only when the camera is closed, your device is connected to wifi and you have at least 20% battery life remaining.
    To transfer the missing photos you can either create a shared photo stream containing them and invite yourself to it (see http://help.apple.com/icloud/#mmc0cd7e99), import the photos to your computer and sync them to your iPad, or use an app like PhotoSync to transfer them to your iPad over wifi.

  • I have 2  iPads both the sane except for case color. One connects to my home wifi fine, the other will not "join". It finds the wifi name and the little circle turning wheel just spins.

    I have 2  iPads both the sane except for case color. One connects to my home wifi fine, the other will not "join". It finds the wifi name and the little circle turning wheel just spins. I have tried about ten different "fixes" none work.. Reboot, forget wifi, etc.
    Unplugged wifi on and on for about an hour.
    I have compared settings between the two and cannot see any difference.
    Both iPads worked fine last week. One made a trip to MI  and used cellular access just fine. Now that one still uses cellular OK, but refuses to "join" the wifi.
    Too bad I can't attach a picture.
    Anyone care to offer a unique workable solution I have not tried?
    Thanks
    WD9HIK

    Have you tried renewing the lease in the WiFi settings? Settings>WiFi>Your network name>Tap the blue arrow>Renew Lease. If you haven't tried that - try it first before reading the information about restoring the iOS software.
    Follow the instructions in here. If you are unsure about anything - do not proceed. Post back with questions first.
    iTunes: Restoring iOS software - Apple - Support
    Make sure that you transfer all purchases, backup the iPad and sync with iTunes first. When you restore to factory settings, iTunes should ask if you want to backup first, but it will not hurt to initiate a backup on your won before you even start the restore process.
    How to transfer purchases into your iTunes library
    http://support.apple.com/kb/HT1848
    How to backup and restore from a backup
    http://support.apple.com/kb/HT1766

  • I keep getting the box that asks "Do you use the Yahoo! Toolbar on multiple Computers. It asks Save to my Yahoo! ID, or No thanks, just save to this computer. How do I get rid of this one way or the other?

    When I log on to Firefox, I get this block that pops up saying, "Do you use the Yahoo! Toolbar on multiple computers? It has 2 buttons asking "Save to my Yahoo! ID or No thanks, just save to this computer" It drops down from the Yahoo toolbar, next to the Y! on the left side of the tool bar. I have tried the Save button and no response, I tried the No thanks button no response. I tried the underlined "Learn more" and it too no response. I tried the close X but that does not get rid of this box. I tried right clicking and no response. It stays there through out while working on the mail, I cannot access the that toolbar so I cannot use the buttons on this tool bar. Please help or I will have to try another browser to see if it go away.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • TS1538 I have 2 ipod touches. One syncs just fine, the other is not recognized by itunes.  I uninstalled and reinstalled itunes, reset the ipod touch to factory settings. Itunes still doesnt recognize one of my ipod touches

    I have 2 ipod touches. One of the syncs with itunes just fine. The other isnt recognized by itunes. I reset the ipod to factory settings,and uninstalled and reinstalled itunes, still no recognition.

    - Do you have the latest version of iTunes on the computer? iOS 6 requires 10.5 or later. The current is 10.6.3
    - Have you tried a reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - You could try placing the iPod in Recovery Mode and restore the iPod. However, if you can't restore the iPod or use this program to get the iPod out of recovery mode
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    you will lose use of the iPod.
    - An appointment at the Genius Bar of an Apple store might be in order.

  • Primary key vs Secondary key - why would a rpt hit one as to the other?

    Post Author: kevans
    CA Forum: Data Connectivity and SQL
    Here's an issue that surfaced when using CRW10, happens with XI as well, but not an issue with CRW8 - each one is hitting the same SQL Server db.
    I discovered something today and I'm not sure if this might be the road to a solution, however, I don't know enough about SQL Server and/or Crystal.  First, my reports seem fairly simple in nature, I don't think I'm pulling a million rows of data, maybe but doubt it.  So I run report ABC and I see blocking issues in SQL Server Enterprise Mgr.  If I run report XYZ that isn't too much different than ABC, I do not see blocking issues.  Hmm, what could be different?  In SQL-Mgr when I look at the SPID info generated by the report I can see the tables the report is referencing and below is what I discovered.
    The one difference I see is under the "Index" column - the report blocking shows "XPKcall_req" where call_req is the table I'm pulling from.  The report that IS NOT blocking shows call_req_x0.  I checked with our dba and he wasn't sure, other than to say XPK is the primary key index.  Okay, then why is one report hitting the primary key index (whatever that is) and the other isn't?  In Crystal I'm not sure how to tell it to stop doing this, I tried shaking my finger and yelling but like my kids this does little.
    Any ideas, with the report that is?

    Post Author: kevans
    CA Forum: Data Connectivity and SQL
    Here's an issue that surfaced when using CRW10, happens with XI as well, but not an issue with CRW8 - each one is hitting the same SQL Server db.
    I discovered something today and I'm not sure if this might be the road to a solution, however, I don't know enough about SQL Server and/or Crystal.  First, my reports seem fairly simple in nature, I don't think I'm pulling a million rows of data, maybe but doubt it.  So I run report ABC and I see blocking issues in SQL Server Enterprise Mgr.  If I run report XYZ that isn't too much different than ABC, I do not see blocking issues.  Hmm, what could be different?  In SQL-Mgr when I look at the SPID info generated by the report I can see the tables the report is referencing and below is what I discovered.
    The one difference I see is under the "Index" column - the report blocking shows "XPKcall_req" where call_req is the table I'm pulling from.  The report that IS NOT blocking shows call_req_x0.  I checked with our dba and he wasn't sure, other than to say XPK is the primary key index.  Okay, then why is one report hitting the primary key index (whatever that is) and the other isn't?  In Crystal I'm not sure how to tell it to stop doing this, I tried shaking my finger and yelling but like my kids this does little.
    Any ideas, with the report that is?

  • Can two people access WWF from an iPad, one way or the other?

    I have downloaded Words with Friends on my iPad3, and I can play it via the WWF app icon, but if I try to access WWF via my Facebook page on the iPad, nothing happens.  The same is true for my wife; she cannot access WWF via her Facebook page on the iPad.  Nor can she access it via the WWF icon on the iPad.  However, we can both access WWF via our Facebook pages on our home and work Dell PCs.  Can we each access WWF on our iPad?  If so, how?

    it would seem like you need to get two of the same app. This is why I never will get the paid WWF, because it's very glitchy and issues like this.
    but anyway, it seems you could download the free version for the ipad and the free version for the iphone.
    both will show up on your ipad, one for your account and one setup with her's
    you could also, though I'm not recommending you give this company your money, could get the free iPad version and the paid ipad version.
    in either case, it would appear that you can't easily switch between users like I previously thought.

  • Problem running iTunes for two users on same computer, one works fine, the other keeps locking up and shutting down iTunes

    I have two users on one computer.  I have iTunes set up for both users.  For one user (mine) iTunes works just fine.  For the other user (my wife), Itunes opens up but then locks up and shuts off.  Any suggestions?  Thanks

    Check this Apple article out -> iTunes for Windows XP: Troubleshooting unexpected quits, freezes, or launch issues
    It provides user-specific troubleshooting tips that should get the problem taken care of.

  • On new MacPro with Microsoft Office, two email accounts (same server) yet one is fine the other dumps 35,000 emails into inbox. Apple consultants no help. How do I get the 35000 email account fixed?

    On new MacPro with Microsoft Office. Two email accounts, same service provider and server, yet one email account is fine and the other dumped the entire server of 35,000 emails into inbox. Need to keep server load for business, but how can emulating server on one account be fixed?

    You should clean up your inbox on the server. Log into the account's web interface and move the 35,000 emails out of the inbox into another folder. Why do you need to keep 35,000 emails in the inbox? An email client like OutLook etc. using POP protocol downloads all the inbox emails to your computer.

  • Two Windows 7 accounts on one pc, one firefox works fine, the other fixefox not responding.

    We have 2 WIndows 7 accounts on one pc. On the account my wife uses, she is always having problems with firefox that I never have.
    Recently it was shrinking fonts in emails.
    Now, she gets Firefox not responding on start up. Can't reset settings because I can't get control of the menu in firefox while it is spinning.
    What to do, eh?

    It may also be a local problem with some other programs on her account. I would run both an antivirus (Windows Security Essentials, Kaspersky, etc) and an anti-malware (Malwarebytes) to discount those possibilities, then use a Task Manager window (ctr-alt-del or right click the taskbar) to monitor resource usage.
    It's also possible she accidentally installed a lot of taskbars which are draining resources and modifying behavior. Once you get into the browser using Guig2's method (above), look at your addons and plugins, use a search engine to figure out what they do, and disable what you're not using. You may need to use Add/Remove programs as well.

  • The ORA-12154 error again (one DB fine, the other not)

    Hi,
    I have 2 DBs on my PC with the same home. There is only 1 tnsnames.ora in my oracle folder (excluding 2 samples). My tnsnames.ora looks like this:
    # 10.2.0\db_1\network\admin\tnsnames.ora
    TNTDB =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = oocl-dird)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = tntdb)
    TEST02 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = oocl-dird)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = TEST02)
    EXTPROC_CONNECTION_DATA = ..My sqlnet.ora:SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZNAMES)listener.ora:SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
          (PROGRAM = extproc)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
          (ADDRESS = (PROTOCOL = TCP)(HOST = oocl-dird)(PORT = 1521))
      )I can connect to tntdb. I can't connect to TEST02 using @TEST02. I can connect using @oocl-dird:1521/TEST02 though (same values as the tns)
    Whats the reason? How to fix? :s

    sb92075 wrote:
    open Command Window & issue following OS commands
    lsnrctl status
    lsnrctl serviceStatus:
    Service "+ASM_XPT" has 1 instance(s).
      Instance "+asm", status BLOCKED, has 1 handler(s) for this service...
    Service "+asm" has 1 instance(s).
      Instance "+asm", status BLOCKED, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "TEST02XDB" has 1 instance(s).
      Instance "test02", status READY, has 1 handler(s) for this service...
    Service "TEST02_XPT" has 1 instance(s).
      Instance "test02", status READY, has 1 handler(s) for this service...
    Service "test02" has 1 instance(s).
      Instance "test02", status READY, has 1 handler(s) for this service...
    Service "tntdb" has 1 instance(s).
      Instance "tntdb", status READY, has 1 handler(s) for this service...
    Service "tntdbXDB" has 1 instance(s).
      Instance "tntdb", status READY, has 1 handler(s) for this service...
    Service "tntdb_XPT" has 1 instance(s).
      Instance "tntdb", status READY, has 1 handler(s) for this service...
    The command completed successfullyService:Services Summary...
    Service "+ASM_XPT" has 1 instance(s).
      Instance "+asm", status BLOCKED, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0 state:ready
             LOCAL SERVER
    Service "+asm" has 1 instance(s).
      Instance "+asm", status BLOCKED, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0 state:ready
             LOCAL SERVER
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    Service "TEST02XDB" has 1 instance(s).
      Instance "test02", status READY, has 1 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:0 max:1002 state:ready
             DISPATCHER <machine: OOCL-DIRD, pid: 1472>
             (ADDRESS=(PROTOCOL=tcp)(HOST=oocl-dird)(PORT=1037))
    Service "TEST02_XPT" has 1 instance(s).
      Instance "test02", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:11 refused:0 state:ready
             LOCAL SERVER
    Service "test02" has 1 instance(s).
      Instance "test02", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:11 refused:0 state:ready
             LOCAL SERVER
    Service "tntdb" has 1 instance(s).
      Instance "tntdb", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:8 refused:0 state:ready
             LOCAL SERVER
    Service "tntdbXDB" has 1 instance(s).
      Instance "tntdb", status READY, has 1 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:0 max:1002 state:ready
             DISPATCHER <machine: OOCL-DIRD, pid: 2364>
             (ADDRESS=(PROTOCOL=tcp)(HOST=oocl-dird)(PORT=1038))
    Service "tntdb_XPT" has 1 instance(s).
      Instance "tntdb", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:8 refused:0 state:ready
             LOCAL SERVERMike

  • HT202213 I can view the library from one pc on the other but not the other way?

    I can view my wifes library on my pc in sharing but she cannot access mine. Any Ideas?

    Hello tj2k15,
    Thanks for using Apple Support Communities.
    To troubleshoot this issue with Messages on your iPhone please follow the troubleshooting in the support article linked to below.
    iOS: Troubleshooting Messages
    Take care,
    Alex H.

  • VPN: one is working, the other is not...

    I have several interfaces:
    outside
    inside(192.168.0.0/24)
    wifi(192.168.101.0/24)
    haklab(10.10.10.0/24)
    Currently I have remote access anyconnect users who are able to VPN in and get access to the outside internet and inside devices.
    I am trying to add another VPN config to allow users to connect to the haklab resources from the outside. 
    Currently they are able to connect to the VPN and access outside resources, but they are unable to see any of the devices on the inside.    
    I have created a user, pronto which should be forced in recieving the mdc3 connection profile which assigns them an IP address from my DHCP server which is also on that lan segment.  The VPN users are currently reciving an address from DHCP. In my case 10.10.10.20 was assigned to pronto when he VPN'd in.
    My goal is to determine why pronto can't access any of the devices on the haklab interface
    Here is the full config:
    https://gist.github.com/3333437
    ASDM VIEW ACCESS: just PM me and Ill create an account.
    relevant snippets:
    object network MDC3_VPN
    subnet 10.10.10.200 255.255.255.248
    access-list haklab_access_in extended permit ip object MDC3_VPN interface HAKlab
    ip local pool mdc3_VPN 10.10.10.200-10.10.10.240 mask 255.255.255.0
    nat (inside,outside) source static HAK_LAB HAK_LAB destination static MDC3_VPN MDC3_VPN
    nat (outside,outside) after-auto source dynamic MDC3_VPN interface
    username pronto password xxxxxxxx encrypted
    username pronto attributes
    vpn-group-policy mdc3_policy
    group-lock value mdc3
    service-type remote-access
    webvpn
      anyconnect profiles value MDC3 type user
    anyconnect profiles MDC3 disk0:/mdc3.xml
    tunnel-group mdc3 type remote-access
    tunnel-group mdc3 general-attributes
    address-pool mdc3_VPN
    default-group-policy mdc3_policy
    dhcp-server subnet-selection 10.10.10.25
    tunnel-group mdc3 webvpn-attributes
    group-alias mdc3 enable
    group-policy mdc3_policy internal
    group-policy mdc3_policy attributes
    wins-server none
    dns-server value 10.10.10.25 4.2.2.2
    vpn-tunnel-protocol ikev2 ssl-client
    default-domain value mdc3.net
    webvpn
      anyconnect profiles value MDC3 type user

    Hi Daniel.
    I am trying to figure out what are you trying to achive by this ACL?
    "access-list haklab_access_in extended permit ip object MDC3_VPN interface HAKlab"
    Why not use the below since you want to access all resources behind HAKlab.
    access-list haklab_access_in extended permitip object MDC3_VPN any
    HTH
    Zubair

  • Why is one of my earphones working and the other is not?

    why is on of my earphones working and the other is not?

    Either it isn't plugged in all the way, the headphones are defective, or the headphone jack on your Touch is broken.

Maybe you are looking for

  • InDesign CS6 Crashes on launch: error in BIB.dll

    Hello, When I launch a new install of InDesign CS6, it crashes with this error detail from event viewer.: Faulting application name: InDesign.exe, version: 8.0.0.370, time stamp: 0x4f72c3ee Faulting module name: BIB.dll, version: 1.2.2.19553, time st

  • File Finding on Unix plateform

    hey, I have a quick question when your doing a recursive file search/scan whatever, on unix/linux you have can symbolic links that can potentially point back to the parent directory or multiple directories above the immediate parent directory. Java i

  • System hangs while working with Adobe forms in Eclipse

    Hi, I am new to SAP ABAP and ABAP in Eclipse. So far we were using SAP GUI, but now we are moving towards Eclipse for ABAP. I am creating adobe forms  in eclipse using Open with SAP GUI option. I am able to create and execute in eclipse  but it alway

  • When GOA goes to error in process status?

    for example In purchase order, purchaser can change the plant at header or item level even follow-on document exists. The symptom can be reproduced by executing the following steps, 1. Create purchase order in extended classic scenario 2. Create part

  • Use jar file

    dear guys, can somebody tell me why would use jar file? how it would be use? i would like to get the idea of jar file thanks