I am trying to run some of Jx Browser's samples. After copying and pasting the sample code provided by it, and trying to run it, it gives me an Initializer error. here is the sample code and the exception. Can anybody tell me what's going on?
package jx.test;
import com.teamdev.jxbrowser.chromium.Browser;
import com.teamdev.jxbrowser.chromium.BrowserFactory;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.WindowConstants;
public class JxTest {
public static void main(String[] args) {
final Browser browser = BrowserFactory.create();
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.add(browser.getView().getComponent(), BorderLayout.CENTER);
frame.setSize(700, 500);
frame.setLocationRelativeTo(null);
frame.setVisible(true);
browser.loadURL("http://www.google.com");
}
}
The exception:
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.teamdev.jxbrowser.chromium.BrowserFactory.create(Unknown Source)
at com.teamdev.jxbrowser.chromium.BrowserFactory.create(Unknown Source)
at com.teamdev.jxbrowser.chromium.BrowserFactory.create(Unknown Source)
at jx.test.JxTest.main(JxTest.java:20)
Caused by: java.lang.RuntimeException: JxBrowser license check failed: No valid license found.
Java Result: 1