Thread: JAR error? REP+

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 JAR error? REP+ 
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Whenever I execute my JAR, nothing happend, however when I use the batch to execute it, I get this?




    Code:
    THIS BATCH IS FOR DEBUGGING THE EXECUTABLE JAR ONLY                             
    DOUBLE-CLICK THE "F2P.jar" TO RUN IT                                            -                                                                          
         Generated by: JAR Maker (http://www.goldenstudios.or.id/)                                                                                                
           C:\Users\Daniel\Desktop\JARMaker>java -jar F2P.jar                  
    RS2 user client - release #317                                                
      Usage: node-id, port-offset, [lowmem/highmem], [free/members], storeid         
     Press any key to continue . . .

    rep+ to helper

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  2. #2  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,647
    Thanks given
    175
    Thanks received
    257
    Rep Power
    358
    That's not an error, and your jar file is not launching correctly.
    Reply With Quote  
     

  3. #3  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Quote Originally Posted by ColeSF View Post
    That's not an error, and your jar file is not launching correctly.
    Well, I can tell this, I just don't know why not...........

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  4. #4  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,647
    Thanks given
    175
    Thanks received
    257
    Rep Power
    358
    Quote Originally Posted by Ninth Legion View Post
    Well, I can tell this, I just don't know why not...........
    Well then why would you post the batch file contents?
    Reply With Quote  
     

  5. #5  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Quote Originally Posted by ColeSF View Post
    Well then why would you post the batch file contents?

    Since it says more than me saying the jar does nothing..


    Do you think you could help me?

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  6. #6  
    Registered

    Join Date
    Sep 2012
    Age
    29
    Posts
    1,984
    Thanks given
    774
    Thanks received
    846
    Rep Power
    5000
    post your run.bat

    Reply With Quote  
     

  7. #7  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Quote Originally Posted by Volsung View Post
    post your run.bat
    Code:
    @echo off
    title Client
    java -Xmx300m Jframe 10 0 highmem members 32
    pause

    Edit:
    I found this in client.java, when args != 5 (current case), it send that message. I have no idea how to change this since i'm using a jar and can't declare that.(That I know of)

    Code:
    	public static void main(String args[]) {
    		try {
    			System.out.println("RS2 user client - release #" + 317);
    			if(args.length != 5) {
    				System.out.println("Usage: node-id, port-offset, [lowmem/highmem], [free/members], storeid");
    				return;
    			}
    			nodeID = Integer.parseInt(args[0]);
    			//portOff = Integer.parseInt(args[1]);
    			portOff = 0;
    			if(args[2].equals("lowmem"))
    				setLowMem();
    			else if(args[2].equals("highmem")) {
    				setHighMem();
    			} else {
    				System.out.println("Usage: node-id, port-offset, [lowmem/highmem], [free/members], storeid");
    				return;
    			}
    			if(args[3].equals("free"))
    				isMembers = false;
    			else if(args[3].equals("members")) {
    				isMembers = true;
    			} else {
    				System.out.println("Usage: node-id, port-offset, [lowmem/highmem], [free/members], storeid");
    				return;
    			}
    			signlink.storeid = Integer.parseInt(args[4]);
    			signlink.startpriv(InetAddress.getLocalHost());
    			new Jframe(args);
    			//client client1 = new client();
    			//client1.createClientFrame(503, 765);
    		} catch(Exception exception) {
    		}
    	}

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  8. #8  
    Registered

    Join Date
    Sep 2012
    Age
    29
    Posts
    1,984
    Thanks given
    774
    Thanks received
    846
    Rep Power
    5000
    when jarring your client instead of putting the main class as "client" change it to "Jframe"

    Reply With Quote  
     

  9. #9  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Quote Originally Posted by Volsung View Post
    when jarring your client instead of putting the main class as "client" change it to "Jframe"
    Believe me, I've tried that. I edited the post above, that's the root of the problem.

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  10. #10  
    Donator
    Trivium's Avatar
    Join Date
    Nov 2009
    Posts
    290
    Thanks given
    21
    Thanks received
    88
    Rep Power
    48
    Set it up so that it doesn't read anything from the args, here's an example of how mine is set up.

    Also i don't believe you should have to run the jar with a batch, you should be able to just open it.

    Spoiler for Main:
    Code:
    	public static void main(String args[]) {
    		try {
    			nodeID = 10;
    			portOff = 0;
    			setHighMem();
    			isMembers = true;
    			signlink.storeid = 32;
    			signlink.startpriv(InetAddress.getLocalHost());
    			instance = new client();
    			instance.createClientFrame(500, 763);
    		} catch(Exception e) {
    			e.printStackTrace();
    		}
    	}
    Reply With Quote  
     

  11. Thankful user:


Page 1 of 2 12 LastLast

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. Replies: 2
    Last Post: 11-17-2012, 03:34 AM
  2. REP+++ Jar Sign
    By B B F in forum Help
    Replies: 5
    Last Post: 11-22-2011, 01:46 AM
  3. Replies: 14
    Last Post: 10-10-2010, 12:38 AM
  4. Client.Jar help!!!! REP+++
    By s3v3r3ds0ul in forum Help
    Replies: 5
    Last Post: 06-20-2010, 08:11 AM
  5. Can some1 jar this? Rep +
    By SilentZPrO in forum Requests
    Replies: 0
    Last Post: 05-07-2009, 12:54 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •