I'm having difficulty getting java programs to install by source code. I believe I have all the java requirements as this is what I get when I run java -version

openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-b24)
OpenJDK Client VM (build 1.7.0-b24, mixed mode

I don't know the correct commands to get things started. The only thing I have been able to do is extract the files. Any help would be great.