Comments (7)
Are you using one of the supported platforms? What is the exact error with stacktrace? Which jar did you use?
from java-discord-rpc.
Are you using one of the supported platforms? What is the exact error with stacktrace? Which jar did you use?
I'm on Windows 10 and I used the "java-discord-rpc-2.0.1-all" jar file
from java-discord-rpc.
I just tested this with a completely bare project on windows 10:
C:\Users\minnced\test>run.bat
=== Test.java ===
import java.io.*;
import club.minnced.discord.rpc.*;
class Test {
public static void main(String[] args) throws InterruptedException {
DiscordRPC lib = DiscordRPC.INSTANCE;
lib.Discord_Initialize("420321485757087746", null, true, null);
DiscordRichPresence presence = new DiscordRichPresence();
presence.details = "Testing RPC";
lib.Discord_UpdatePresence(presence);
System.out.println("RichPresence is working as intended");
Thread.sleep(30000);
System.out.println("Finished!");
}
}
=== manifest.mf ===
Main-Class: Test
Class-Path: rpc.jar
Maniest-Version: 1.0
===================
C:\Users\minnced\test>javac -cp rpc.jar Test.java
C:\Users\minnced\test>jar -c -m manifest.mf -f test.jar Test.class
C:\Users\minnced\test>java -jar test.jar
RichPresence is working as intended
Finished!
Since a bare project works fine, I assume this is an issue with setup. Try using gradle instead which is a proper build tool rather than the built-in IDE artifact builder. The README explains how to add this as a gradle dependency. See Gradle Guides and java-discord-rpc as gradle dependency
from java-discord-rpc.
I'm assuming this was resolved since there hasn't been a response in over a week.
from java-discord-rpc.
I'm assuming this was resolved since there hasn't been a response in over a week.
Sadly not. I've not been able to fix the problem
from java-discord-rpc.
same problem but on linux
from java-discord-rpc.
Same answer but for linux then. Use gradle and make sure your setup works.
from java-discord-rpc.
Related Issues (20)
- Module not found HOT 6
- [Request/Help] Function to check if an Image Exists? HOT 3
- [Error/Bug] MacOS Error Loading dll (Code Signature Invalid) HOT 5
- Problem HOT 3
- Handlers not being triggered HOT 7
- Unable to load library 'discord-rpc': The specified module could not be found. HOT 15
- Imposible to use it in a minecraft mod HOT 6
- Error in LSRegisterURL: -10811 HOT 1
- This is not issue, but question HOT 1
- How to reset StartTimestamp and EndTimestamp presences? HOT 1
- jcenter returning 502 HOT 1
- How to utilize Discord_Initialize() to connect to second local instance of Discord HOT 4
- Deprecation of the official Discord SDK for RPC HOT 1
- Unable to load library 'discord-rpc' Minecraft 1.8.8 MCP Error HOT 2
- This is less of an issue and more of something i want to know HOT 1
- About secret HOT 2
- Error in LSRegisterURL: -10811 HOT 1
- java.lang.UnsatisfiedLinkError: Unable to load library 'discord-rpc' HOT 1
- Suggestion HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-discord-rpc.