Platforms to show: All Mac Windows Linux Cross-Platform

Back to JSContextMBS class.

JSContextMBS.LoadLibrary(File as folderItem) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method JavaScript MBS MacFrameworks Plugin 23.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Loads the library.

Does nothing on macOS or iOS since we use the library provided by Apple with the operation system.

You can load JavaScriptCore.dll on Windows here.
Make sure all dependencies are honored and you may use Dependency Walker application to look for dependencies.

You can load libjavascriptcoregtk.so on Linux here.
e.g. "/usr/lib/aarch64-linux-gnu/libjavascriptcoregtk-4.1.so" for Linux 64-bit on ARM

Returns true on success.

See also:

JSContextMBS.LoadLibrary(Path as String) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method JavaScript MBS MacFrameworks Plugin 23.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Loads the library.
Example

#If TargetLinux Then

// you may need to check what version you have
If JSContextMBS.LoadLibraryPath("libjavascriptcoregtk-4.1.so") Then
MessageBox "Okay"
Else
MessageBox "Failed to load: "+JSContextMBS.LibraryError
End If

#ElseIf TargetWindows

// you may find somewhere a JavaScriptCore.dll for use here

// we just load the DLLs from iTunes into our folder with exe file:
// ASL.dll
// CoreFoundation.dll
// icudt62.dll
// JavaScriptCore.dll
// libdispatch.dll
// libicuin.dll
// libicuuc.dll
// objc.dll
// WTF.dll


If JSContextMBS.LoadLibraryPath("JavaScriptCore.dll") Then
MessageBox "Okay"
Else
MessageBox "Failed to load: "+JSContextMBS.LibraryError
End If

#endif

You can load JavaScriptCore.dll on Windows here.
Make sure all dependencies are honored and you may use Dependency Walker application to look for dependencies.

You can load libjavascriptcoregtk.so on Linux here.
e.g. "/usr/lib/aarch64-linux-gnu/libjavascriptcoregtk-4.1.so" for Linux 64-bit on ARM

Returns true on success.

See also:

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...