Jump to content

GUI setup problems


Recommended Posts

Posted

Good day everyone!

Trying to make a setup window for my script, but I just keep getting this error. Any one knows what seems to be wrong?

package com.probots.skill;

 

import javax.swing.JFrame;

 

public class ProgressiveWoodcutterSetup {

 

public static void main(String[] args) {

// let's run this setup window without a script

new ProgressiveWoodcutterSetup(null);

}

 

public ProgressiveWoodcutterMain mainScript;

 

public ProgressiveWoodcutterSetup(ProgressiveWoodcutterMain m) {

// this lets us talk to the main script

this.mainScript = m;

 

// now show the setup window

showSetup();

}

public void showSetup() {

System.out.print("Setup initialised");

 

JFrame mainFrame = new JFrame("Progressive woodcutter setup");

 

mainFrame.setSize(320, 320);

 

mainFrame.setVisible(true);

 

}

 

}

ERROR

Error occurred during initialization of boot layer

java.lang.module.FindException: Unable to derive module descriptor for C:\Users\juuha\Desktop\osbot.jar

Caused by: java.lang.module.InvalidModuleDescriptorException: Provider class org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer not in module

Posted (edited)

You are missing a dependency, did you follow the video guide correctly? At the start of the video explains how to set it up ^^ :D I know because I made the tutorial :doge: 

EDIT: Also make sure it's not compiling with any java version above 8 (1.8)

Edited by Czar

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...