Before you can use JSL to publish reports to JMP Live, you must establish a default connection to the JMP Live server from JMP. See “Add a Connection to a JMP Live Server” in Using JMP.
Once you establish a default connection, you can point to it in your JSL scripts:
liveconnection = New JMP Live( Connection( "My JMP Live" ), Prompt( If Needed ) );
where "My JMP Live" is the name of the default connection that you created. If authentication is required, an interactive prompt appears. You can change the Prompt to No, but if authentication is required, the connection fails.