Determine Java version

Is there a way to determine the Java version we have installed on Linux with a linux command of some sorts?

If you are talking about PDFNet, the cross platform method to determine a version would be to use the PDFNet::GetVersion() function (pdftron.PDF.PDFNet.getVersion() in Java see: ).

If you wish to know about the version of Java runtime or SDK installed in your system, you can run any of the Java binaries and use the “-version” option. Please consult your operating system vendor or Oracle for more information about Java.

Yeah, I was talking PDFNet. I was hoping to just be able to examine the .jar file or the contents without writing any actual code. I was able to do that but can’t find any reference to a version number there.

I guess I’ll just end up using a getVersion() call and see.