Thread: Could not find or load main class JFrame

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Could not find or load main class JFrame 
    Registered Member
    Join Date
    Jul 2011
    Age
    29
    Posts
    94
    Thanks given
    14
    Thanks received
    5
    Rep Power
    11
    Hey guys, title says it all. No matter what client I try to use, I can't get this stuff to work.

    run.bat gives says this when I try to use it.

    Spoiler for run.bat:
    Error: Could not find or load main class Jframe
    Press any key to continue . . .


    Then my compiler randomly gives me 74 or 77 errors (depending on the client I guess). It doesn't matter what client I use, it just does this. My only guess would be that I need a run.bat that works with Windows 7 / 64-bit

    Spoiler for Compiler Error:
    ^
    symbol: variable signlink
    location: class client
    client.java:717: error: cannot find symbol
    if (FileOperations.FileExists(signlink.findc
    achedir()+"maps/"+anIntArray1235[k12]+".dat"))
    ^
    symbol: variable signlink
    location: class client
    client.java:718: error: cannot find symbol

    abyte0 = FileOperations.ReadFile(signlink.findcachedir()+"m aps/"+anIntArray1235[
    k12]+".dat");

    ^
    symbol: variable signlink
    location: class client
    client.java:766: error: cannot find symbol
    if(lowMem && signlink.cache_dat != null)
    ^
    symbol: variable signlink
    location: class client
    client.java:967: error: cannot find symbol
    return signlink.wavereplay();
    ^
    symbol: variable signlink
    location: class client
    client.java:1380: error: cannot find symbol
    signlink.reporterror(myUsername + " size mismatch in get
    npcpos - pos:" + stream.currentOffset + " psize:" + i);
    ^
    symbol: variable signlink
    location: class client
    client.java:1386: error: cannot find symbol
    signlink.reporterror(myUsername + " null entry i
    n npc list - pos:" + i1 + " size:" + npcCount);
    ^
    symbol: variable signlink
    location: class client
    client.java:1895: error: cannot find symbol
    signlink.reporterror("18622, " + false + ", " + l + ", "
    + runtimeexception.toString());
    ^
    symbol: variable signlink
    location: class client
    client.java:2256: error: cannot find symbol
    signlink.reporterror("15283, " + (byte)68 + ", " + l + "
    , " + runtimeexception.toString());
    ^
    symbol: variable signlink
    location: class client
    client.java:2756: error: cannot find symbol
    signlink.storeid = Integer.parseInt(args[4]);
    ^
    symbol: variable signlink
    location: class client
    client.java:2757: error: cannot find symbol
    signlink.startpriv(InetAddress.getLocalHost());
    ^
    symbol: variable signlink
    location: class client
    client.java:2777: error: cannot find symbol
    signlink.reporterror(myUsername + " glcfb " + aL
    ong1215 + "," + j + "," + lowMem + "," + decompressors[0] + "," + onDemandFetche
    r.getNodeCount() + "," + plane + "," + anInt1069 + "," + anInt1070);
    ^
    symbol: variable signlink
    location: class client
    client.java:2853: error: cannot find symbol
    if(signlink.mainapp != null)
    ^
    symbol: variable signlink
    location: class client
    client.java:2854: error: package signlink does not exist
    return signlink.mainapp.getAppletContext();
    ^
    client.java:3029: error: cannot find symbol
    return abyte0 == null || signlink.wavesave(abyte0, i);
    ^
    symbol: variable signlink
    location: class client
    client.java:3678: error: cannot find symbol
    if(!signlink.reporterror)
    ^
    symbol: variable signlink
    location: class client
    client.java:3685: error: cannot find symbol
    if(!signlink.reporterror)
    ^
    symbol: variable signlink
    location: class client
    client.java:3692: error: cannot find symbol
    if(!signlink.reporterror)
    ^
    symbol: variable signlink
    location: class client
    client.java:5001: error: cannot find symbol
    signlink.reporterror = false;
    ^
    symbol: variable signlink
    location: class client
    client.java:5142: error: cannot find symbol
    if(signlink.mainapp != null)
    ^
    symbol: variable signlink
    location: class client
    client.java:5143: error: cannot find symbol
    return signlink.mainapp;
    ^
    symbol: variable signlink
    location: class client
    client.java:5926: error: cannot find symbol
    class9.message = "You last logged in " + s + " f
    rom: " + signlink.dns;

    ^
    symbol: variable signlink
    location: class client
    client.java:6222: error: cannot find symbol
    if (signlink.mainapp != null) {
    ^
    symbol: variable signlink
    location: class client
    client.java:6223: error: package signlink does not exist
    return signlink.mainapp.getDocumentBase().getHost().toLo
    werCase();
    ^
    client.java:6419: error: cannot find symbol
    signlink.errorname = s;
    ^
    symbol: variable signlink
    location: class client
    client.java:7344: error: cannot find symbol
    if(signlink.sunjava)
    ^
    symbol: variable signlink
    location: class client
    client.java:7354: error: cannot find symbol
    if(signlink.cache_dat != null)
    ^
    symbol: variable signlink
    location: class client
    client.java:7357: error: cannot find symbol
    decompressors[i] = new Decompressor(signlink.cac
    he_dat, signlink.cache_idx[i], i + 1);
    ^
    symbol: variable signlink
    location: class client
    client.java:7357: error: cannot find symbol
    decompressors[i] = new Decompressor(signlink.cac
    he_dat, signlink.cache_idx[i], i + 1);

    ^
    symbol: variable signlink
    location: class client
    client.java:7718: error: cannot find symbol
    signlink.reporterror("loaderror " + aString1049 + " " +
    anInt1079);
    ^
    symbol: variable signlink
    location: class client
    client.java:7725: error: cannot find symbol
    String s = (new StringBuilder()).append(signlink.findcachedir()).a ppend(
    "/Sprites/Frame/").toString();
    ^
    symbol: variable signlink
    location: class client
    client.java:7741: error: cannot find symbol
    String s = (new StringBuilder()).append(signlink.findcachedir()).a ppend(
    "/Sprites/Frame/").toString();
    ^
    symbol: variable signlink
    location: class client
    client.java:7754: error: cannot find symbol
    String OrbDirectory = signlink.findcachedir()+"/Sprites/Gameframe/Orbs/"
    ;
    ^
    symbol: variable signlink
    location: class client
    client.java:8929: error: cannot find symbol
    signlink.reporterror("cde2");
    ^
    symbol: variable signlink
    location: class client
    client.java:9067: error: cannot find symbol
    signlink.reporterror("glfc_ex " + myPlayer.x + "," + myP
    layer.y + "," + anInt1014 + "," + anInt1015 + "," + anInt1069 + "," + anInt1070
    + "," + baseX + "," + baseY);
    ^
    symbol: variable signlink
    location: class client
    client.java:9122: error: cannot find symbol
    signlink.wavevol = i;
    ^
    symbol: variable signlink
    location: class client
    client.java:9248: error: cannot find symbol
    signlink.reporterror("45688, " + l + ", " + 4 + ", " + r
    untimeexception.toString());
    ^
    symbol: variable signlink
    location: class client
    client.java:9606: error: cannot find symbol
    signlink.reporterror("47229, " + 3 + ", " + l + ", " + r
    untimeexception.toString());
    ^
    symbol: variable signlink
    location: class client
    client.java:9622: error: cannot find symbol
    signlink.reporterror("47229, " + 3 + ", " + l + ", " + r
    untimeexception.toString());
    ^
    symbol: variable signlink
    location: class client
    client.java:9630: error: cannot find symbol
    if(signlink.mainapp != null)
    ^
    symbol: variable signlink
    location: class client
    client.java:9631: error: package signlink does not exist
    return signlink.mainapp.getParameter(s);
    ^
    client.java:9638: error: cannot find symbol
    signlink.midivol = i;
    ^
    symbol: variable signlink
    location: class client
    client.java:9640: error: cannot find symbol
    signlink.midi = "voladjust";
    ^
    symbol: variable signlink
    location: class client
    client.java:10173: error: cannot find symbol
    signlink.reporterror(myUsername + " Too many players");
    ^
    symbol: variable signlink
    location: class client
    client.java:10666: error: cannot find symbol
    signlink.reporterror(myUsername + " Too many npcs");
    ^
    symbol: variable signlink
    location: class client
    client.java:10911: error: cannot find symbol
    signlink.reporterror("Error packet size mismatch in getp
    layer pos:" + stream.currentOffset + " psize:" + i);
    ^
    symbol: variable signlink
    location: class client
    client.java:10917: error: cannot find symbol
    signlink.reporterror(myUsername + " null entry i
    n pl list - pos:" + i1 + " size:" + playerCount);
    ^
    symbol: variable signlink
    location: class client
    client.java:11133: error: cannot find symbol
    signlink.dnslookup(TextClass.met
    hod586(anInt1193));
    ^
    symbol: variable signlink
    location: class client
    client.java:11789: error: cannot find symbol
    signlink.reporterror("cd
    e1");
    ^
    symbol: variable signlink
    location: class client
    client.java:12143: error: cannot find symbol
    signlink.reporterror("T1 - " + pktType + "," + pktSize +
    " - " + anInt842 + "," + anInt843);
    ^
    symbol: variable signlink
    location: class client
    client.java:12151: error: cannot find symbol
    signlink.reporterror(s2);
    ^
    symbol: variable signlink
    location: class client
    OnDemandFetcher.java:51: error: cannot find symbol
    signlink.reporterror("Rej: " + l + "," + j1);
    ^
    symbol: variable signlink
    location: class OnDemandFetcher
    OnDemandFetcher.java:400: error: cannot find symbol
    signlink.reporterror("od_ex " + exception.getMessage());
    ^
    symbol: variable signlink
    location: class OnDemandFetcher
    Jframe.java:18: error: package sign does not exist
    sign.signlink.startpriv(InetAddress.getByName(serv er));
    ^
    TextClass.java:50: error: cannot find symbol
    signlink.reporterror("81570, " + l + ", " + (byte)-99 +
    ", " + runtimeexception.toString());
    ^
    symbol: variable signlink
    location: class TextClass
    Note: client.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    77 errors
    Press any key to continue . . .


    Help is much appreciated!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jul 2011
    Age
    29
    Posts
    94
    Thanks given
    14
    Thanks received
    5
    Rep Power
    11
    This is urgent lol
    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Jun 2011
    Posts
    2,549
    Thanks given
    539
    Thanks received
    402
    Rep Power
    683
    I have the fix for the run.bat, but I have the same exact problem with the compiling problem on the client.

    Add

    Code:
    -cp .
    after

    Code:
    java
    in your run.bat

    (
    Code:
    @echo off
    title Client
    java -cp . -Xmx300m Jframe 10 0 highmem members 32
    pause
    )
    All the best,
    Nirvana

    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2011
    Age
    29
    Posts
    94
    Thanks given
    14
    Thanks received
    5
    Rep Power
    11
    Same error when I tried that, so I tried this:

    Code:
    @echo off
    title Client
    color 1f
    "C:\Program Files\Java\jre6\bin\java" -Xmx300m -cp . Jframe 10 0 highmem members 32
    pause
    and it worked, but yet my compiler is still messed pretty badly. It gives 0 errors on my other computer, yet 77 on this one.
    Reply With Quote  
     

  5. #5  
    Donator


    Join Date
    Jun 2011
    Posts
    2,549
    Thanks given
    539
    Thanks received
    402
    Rep Power
    683
    Yeah I have the same exact compiling problem, anyone?

    Will rep, possibly even pay.
    All the best,
    Nirvana

    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jul 2011
    Age
    29
    Posts
    94
    Thanks given
    14
    Thanks received
    5
    Rep Power
    11
    Code:
    RS2 user client - release #317
    java.lang.ArrayIndexOutOfBoundsException: 1
            at Class36.methodCustomAnimations(Class36.java:65)
            at Animation.unpackConfig(Animation.java:1710)
            at client.startUp(client.java:7623)
            at RSApplet.run(RSApplet.java:33)
            at client.run(client.java:4795)
            at java.lang.Thread.run(Unknown Source)
    NPC.DAT : 1489108188
    Called method225
    NPC.IDX : 1489126980
    Called method225
    This comes up in my client's command prompt. I have no idea if it relates to the 77 errors above.
    Reply With Quote  
     

  7. #7  
    Donator


    Join Date
    Jun 2011
    Posts
    2,549
    Thanks given
    539
    Thanks received
    402
    Rep Power
    683
    That's the run, it probably has to do with the server and client being ran together to form errors.
    All the best,
    Nirvana

    Reply With Quote  
     

  8. #8  
    Donator


    Join Date
    Mar 2011
    Posts
    2,350
    Thanks given
    1,193
    Thanks received
    824
    Rep Power
    856
    Update your Java is my only guess.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Jul 2011
    Age
    29
    Posts
    94
    Thanks given
    14
    Thanks received
    5
    Rep Power
    11
    Just did. New computer. JRE7, latest Java, and JDK 1.7.0_02
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Mar 2010
    Posts
    19
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Hey, I had the same problem just now. I fixed it by doing the following:

    The run.bat file should look like this:
    Code:
    @echo off
    title -Client name-
    java -cp . -Xmx300m Jframe 10 0 highmem members 32
    pause
    -cp stands for classpath, so make sure your java classpath is set to the correct place.

    To do that, do the following (This is done in Windows 7 64 bit, it might be different for you.):
    Start > Right click on 'Computer' > Properties > Advanced System Settings > Click on the 'Advanced' tab > Click 'Environment variables' > Under 'User variables for -username-' you should see a variable called 'Path' or something like that. Now click on that and click Edit. If it is not already there, add 'C:\Program Files\Java\jdk1.7.0_02\bin;' (without quotations) to it, Don't delete anything, just add that. Make sure there is a semicolon at the end, and if there is something before where you add it, make sure there is a semicolon instead of a space between them. Do the same exact thing with the 'CLASSPATH' variable and the 'PATH' variable in the 'System Variables' section as well. (That should be right under 'User Variables'.)

    I hope this helped, If you have any more questions just ask, and I'll try to help the best that I can.
    Reply With Quote  
     

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: 4
    Last Post: 02-26-2012, 12:54 AM
  2. [PI] Could Not Find Main-Class: client
    By ashitrin in forum Help
    Replies: 20
    Last Post: 01-17-2012, 11:20 PM
  3. Replies: 18
    Last Post: 12-23-2011, 10:07 AM
  4. Could not find main class: Client
    By Ch3ck it S0n in forum Help
    Replies: 2
    Last Post: 11-11-2011, 04:10 AM
  5. [PI] Cannot find main class Jframe
    By Xx_forgotten_Xx in forum Help
    Replies: 8
    Last Post: 06-30-2010, 03:06 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
  •