findJava <- function(...) {
versionPattern <- c("-version"='.*version ["]?([0-9.]+)["]?.*')
findExternal(command="java", versionPattern=versionPattern, ...)
} # findJava()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.