Set oracle workspace from java application
I was receiving the 

java.sql.SQLSyntaxErrorException: ORA-00900: invalid SQL statement


because I was using the EXECUTE command rather than the CALL command.  In SQL Developer either EXECUTE or CALL works.
I was getting 

java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended


because of the semicolon at the end of the SQL statement.  The following 

String setWorkspace = "CALL DBMS_WM.GotoWorkspace('WORKSPACE')";
CallableStatement cs = conn.prepareCall(setWorkspace);
cs.execute();


works.