error when trying to compile with cos.jar

When compiling on linux/tomcat machine I put the path to cos.jar in my javac command and get the following error:

.../cos.jar: cannot execute binary file

I can compile servlets that do not require this jar file but cannot compile servlets that need it.

Does anyone know how to resolve this?

[316 byte] By [kipperdoga] at [2007-11-27 11:19:46]
# 1

Then your command is wrong. The error message tells you that you're trying to execute the cos.jar instead of specifying it in the classpath.

BalusCa at 2007-7-29 14:38:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...