Java question.

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

Java question.
  1. Unread #1 - May 7, 2011 at 5:21 AM
  2. cotonpk3r
    Joined:
    Mar 9, 2007
    Posts:
    1,992
    Referrals:
    4
    Sythe Gold:
    1

    cotonpk3r Guru

    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?
     
  3. Unread #2 - May 8, 2011 at 11:28 AM
  4. pasiipa
    Joined:
    Nov 28, 2007
    Posts:
    66
    Referrals:
    0
    Sythe Gold:
    0

    pasiipa Member

    Java question.

    why would you want to do that? combine the programs bro, it will be easier
     
  5. Unread #3 - Jul 12, 2011 at 7:21 AM
  6. cchase0505
    Joined:
    Jul 12, 2011
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0

    cchase0505 Newcomer

    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!! >

Users viewing this thread
1 guest


 
 
Adblock breaks this site