Author Topic: Running a client on eclipse.  (Read 498 times)

Offline AdotSells

  • Firecape Member
  • *
  • Posts: 300
  • Rep 4
    • View Profile
Running a client on eclipse.
« on: March 26, 2011, 02:51:07 pm »
I dont know if its the problem for every client or just some  but when i run a client on eclipse i always get this

Quote
Usage: node-id, port-offset, [lowmem/highmem], [free/members], storeid

To fix it ~

Search for
Quote
public static void main(String args[])

And replace that whole void with this

Quote
   public static void main(String args[])
   {
   try
   {
   nodeID = 10;
   portOff = 0;
   setHighMem();
   isMembers = true;
   signlink.storeid = 1;
   signlink.startpriv(InetAddress.getLocalHost());
   client client1 = new client();
   client1.createClientFrame(503, 765);
   }
   catch(Exception exception)
   {
   }
   }


This is not hard to figure Out but I thought id post incase somebody ever got this trouble.

Offline Cinodor

  • I'm Awesome
  • Veteran
  • Pernix Member
  • *
  • Posts: 494
  • Rep 15
  • I Do Graphics To.
  • Location: GMT -6 (Oklahoma)
    • View Profile
Re: Running a client on eclipse.
« Reply #1 on: March 26, 2011, 03:19:05 pm »
Well, it wouldn't help me since i don't have a client, but good job.
Signature Loading.. Please Wait..

Offline AdotSells

  • Firecape Member
  • *
  • Posts: 300
  • Rep 4
    • View Profile
Re: Running a client on eclipse.
« Reply #2 on: March 26, 2011, 03:27:29 pm »
Thanks mate :)

Offline Sajon

  • Rune Member
  • *
  • Posts: 166
  • Rep -1
  • Never Back down
  • Location: United Kingdom
    • View Profile
Re: Running a client on eclipse.
« Reply #3 on: March 26, 2011, 04:27:45 pm »
well can you help me evertime i download a client i all ways get main class not found i have jdk i have everything in the same folder whats wrong?

Offline AdotSells

  • Firecape Member
  • *
  • Posts: 300
  • Rep 4
    • View Profile
Re: Running a client on eclipse.
« Reply #4 on: March 26, 2011, 04:34:06 pm »
Add me on msn   Ash-sells@hotmail.co.uk

Offline Sajon

  • Rune Member
  • *
  • Posts: 166
  • Rep -1
  • Never Back down
  • Location: United Kingdom
    • View Profile
Re: Running a client on eclipse.
« Reply #5 on: March 26, 2011, 07:26:03 pm »
Add me on msn   Ash-sells@hotmail.co.uk
thank you for helping you fixed it you are the best.

Thank you again