Windows Command Prompt

Command Prompt result after "Java -version"

JRE (Java Runtime Environment) Installation Guide for Windows Operating System

As I mentioned in Windows System Requirements for Shaz Invoice Software and Shaz Cash Receipt, you need to have JRE in your computer to be able to run a Java Application such as Shaz Invoice Software. You can Download JRE 1.6 to install for Windows Operating System up to Windows 7, it will setup the Classpath by itself in Windows XP (it might does the setup by itself for all Windows operating system up to and including Windows XP), but you need to setup the Classpath manually for Windows 7 if you use this version. For Windows 8 and 10 please visit Oracle Website to find what version of JRE is compatible with your system and download it and install it. You might start from this link in oracle
http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
The installation program with .exe extension is easier to install because the installer install the program without much interaction by the user. However to run a Java application, JRE must be seen globally in any directory in your System, as you see in image above which is a windows command prompt screenshot. (You can access command prompt screen from windows Accessories menu) Another words when you type "java -version" in any directory on windows command prompt screen you have to have a line similar to “Java(TM) SE Runtime Environment (build 1.6.0_26-b03)”, obviously in regards to your version of JRE.
If you do not have some lines as above or you get a message that Java or JRE does not exist, this means you need to setup your windows Classpath to point to your JRE folder. The best way is to search Internet with a search term such as "JRE Classpath setup for Windows 7" to find a guide for your system. You may visit this link
http://yourspot.net/install-java-windows-10/
for Windows 10, however it gives installation guide for Java and JRE, but to run a a Java Application you only need JRE in your system. Next two links are for Windows 7 environment variables setup.
http://www.itcsolutions.eu/2010/11/29/set-environment-variables-in-windows-7-for-java/
http://www.abodeqa.com/2012/08/11/how-to-set-path/
and last one for Windows 8
https://www.geekdashboard.com/download-and-set-java-path-in-windows/
Also you must restart your Computer after changes done to system Classpath to invoke changes.

Currently I use Windows 7 and previously I had Windows XP so I try to give instructions for how to setup JRE for two Operating System and I believe the other Windows Operating System also very similar, you only need to find System option in Windows Control Panel and set it up as below.

  • PATH Setup Instruction for Windows 7

    1. After JRE installation, test your System by opening a Command Prompt screen that you can find from Windows Accessories menu and type java -version as you see in above image. If you have a line similar to Java(TM) SE Runtime Environment (build 1.6.0_26-b03), obviously in regards to your version of JRE, you do not need to do anything, because your System is ready to run any Java Applications. But if you do not have the above line you need to configure the System manually.
    2. Find where you have installed JRE in your C:\ Drive and its bin folder by opening Windows Explorer from Windows Accessories menu, as an example I find my JRE and its bin folder installed at C:\Program Files\Java\jre6\bin note this path somewhere because you need to use it later.
    3. Now Open the Windows Control Panel from Start menu and then change the View by: drop down at right hand side of screen to Large icons
    4. then Find System icon and click it
    5. In new screen at left hand side menu choose Advanced System Settings option
    6. In System Properties screen click Environment Variables button
    7. In Environment Variables screen at User Variable for (your name or computer name) list find PATH if you find it highlight it and press Edit button. Be careful not to delete anything, then go to the end of all text and add the JRE path that you noted before like this ;.;C:\Program Files\Java\jre6\bin; remember you need to put all semicolon (;) and dot (.) as I placed it
      If you do not have PATH in your User Variable for (your name or computer name) you need to create one by pressing New button, Then type in PATH for Variable name: and type in your JRE path in Variable value: as an example ;.;C:\Program Files\Java\jre6\bin; then press Ok to get back to previous screen and Ok again to get back to System Properties Screen and OK again to back to control Panel screen and close it.
    8. Now Restart you Computer
    9. Test your System by opening a Command Prompt screen that you can find from Windows Accessories menu and type java -version as you see in above image. If you have a line similar to Java(TM) SE Runtime Environment (build 1.6.0_26-b03), it means you have configured your System correctly.
    10. Congratulations! Now you can run any Java Application like Shaz Invoice Software.

  • PATH Setup Instruction for Windows XP

    1. After JRE installation, test your System by opening a Command Prompt screen that you can find from Windows Accessories menu and type java -version as you see in above image. If you have a line similar to Java(TM) SE Runtime Environment (build 1.6.0_26-b03), obviously in regards to your version of JRE, you do not need to do anything, because your System is ready to run any Java Applications. But if you do not have the above line you need to configure the System manually.
    2. Find where you have installed JRE in your C:\ Drive and its bin folder by opening Windows Explorer from Windows Accessories menu, as an example I find my JRE and its bin folder installed at C:\Program Files\Java\jre6\bin Note this path somewhere because you need to use it later.
    3. Now Open the Windows Control Panel from Start menu
    4. Find System icon and click it
    5. In System Properties screen choose Advanced Tab
    6. In Advanced tab screen click Environment Variables button
    7. in Environment Variables screen at User Variable for (your name or computer name) list find PATH if you find it highlight it and press Edit button. Be careful not to delete anything, then go to the end of all text and add the JRE path that you noted before like this ;.;C:\Program Files\Java\jre6\bin; remember you need to put all semicolon (;) and dot (.) as I placed it
      If you do not have PATH in your User Variable for (your name or computer name) you need to create one by pressing New button, Then type in PATH for Variable name: and type in your JRE path in Variable value: as an example ;.;C:\Program Files\Java\jre6\bin; then press Ok to get back to previous screen and Ok again to get back to System Properties Screen and OK again to back to control Panel screen and close it.
    8. Now Restart you Computer
    9. Test your System by opening a Command Prompt screen that you can find from Windows Accessories menu and type java -version as you see in above image. If you have a line similar to Java(TM) SE Runtime Environment (build 1.6.0_26-b03), it means you have configured your System correctly.
    10. Congratulations! Now you can run any Java Application like Shaz Invoice Software.
JRE Configuration steps for all other Windows Operating System more or less are similar to above to set up, you only need to find System option in Control Panel and then Environment Variables and follow above procedures.