opatch error \QuickTime\QTSystem\QTJava.zip was unexpected at this time.

When trying to run opatch on windows, I got the following error:

\QuickTime\QTSystem\QTJava.zip was unexpected at this time.

After some research, I found that this error is due to spaces in the value of the CLASSPATH variable.

Here, we have a couple of solutions:

Solution #1

Remove “C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip” from the CLASSPATH, we don’t need this with Oracle at all.

set CLASSPATH=.;C:\Users\win\Documents\NetBeansProjects\UNC\rowset_jdbc.jar
opatch version

Solution #2:

Remove the spaces from the CLASSPATH, change the CLASSPATH, from:
.;C:\Users\win\Documents\NetBeansProjects\UNC\rowset_jdbc.jar;C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip

Solution #3:

You may copy the QTJava.zip (if you really need it) to any folder without spaces in its name, and adjust the CLASSPATH accordingly.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s