Multiple java applications in one container

I have two java applications . Can I containerize it into a single container ? I have two jar files . how can I execute both the jar files from a single container ?

In your dockerfile just run both / start an image running both

I did it using supervisors. Now both my applications are running fine .