I want an extension attribute to tell me the version of the Oracle installed (new) Java JKE 7.
So a little script goes like this:
#!/bin/sh
if [ -e /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java ]; then
result="$(/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version)"
echo "$result"
fi
Problem is -- I can't seem to grep the results, although my output is like this:
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
I can't output this to a text file either.
Any ideas?
