Java Question Class file not found when testing library

MathiasM

Active Member
Licensed User
Hello

I'm trying to wrap a library for b4j. The library is JEP: https://github.com/ninia/jep
I searched for SLC on the forum and tried my luck (it's the first time I'm trying this)

What I did:
-Created a wrapperclass in Eclipse.
-Added the JEP.jar as external JAR
-Added jCore.Jar as external JAR

Here you can see the package contents and my (very basic) code:



SLC gives this as I press the compile button:



Seems good.. I copy the same jep-3.9.0.jar to G:\Mijn Drive\Persoonlijk\Extra b4x Code\Libraries

The lib shows up in B4J, I use this simple code:

B4X:
'Non-UI application (console / server application)
#Region Project Attributes
    #CommandLineArgs:
    #MergeLibraries: True
#End Region

Sub Process_Globals
    
End Sub

Sub AppStart (Args() As String)
    Dim fl As FirstLib
    fl.Initialize
    fl.Execute("print(1337)")
End Sub

'Return true to allow the default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
    Return True
End Sub


But when I run this code:



No idea why, because in the picture above, the JepException class is clearly visible in the jep-3.9.0.jar.

Anyone has an idea? This might be a very stupid question. Java is not my code habitat.

Thanks a bunch!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…