Thread: Client help pls

Results 1 to 10 of 10
  1. #1 Client help pls 
    Registered Member
    Join Date
    Nov 2009
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    hello guys, i got the legacy source and rune honor client
    but when i try to run the client with eclipse i get this error:

    Exception in thread "main" java.lang.NoClassDefFoundError: RSImageProducer
    at RSApplet.initClientFrame(RSApplet.java:36)
    at Client.init(Client.java:1024)
    at Jframe.initUI(Jframe.java:51)
    at Jframe.<init>(Jframe.java:24)
    at Client.main(Client.java:3476)
    Caused by: java.lang.ClassNotFoundException: RSImageProducer
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:4 24)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 57)
    ... 5 more


    how can i fix this?

    greetz,

    kenvanbael
    Reply With Quote  
     

  2. #2  
    Registered Member


    Join Date
    Aug 2014
    Posts
    649
    Thanks given
    177
    Thanks received
    448
    Rep Power
    5000
    Replace your RSImageProducer with this..

    Code:
    import java.awt.*;
    import java.awt.image.*;
    
    final class RSImageProducer
    		implements ImageProducer, ImageObserver
    {
    
    	public RSImageProducer(int i, int j, Component component)
    	{
    		anInt316 = i;
    		anInt317 = j;
    		anIntArray315 = new int[i * j];
    		aColorModel318 = new DirectColorModel(32, 0xff0000, 65280, 255);
    		anImage320 = component.createImage(this);
    		method239();
    		component.prepareImage(anImage320, this);
    		method239();
    		component.prepareImage(anImage320, this);
    		method239();
    		component.prepareImage(anImage320, this);
    		initDrawingArea();
    	}
    
    	public void initDrawingArea()
    	{
    		DrawingArea.initDrawingArea(anInt317, anInt316, anIntArray315);
    	}
    
    	public void drawGraphics(int i, Graphics g, int k)
    	{
    		method239();
    		g.drawImage(anImage320, k, i, this);
    	}
    
    	public synchronized void addConsumer(ImageConsumer imageconsumer)
    	{
    		anImageConsumer319 = imageconsumer;
    		imageconsumer.setDimensions(anInt316, anInt317);
    		imageconsumer.setProperties(null);
    		imageconsumer.setColorModel(aColorModel318);
    		imageconsumer.setHints(14);
    	}
    
    	public synchronized boolean isConsumer(ImageConsumer imageconsumer)
    	{
    		return anImageConsumer319 == imageconsumer;
    	}
    
    	public synchronized void removeConsumer(ImageConsumer imageconsumer)
    	{
    		if(anImageConsumer319 == imageconsumer)
    			anImageConsumer319 = null;
    	}
    
    	public void startProduction(ImageConsumer imageconsumer)
    	{
    		addConsumer(imageconsumer);
    	}
    
    	public void requestTopDownLeftRightResend(ImageConsumer imageconsumer)
    	{
    		System.out.println("TDLR");
    	}
    
    	private synchronized void method239()
    	{
    		if(anImageConsumer319 != null)
    		{
    			anImageConsumer319.setPixels(0, 0, anInt316, anInt317, aColorModel318, anIntArray315, 0, anInt316);
    			anImageConsumer319.imageComplete(2);
    		}
    	}
    
    	public boolean imageUpdate(Image image, int i, int j, int k, int l, int i1)
    	{
    		return true;
    	}
    
    	public final int[] anIntArray315;
    	private final int anInt316;
    	private final int anInt317;
    	private final ColorModel aColorModel318;
    	private ImageConsumer anImageConsumer319;
    	private final Image anImage320;
    }
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2009
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    now it says: error could not find or load main class Client
    Reply With Quote  
     

  4. #4  
    Super Donator

    StanDev's Avatar
    Join Date
    Apr 2014
    Posts
    660
    Thanks given
    82
    Thanks received
    255
    Rep Power
    592
    eclipse right click project and then run as, select your main class. Probably Client class
    Reply With Quote  
     

  5. #5  
    Registered Member


    Join Date
    Aug 2014
    Posts
    649
    Thanks given
    177
    Thanks received
    448
    Rep Power
    5000
    Replace your clients code with this..

    Code:
    @echo off
    title Run - Client
    "C:\Program Files\Java\jre6\bin\java.exe" -Xmx300m client 10 0 highmem members 32
    pause
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Nov 2009
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    i can't get a working compiler for the client :/

    and still the same if i use that for run.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Feb 2015
    Posts
    97
    Thanks given
    8
    Thanks received
    0
    Rep Power
    11
    Ensure you have the updated version of JDK and that your compiler points to it.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Nov 2009
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    my jdk java is: jdk1.8.0_60
    my compiler from client says:

    compiling...
    javac: file not found: src\sign\*.java
    usage: javac <options> <source file>
    use -help for a list of possible options
    press any key to continue..
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Feb 2015
    Posts
    97
    Thanks given
    8
    Thanks received
    0
    Rep Power
    11
    Compiler code?
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Nov 2009
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    @echo off
    title Compiler
    "C:\Program Files (x86)\Java\jdk1.8.0_60\bin\javac.exe" -cp . *.java
    pause

    oh and it says:
    javac: file not found: *.java


    not with the \src like i told before

    i hope u can help me man

    still need help
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. ****ed up client? Help pls? REP [PI]
    By Chinchillaa in forum Help
    Replies: 6
    Last Post: 06-14-2014, 08:49 PM
  2. Error running 718 client- help pls will +rep
    By Luisrules12 in forum Help
    Replies: 6
    Last Post: 01-16-2013, 01:54 AM
  3. Replies: 1
    Last Post: 07-31-2012, 11:13 AM
  4. Replies: 1
    Last Post: 07-16-2012, 05:31 PM
  5. Client Error, help pls!
    By Amirtje12 in forum Help
    Replies: 4
    Last Post: 08-19-2010, 02:48 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •