Hey guys i am beginner in Java programming and i am making a DiscordBot for my Discord server. Code is all right i was following the tutorial but when i try to start the program i get this error:
"java.lang.ClassNotFoundException: org.eclipse.jetty.util.log.Logger"
My code looks like this:
public static final IDiscordClient bot = createClient("your_token", true);
public static void main(String args[]) {
System.out.println(bot.getApplicationClientID());
}
public static IDiscordClient createClient(String token, boolean login)
{
ClientBuilder clientBuilder = new ClientBuilder();
clientBuilder.withToken(token);
try
{
if (login)
{
return clientBuilder.login();
}
else
{
return clientBuilder.build();
}
}
catch (DiscordException e)
{
e.printStackTrace();
return null;
}
}
Any ideas how to fix this? Thanks in advance.
Ok guys i am idiot i just downloaded lightweight jar that didnt include everything i needed. I downloaded full jar file and its ok now.