buckgeneral
New Member
When I try to run max123's Billards8Ball project using B4J which requires jWebGL I get the error show below. After trying many fixes, I went back to basics and created a simple "hello World" project (Code Below). If I run the project with the basic library file B4XPages, jCore and Jfx it runs fine with no errors. When I check jWebGl I get the error shown brlow. I have jWebGl.jar and jWebGL xml intalled in the AdditionalLibraries folder. I have tried Java 19, 14 and 11. with the same result. What am I doing wrong??
Error Message:
B4J Version: 10.50
Parsing code. (0.22s)
Java Version: 19
Building folders structure. (0.33s)
Running custom action. (0.26s)
Compiling code. (0.21s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Compiling generated Java code. Error
B4J line: 79
MainPage.Initialize
src\b4j\example\b4xpagesmanager.java:107: error: method _initialize in class b4xmainpage cannot be applied to given types;
__ref._mainpage /*b4j.example.b4xmainpage*/ ._initialize(ba);
^
required: b4xmainpage,BA
found: BA
reason: actual and formal argument lists differ in length
1 error
B4XMainPage:
#Region Shared Files
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files"
'Ctrl + click to sync files: ide://run?file=%WINDIR%\System32\Robocopy.exe&args=..\..\Shared+Files&args=..\Files&FilesSync=True
#End Region
#Macro: Title, Export B4XPages, ide://run?File=%B4X%\Zipper.jar&Args=%PROJECT_NAME%.zip
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
End Sub
Public Sub Initialize
' B4XPages.GetManager.LogEvents = True
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
Private Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X")
End Sub
Error Message:
B4J Version: 10.50
Parsing code. (0.22s)
Java Version: 19
Building folders structure. (0.33s)
Running custom action. (0.26s)
Compiling code. (0.21s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Compiling generated Java code. Error
B4J line: 79
MainPage.Initialize
src\b4j\example\b4xpagesmanager.java:107: error: method _initialize in class b4xmainpage cannot be applied to given types;
__ref._mainpage /*b4j.example.b4xmainpage*/ ._initialize(ba);
^
required: b4xmainpage,BA
found: BA
reason: actual and formal argument lists differ in length
1 error
B4XMainPage:
#Region Shared Files
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files"
'Ctrl + click to sync files: ide://run?file=%WINDIR%\System32\Robocopy.exe&args=..\..\Shared+Files&args=..\Files&FilesSync=True
#End Region
#Macro: Title, Export B4XPages, ide://run?File=%B4X%\Zipper.jar&Args=%PROJECT_NAME%.zip
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
End Sub
Public Sub Initialize
' B4XPages.GetManager.LogEvents = True
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
Private Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X")
End Sub