我在Eclipse中得到了有趣的错误,并且不确定如何修复它

时间:2016-01-06 16:49:46

标签: java eclipse audio

这是我从下面的代码中得到的错误。 的错误:

Usage: org.jitsi.examples.AVReceive2 <args>
Valid args:
  --local-port-base= The port on which media is to be received. The specified value will be used as the port to receive the audio RTP on, the next port after it will be used to receive the audio RTCP on. Respectively, the subsequent ports will be used to receive the video RTP and RTCP on.
  --remote-host= The name of the host from which the media is to be received.
  --remote-port-base= The port from which media is to be received. The specified vaue will be used as the port to receive the audio RTP from, the next port after it will be used to receive the audio RTCP from. Respectively, the subsequent ports will be used to receive the video RTP and RTCP from.

我拥有的所有代码:

package com.hexicle.DiscordBot;

import me.itsghost.jdiscord.DiscordAPI;
import me.itsghost.jdiscord.DiscordBuilder;
import me.itsghost.jdiscord.exception.BadUsernamePasswordException;
import me.itsghost.jdiscord.exception.DiscordFailedToConnectException;

public class MyBot {

    private DiscordAPI api;

    public MyBot()
    {
        api = new DiscordBuilder().build();
    }

    public void connect()
    {
        try {
            api.login("", "");
        } catch (BadUsernamePasswordException | DiscordFailedToConnectException e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        MyBot bot = new MyBot();
        bot.connect();
    }

}

我对Java不是很有经验,所以这可能非常简单!谢谢!

0 个答案:

没有答案