Hi,
I'm trying to open a webpage from a non-UI application (to test a REST API library I'm making) . Is it even possible?
I know I can't use jFX' ShowExternalDocument() for obvious reasons, but I'm also out of luck using jSHELL, since it's not opening anything. Even when I run the jar natively it does nothing. e.g.:
Is there something else I could try? Thank you
EDIT: Don't worry, I am an idiot. I just found out I have to use the Run method. Now it works perfectly:
PS It would be fantastic if threads could be deleted by the author in the first 5 minutes...
I'm trying to open a webpage from a non-UI application (to test a REST API library I'm making) . Is it even possible?
I know I can't use jFX' ShowExternalDocument() for obvious reasons, but I'm also out of luck using jSHELL, since it's not opening anything. Even when I run the jar natively it does nothing. e.g.:
B4X:
Dim sh as Shell
sh.Initialize( "Browser", "/usr/bin/google-chrome", Array As String ("http://www.google.es") )
Is there something else I could try? Thank you
EDIT: Don't worry, I am an idiot. I just found out I have to use the Run method. Now it works perfectly:
B4X:
sh.Run( -1 )
PS It would be fantastic if threads could be deleted by the author in the first 5 minutes...
Last edited: