Which section(s) is the issue in?
CLI tools / Creating a Java application with a database
What needs fixing?
The order of creation of database and app needs to be swapped as you can not create a service unless you are in a valid component folder:
step 1 Creating a Java MicroServices JPA application
step 2 Creating a database with odo