Problems adding Firebase SDK to an extension
Posted: 07 Feb 2020, 18:13
Hi,
I am trying to add firebase sdk to an extension.
I have added the .jar that I need in /Applications/SmartFoxServer_2X/SFS2X/lib
The problem is that Smartfox apparently does not recognize these libraries.
I have opened the .bash_profile file and added this:
What am I doing wrong?
In the log I have this error:
This post comments on opening the file conf/wrapper.conf , but where can I find this file?
viewtopic.php?f=4&t=1878
Please, HELP
I am trying to add firebase sdk to an extension.
I have added the .jar that I need in /Applications/SmartFoxServer_2X/SFS2X/lib
The problem is that Smartfox apparently does not recognize these libraries.
I have opened the .bash_profile file and added this:
Code: Select all
export CLASSPATH="/Applications/SmartFoxServer_2X/SFS2X/lib/"
What am I doing wrong?
In the log I have this error:
Code: Select all
07 Feb 2020 | 14:38:07,882 | ERROR | Thread-9 | entities.managers.SFSExtensionManager | | java.lang.NoClassDefFoundError:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: java.lang.NoClassDefFoundError
Message: com/google/firebase/FirebaseOptions$Builder
Description: An error occurred while reloading extension: MyHomeExtension in { Zone: Home }
The new extension might not function properly.
+--- --- ---+
Stack Trace:
+--- --- ---+
tv.ingames.myHomeExtension.MyHomeExtension.init(MyHomeExtension.java:29)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.createExtension(SFSExtensionManager.java:303)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.reloadExtension(SFSExtensionManager.java:534)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager$ExtensionFileChangeListener.fileChanged(SFSExtensionManager.java:111)
org.apache.commons.vfs.events.ChangedEvent.notify(ChangedEvent.java:34)
org.apache.commons.vfs.provider.AbstractFileSystem.fireEvent(AbstractFileSystem.java:519)
org.apache.commons.vfs.provider.AbstractFileSystem.fireFileChanged(AbstractFileSystem.java:487)
org.apache.commons.vfs.impl.DefaultFileMonitor$FileMonitorAgent.check(DefaultFileMonitor.java:647)
org.apache.commons.vfs.impl.DefaultFileMonitor$FileMonitorAgent.access$200(DefaultFileMonitor.java:418)
org.apache.commons.vfs.impl.DefaultFileMonitor.run(DefaultFileMonitor.java:373)
java.lang.Thread.run(Thread.java:748)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
This post comments on opening the file conf/wrapper.conf , but where can I find this file?
viewtopic.php?f=4&t=1878
Please, HELP