Johannes Wirde
03/29/2024, 9:39 PMError: Main method not found in class com.example.HelloWorldKt, please define the main method as:
public static void main(String[] args)
... and that is yucky Java stuff... What should I put in my fun main()
function?dave
03/29/2024, 9:42 PMdave
03/29/2024, 9:42 PMJohannes Wirde
03/29/2024, 9:45 PMJohannes Wirde
03/29/2024, 9:45 PMJohannes Wirde
03/29/2024, 9:46 PMdave
03/29/2024, 9:51 PMpackage com.example
import org.http4k.server.SunHttp
import org.http4k.server.asServer
val app = HelloWorldAppLoader(emptyMap())
fun main() {
app.asServer(SunHttp(8000)).start()
}
dave
03/29/2024, 9:52 PM<http://localhost:8000/ping>
Johannes Wirde
03/29/2024, 9:58 PM