Open kyle95wm opened 4 years ago
You need to attach the JNativeHook jar file I enclosed to your classpaths under settings. If it doesn't work I still have the older version of it in the code commented out (runaverage function), but there wont be any background input functionality, forcing the IDE to be in the foreground preventing you from using it during streaming.
Yeah, I think I'd be better off using the older version of the code (assuming I don't need to include anything in classpaths) since I don't really care about background input. I just want the program to work just as easily as your other one did. I was even able to run your program from the terminal as well without using an IDE like what you talked about on stream. All I did at the time was compile with javac
and run with java
similar to how you run a program in terminal (python, bash, etc)
Oh and I also get this when I do try adding the jar to my classpaths, compile and run the program:
kylewarwick-mathieu@Kyles-iMac Downloads % java MM2
Error: Could not find or load main class MM2
Caused by: java.lang.ClassNotFoundException: MM2```
Update:
I was able to run it in JGRASP (probably not my first choice tbh) and it works. My only issue was that I needed to allow access to my keyboard and mouse (macOS security measures)
So now I'm wondering if the same can be done in a terminal instead of an IDE
Edit: If this helps, when compiling with javac
I get a MM2.classs
file in the same directory as the MM2.java
file
I'm having issues compiling and running. Here is my terminal log: