Question: Can anyone tell me how I can convert a .java file into .class file with an executable bytecode?

Answer: 
From the command line, run

```
javac ClassName.java

```
After compiling it you can jar it.

java -jar AppName.jar

<http://windowstipoftheday.blogspot.com/2005/10/setting-jar-file-association.html>