m-Power Documentation

Upgrading to JDK 1.6 for Windows

For your convenience, m-Power ships with JDK 1.4. However, to take advantage of new functionality, you will need to upgrade to JDK 1.6.

To determine what level of JDK you are running (if unsure), please open the m-Power interface and navigate to the Admin section. From here, please click the "Version & Software Update" button. Your current JDK level will be displayed below:

To begin:

  1. Download JDK 1.6 from here (http://www.mrc-productivity.com/members/tomcat/jdk16.exe) to your m-Power server.
  2. Install the JDK by double clicking on it. Advance through the screens until you have finished.
  3. Congratulations, JDK 1.6 has now been installed on your system. You can verify this by going to Start -> Run and type in CMD. In the DOS windows, type: java –version

You should see a screen that looks like this:

Notice that the Java version is showing 1.6.0

Now that JDK 1.6 is installed, we need to tell m-Power about it.

  1. First, let's modify the Tomcat batch file. Navigate to c:\m-power and edit the “start_tomcat.bat” file.
  2. Replace this line:
    set JAVA_HOME=C:/j2sdk1.4.2
    with this line:
    set JAVA_HOME=C:/Program Files/Java/jdk1.6.0_07
  3. Next, Windows needs to be instructed that it should use JDK1.6
  4. Right-click on My Computer, and go to Properties.
  5. Under the advanced tab, click the “Environmental Variables” button
  6. Under “System Variables” find “PATH” and click “Edit.”
  7. Append the following text to the end of the “Variable value” section:
    ;C:\Program Files\Java\jdk1.6.0_07\bin
    Note: If ;c:\j2sdk1.4.2\bin already exists in the PATH, please remove it.
  8. Click OK three times to close the Properties windows. After making this change the PATH you will need to restart your server.
  9. Copy tools.jar from C:\Program Files\Java\jdk1.6.0_07\lib to c:\m-power\tomcat\lib. Please overwrite the existing file in c:\m-power\tomcat\lib.

Lastly, we will need to modify your Tomcat Service Startup Logic

Go to Start -> Run & type CMD

From here type: cd\

Then, type: cd m-power\tomcat\bin

Lastly, type: tomcat6w

Click the Java tab.

Change the Java Virtual Path to:

C:\Program Files\Java\jdk1.6.0_07\jre\bin\server\jvm.dll

Click OK. Then Stop & Start the service for the changes to take effect.

Congratulations! You have successfully setup JDK 1.6 for Windows.

Note: Be sure to upgrade your production instance, if applicable, to JDK 1.6 as well.

Rather than continue to use the older version of Tomcat, please consider to upgrade to Tomcat 6. More information about upgrading can be found here: here.


subscribe to newsletter
Want to receive weekly insight, tips, viewpoints, and news from a 28-year industry veteran? Enter your email below to subscribe!

m-Power Customers

Customers


mrc (US)
555 Waters Edge
Suite 120
Lombard, IL 60148
630-916-0662
mrc (UK)
Argyle House
1 Dee Road
Richmond, Surrey
TW9 2JN
+44-20-8322-7720