IO Error: Got minus one from a read call
"emctl start dbconsole" is a command to start Enterprise Manager (EM), which is tool comes bundled with Oracle Database, and used for monitoring and managing the Oracle Database.

I believe localhost:1158/em  is the URL for Enterprise Manager(EM), so is the port.

The EM and DB port won't be same, in your case the DB port should be 1521 and SID should be ORCL.

So, your connection URL should look like "jdbc:oracle:thin:@localhost:1521:orcl".