Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to java -jar RSClient.java #10

Open
nwmeyers opened this issue Apr 23, 2016 · 6 comments
Open

Unable to java -jar RSClient.java #10

nwmeyers opened this issue Apr 23, 2016 · 6 comments

Comments

@nwmeyers
Copy link

nwmeyers commented Apr 23, 2016

Hello bmoyer!

I am really interested in your client, however, I am unable to properly use it. I added Java to my path like mentioned (export PATH=$PATH:/usr/lib/jvm/java-8-openjdk-amd64/jre/ .... ). The error that I get is the following:

sudo java -jar osrsclient/dist/RSClient.jar Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/pircbotx/exception/IrcException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.pircbotx.exception.IrcException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more

It looks like it has to do with pircbotx, from looking at the error messages.

If you have any recommendations please let me know.

Thank you,
nwmeyers

@richardgorman
Copy link

I have the same error.

@nwmeyers
Copy link
Author

You have to use netbeans. Open the project in netbeans, and everything will work fine.

Let me know if you have anymore problems.

@richardgorman
Copy link

I am curious if it would be possible to switch the whole GUI over to JavaFX. Can you load the applet into a JavaFX node somehow?

@bmoyer
Copy link
Owner

bmoyer commented Jun 1, 2016

Sorry for my lack of a response on this issue. @nwmeyers' advice of opening/compiling using Netbeans should do the trick.

I haven't looked into JavaFX very much, but it is most likely possible to load the OSRS applet into a JavaFX interface. I'd actually like to rework the entire GUI using something like JavaFX, as Swing is pretty dated (hell, it was dated when I started the project..).

@richardgorman
Copy link

I've tried but unsuccessfully (I'm not well versed with Java). Perhaps we should work together? I want to make a osrs client just as a programming exercise

@ghost
Copy link

ghost commented Aug 21, 2016

@richardgorman You can get this to build without netbeans with a modified setup. See:

https://github.com/trevorsenior/osrsclient/commit/ad9eceb3f766dd0d12b041853267e9c48b0d75db

I'm hacking away on this to learn a bit more about, well, how this kind of stuff works. I don't actually plan on doing anything serious with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants