Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved RuntimeException & NoSuchMethodError

Joined
Nov 26, 2015
Messages
9
Hi all,

I'm setting up my environment to start developing. I'm on a mac (if that helps). I've tried to follow Party's beginner guide, so I have my hello world bot, but after compiling and running, I immediately get this:

Code:
Exception in Application start method
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$156(LauncherImpl.java:182)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: sun.jvmstat.perfdata.monitor.protocol.local.LocalEventTimer.try(Ljava/lang/String;)Ljava/lang/String;
    at nul.IiiIIIiIIiIi.try(cob:202)
    at nul.IIiiiIiIIIII.try(xwb:20)
    at nul.IIiiiIiIIIII.super(xwb:183)
    at nul.IiIIIIiiiIiI.try(sub:157)
    at com.runemate.boot.Boot.try(ihc:273)
    at java.util.Arrays$ArrayList.forEach(Arrays.java:3880)
    at com.runemate.boot.Boot.start(ihc:94)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$163(LauncherImpl.java:863)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$176(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(PlatformImpl.java:294)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
java.lang.NoSuchMethodError: sun.jvmstat.perfdata.monitor.AbstractPerfDataBufferPrologue.try(Ljava/lang/String;)Ljava/lang/String;
    at nul.iiiiIIiiiiiI.<clinit>(jqb:1)
    at nul.iIIIIIiiiIIi.run(qub:157)
An unhandled error occurred while shutting down.

I've also tried to run SlashnHax's open source miner, and I get the same error.

Potential problems:
- I'm not sure if I picked the right JRE in my configurations. Couldn't find a mac 32 bit JRE (macs are only 64bit I think?) and couldn't find it in the Runemate directory, so I tried all of these options and it didn't work (pic attached)

Thanks for any help!!
 

Attachments

  • runemate problems.png
    runemate problems.png
    89.2 KB · Views: 5
Mod Automation
Joined
Jul 26, 2013
Messages
3,053
Hi all,

I'm setting up my environment to start developing. I'm on a mac (if that helps). I've tried to follow Party's beginner guide, so I have my hello world bot, but after compiling and running, I immediately get this:

Code:
Exception in Application start method
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$156(LauncherImpl.java:182)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: sun.jvmstat.perfdata.monitor.protocol.local.LocalEventTimer.try(Ljava/lang/String;)Ljava/lang/String;
    at nul.IiiIIIiIIiIi.try(cob:202)
    at nul.IIiiiIiIIIII.try(xwb:20)
    at nul.IIiiiIiIIIII.super(xwb:183)
    at nul.IiIIIIiiiIiI.try(sub:157)
    at com.runemate.boot.Boot.try(ihc:273)
    at java.util.Arrays$ArrayList.forEach(Arrays.java:3880)
    at com.runemate.boot.Boot.start(ihc:94)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$163(LauncherImpl.java:863)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$176(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(PlatformImpl.java:294)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
java.lang.NoSuchMethodError: sun.jvmstat.perfdata.monitor.AbstractPerfDataBufferPrologue.try(Ljava/lang/String;)Ljava/lang/String;
    at nul.iiiiIIiiiiiI.<clinit>(jqb:1)
    at nul.iIIIIIiiiIIi.run(qub:157)
An unhandled error occurred while shutting down.

I've also tried to run SlashnHax's open source miner, and I get the same error.

Potential problems:
- I'm not sure if I picked the right JRE in my configurations. Couldn't find a mac 32 bit JRE (macs are only 64bit I think?) and couldn't find it in the Runemate directory, so I tried all of these options and it didn't work (pic attached)

Thanks for any help!!
You're going to want the JDK for development purposes. If you use the JDK and you're still having issues, RuneMate auto-downloads the right JRE it needs to run. It's inside /Applications/RuneMate.app/... I forget the exact path but you should be able to find it easily. If you have trouble someone in the Dev Chat can likely Teamviewer you and help you. Sorry for the difficulty you're having. Apple doesn't like Java very much and doesn't make it easy.
 
Joined
Nov 26, 2015
Messages
9
Thanks guys I got it! Just had the wrong folder selected before ugh. The path on my computer was

/Applications/RuneMate.app/Contents/PlugIns/jre.bundle/Contents/Home/jre

if anyone else has this problem also
 
Top