what is wrong when trying to use a jar created with eclipse ?
package test1;
import javax.swing.*;
public final class testclass1 {
public static void ShowEclipseLibDialog(String[] arg) {
String st="Welcome to eclipse";
JOptionPane.showMessageDialog(null,st);
}
}
//this was exported to jar
Calling from B4J:
Sub Process_Globals
Private joEx As JavaObject
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
joEx.InitializeStatic("test1.testclass1")
End Sub
Sub btn1_Action
joEx.RunMethod("ShowEclipseLibDialog", Array("Message","Title"))
End Sub
Results in:
java.lang.RuntimeException: Method: ShowEclipseLibDialog not matched.
package test1;
import javax.swing.*;
public final class testclass1 {
public static void ShowEclipseLibDialog(String[] arg) {
String st="Welcome to eclipse";
JOptionPane.showMessageDialog(null,st);
}
}
//this was exported to jar
Calling from B4J:
Sub Process_Globals
Private joEx As JavaObject
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
joEx.InitializeStatic("test1.testclass1")
End Sub
Sub btn1_Action
joEx.RunMethod("ShowEclipseLibDialog", Array("Message","Title"))
End Sub
Results in:
java.lang.RuntimeException: Method: ShowEclipseLibDialog not matched.