Schedules in Temporal Workflow

I want to know how to enable schedules in temporal workflow using java sdk.

Exposing schedules apis through Java SDK is currently in the works, see here. For now you would need to use tctl, can reference this docs page.

Ok. Does java sdk supports temporal cron schedules? Can you provide me examples?

Sample for cron is here.

Thank you for that @tihomir.

Workflow execution is started. But only one event is happening i.e., WorkflowExecutionStarted.
I am unable to debug it. Can you help where can be the error is?