Giter Club home page Giter Club logo

Comments (7)

MinnDevelopment avatar MinnDevelopment commented on June 19, 2024

Are you using one of the supported platforms? What is the exact error with stacktrace? Which jar did you use?

from java-discord-rpc.

wodxgod avatar wodxgod commented on June 19, 2024

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.

MinnDevelopment avatar MinnDevelopment commented on June 19, 2024

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.

MinnDevelopment avatar MinnDevelopment commented on June 19, 2024

I'm assuming this was resolved since there hasn't been a response in over a week.

from java-discord-rpc.

wodxgod avatar wodxgod commented on June 19, 2024

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.

belohnung avatar belohnung commented on June 19, 2024

same problem but on linux

from java-discord-rpc.

MinnDevelopment avatar MinnDevelopment commented on June 19, 2024

Same answer but for linux then. Use gradle and make sure your setup works.

from java-discord-rpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.