Can i have two main in a jar

I have an application with two differents programs, so i have two main in one jar.
My manifest file :
Manifest-Version: 1.0
Main-Class: Interface.Interface_Lancement
is it possible to launch my other main() from Interface.Interface_Lancement2 class or must i have another .jar with this manifest file :
Manifest-Version: 1.0
Main-Class: Interface.Interface_Lancement2
I would only have on .jar but switch between two different main.
Thx a lot.

Maybe I'm missing something, but how's the jar file supposed to know which main you want to run? I would think instead, you may want to have one main that queries the user for which app they want to run, and then run the appropriate app, or have two jar, one for each app. If they share a lot of code, you could have three jars (app1.ja, app2.jar, and shared.jar) and add shared.jar to both their classpathes.
hth,
m

Similar Messages

  • How can i have two main projects?

    Hi,
    i would like to have two main projects in order to run those at the same time , how can i do that?
    thanks
    alvaro

    they can run independently,
    I prefer not to use the command line, so i would like to run those projects with netbeans, is it posible?Probably. Other IDEs can run multiple programs at once, so Netbeans probably can, too. But, as cotton.m suggested, you should concentrate on learning Java before you learn how to use an IDE.

  • CAN YOU HAVE TWO I TUNES ACCOUNT ON ONE COMPUTER?

    CAN YOU HAVE TWO I TUNES ACCOUNT ON ONE COMPUTER?

    The problem with making separate accounts is that this is a laptop, so likely not a huge hard drive, and if the three iTunes libraries need to have a lot of the same music (because everyone or two or three like some of the same stuff) you end up with double or triplicate copies of the music on the hard drive eating up drive space. Since they don't use his laptop normally, creating more accounts (with all the associated files and drive space usage each account would eat up) it probably isn't worth it.
    Instead, the best approach is like Chris said, to make playlists for the girls in the main library and then set up the various iPod to either sync everything (if big enough) or sync only specific playlists (if not big enough).
    Alternatively, they can set their iPods to manual syncing and then when Dad is visiting they can hook up their iPods and "shop" the library and drag in whatever they want to add to the iPods and delete what they no longer want.
    Patrick

  • Can I have two separate email addresses in my mail?

    Hi,
    Can I have two separate email addresses/users with my one email account without paying anything extra?
    For instance: one email address with [email protected]
    And another one at: [email protected]
    And, if that's possible:
    1. Does it mean paying extra because you are having two separate accounts?
    2. Since it is on the same general account, do the emails and return emails show in the same location or do they show in a different place? For instance, if the 2nd user sends and email and someone returns it, will I as the first user name see both of those?
    Thanks much,
    Lee

    You can have up to five additional addresses, but they are not separate accounts. They are called 'email aliases' and are simply extra addresses which feed into the main inbox (and please note that you cannot create any new @mac.com adresses, they will be @me.com). Please see here about aliases:
    http://homepage.mac.com/rfwilmut/notes/mobileme.html#alias
    It's actually a good idea to give everyone an alias address rather than the main one, since if it gets spammed you can easily change it, whereas as you can't change your main address without opening a new account.
    If you need extra email accounts then you could go for a MobileMe Family Pack. Of course you can always set up free accounts with Google or Yahoo.

  • HT204053 can I have two cloud accounts on one mac. Different i tunes accounts and users

    Can I have two ic;ouds on the same mac. This is a ridiculous set up. Why do I need to create a user name and insert all of this information just to get a simple answer. its no wonder people end up googling stuff rather than using this website.

    If you prefer to Google, then Google. On here you stand a good chance of getting a direct answer from experienced users. And the login is necessary because without it we'd get more spam and stupid posts than we do now. Pretty well all online forums require an login for the same reason.
    To answer your actual question. Firstly, you can use different Apple ID's for iTunes (and iTunes in the Cloud and iTunes Match) and iCloud itself, with email, Calendar and Contacts syncing, PhotoStream, and so on. There is no conflict about doing this.
    If you want to use two separate actual iCloud accounts you can do one of two things:
    1. You can set up a second user account on your Mac: then each user account can be separately signed into and iCloud account with all its facilities.
    2. Having decided which iCloud account is to be your main one, and having signed into System Preferences>iCloud with it (and enabled Mail, Calendars and so on) you can sign in with the other account in System Preferences>Mail, Contacts & Calendars. The email, calendars and contacts will appear alongside those belonging to the first account. The only differences from the primary account are a) Email is not 'pushed' but checked at intervals, and b) you can only use PhotoStream with the primary account.

  • Can you have two Apple IDs on one IPAD? One for school and one for home?

    Can you have two Apple IDs on one IPAD? One for school and one for home?
    If so do you know how to do it?

    It depends on what you want to do.
    You could, for example, have one AppleID for iCloud backup [and therefore message syncing, notes syncing, etc] and a second one for iTunes [music, iBooks, etc].
    But if you are looking for a way to flip everything between different appleIDs, then no.

  • Can you have two apple ids on one mac?

    Can you have two apple ids on one mac? We each have iPhones and want to utilize iCloud.  Is this possible?

    No, in this case the 2 user accounts with its own Apple IDs would be completely seperated.
    If you want to share this things like music and app purchases you will have to to something else.
    1. Create two user accounts on your Mac (user A and user B).
    2. Create two iCloud accounts just for Mail, Contacts, Calendars, Photos, etc. (one for user A and one for user B):
    On your Mac (with Mac OS X Lion or Mountan Lion):
    Settings > Mail, Contacts, Calendars > iCloud > Create an Apple ID (button in left corner)
    On your iPhone, iPad or iPod touch (iOS 5 or later):
    Settings > Mail, Contacts, Calendars > Add Account > iCloud > Get a free @me.com address and create a new Apple ID
    3. It is not recommended because you shouldn't share your Apple ID account information with other people but you could set up your old Apple ID as an account just for store purchases (Apps, Music, ...) so that everyone of you can manage the purchases in their own library (Access is limited to 10 devices). Therefore you have to setup this "old" ID in Settings of your iOS devices (Settings > iTunes & App Store) and in iTunes on your Mac.

  • How can I have two itunes accounts on one computer?

    How can I have two itunes accounts on one computer?

    Not sure what you mean.
    An account is a user name and password.
    Sign into whichever account you want to use for purchasing.
    Authorize the computer for both account to listen to the content.

  • I have to Apple IDs for two different app stores in two different countries. Can I have two distinctie AppStore icons on my iPad?

    I have two Apple IDs for two distinct countries. Can I have two distinct AppStore icons on my iPad?.

    I have two id's and I dont want  one!! I bought a used Mac pro I thought i had changd all their information, but when I try to do updates on my Iphone, I enter my id and password, then it will ask for the id of the other passoword!!!!( the person who I bought the Macpro from) grrrrr anyone know how I can get this sorted out? Thank you in advance.

  • Can you have two different users with itune accounts on the same computer?

    Can you have two different users with separate itune accounts on the same Ipad?

    Yes, create another user profile on the computer and each user can log into their own profile that way.

  • Can you have two iphones with separate iclouds on the same itunes account, can you have two iphones with separate iclouds on the same itunes account

    I have one itunes account with mulitple libraries for each device (one iphone, 4 ipods).  The one iphone is connected via the cloud.  everytime a new song or app is added to the account it is placed in all of the libraries.  I want to add another iphone to the acccount when I tried it replaced the contacts with the contacts on the iphone already on the account.  How do I prevent that from happening and can I have two iphones on the same account and use the cloud on both
    thanks

    iTunes will remember the settings for each device after you set them up for the first time.
    How to use multiple iPods, iPads, or iPhones with one computer -> Method two

  • Can you have two itunes accounts on the same computer?

    Can you have two itunes accounts on the same computer and if so how do you access them without syncing each others music?

    Yes. Use separate iTunes libraries(launch iTunes with the Shift(Windows) or Option(Mac OS X) key held down as needed), or different user accounts on the computer.
    (100648)

  • Can I have two separate iTunes accounts on the same computer?

    Can I have two separate iTunes accounts on the same computer?  My wife's music is much different than mine.  Can we have different iTunes libraries to work with on the same computer?

    Yes. Launch iTunes with the Shift key held down as needed, or use separate Windows user accounts on the computer.
    (107261)

  • I bought my daughter an ipod. Can I have two seperate itunes libraries on one computer? If so, how do I set this up?

    I bought my duaghter an ipod. Can I have two seperate itunes libraries on one computer? If so, how do I set this up?

    I followed these instructions & have created a new library file. However, all my music now appears in the new library as well as my own. (I bought my daughter an ipod nano for christmas & want to separate itunes libraries on one computer). How can this be so difficult?

  • How can we have two different Itunes libraries on one computer?

    How can we have two Itunes accounts on one computer?  I found info on the itunes help page but I do not know how to follow the steps given because I am not prompted with what it says I should be prompted with? Please help I don't want to delete one of our libraries

    Launch iTunes with the Shift key held down as needed, or use different Windows XP user accounts.
    (74282)

Maybe you are looking for

  • Excel Import - Numbers 09

    I cannot properly import an Excel file. The import results in all data being placed in column 1. ( The problem is sometimes listed as a tab character, regardless of the file that is being used.) The only way that I can get to the data is to open the

  • Lot of z fields bad effect to project-remedy

    Hi Experts, We are adding many Z field (around 160) to CRMD_ORDERADM_H and CRMD_ORDERADM_I. Up to my knowledge, these Z fields will update lot of structures and tables. I have one doubt that u2018will all z fields going effect project anywhere badlyu

  • Creating 2 slideshows - burn to dvd

    Hey everyone. I am new to using Encore and have a question in regards to creating slideshows. I have created 2 seperate slideshows, each with images and music and I would like to know how I can put them together to burn on a dvd. I would need the fir

  • Internal or External Soundcards? Which?

    Presently I'm using a Eurorack MX 602A small 6 channel mixer. Which I run the output into the rear Mac mini jack audio input. The inputs on the mixer are mostly 1/4" (guitar, bass etc.) and I use a MIDISPORT 2 x 2 (USB)...I only have a DX7s connected

  • After Effects CS6 going nuts!

    I have After Effects CS6, no updates or add ons. It has worked fine all along, but then today it went nuts. The problems: I was making a deep space scene, placing tow planets in the scene and moving them about. Usually I make a planet by importing a