Adblock breaks this site

Java question.

Discussion in 'Programming General' started by cotonpk3r, May 7, 2011.

  1. cotonpk3r

    cotonpk3r Guru

    Joined:
    Mar 9, 2007
    Posts:
    1,992
    Referrals:
    4
    Sythe Gold:
    1
    Java question.

    I have two separate Java programs.
    I'd like to know if anyone knows how (if possible) I can make them both run off one single .JAR file.

    I've tried putting both the main classes in the manifest.. but it tries to run them as one process and ends up ignoring the second listen one.

    I've tried making a separate main class file that calls upon both the main methods of the programs, but it does the same thing as above.

    I can't seem to get it to run two separate java processes off one .JAR file.. but I'm pretty sure it can be done :x

    Any insight?
     
  2. pasiipa

    pasiipa Member

    Joined:
    Nov 28, 2007
    Posts:
    66
    Referrals:
    0
    Sythe Gold:
    0
    Java question.

    why would you want to do that? combine the programs bro, it will be easier
     
  3. cchase0505

    cchase0505 Newcomer

    Joined:
    Jul 12, 2011
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0
    Java question.

    If you want to run two classes in same time use Threading concept in your programming. dont use serialization because after finishing one it will start other.



    Cegonsoft Corporate Training
     
< question? | Need a guide!! >


 
 
Adblock breaks this site