can os4 get infected from this specific exploit? no - as you don't have java.
you might be able to run some old amiga link viruses on os4. I doubt anyone would have any interest to make a virus/malware for os4.. fear the 100 machine strong os4 botnet!