Can Java class files run on UNIX system?

Yes, as long as you have Java installed you will be able to run it on a computer running UNIX.

The whole idea of Java - one of the ideas - is to be able to run on multiple platforms.