• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

JVM Path - Error loading jvm.dll

Contributor ,
Aug 21, 2012 Aug 21, 2012

Copy link to clipboard

Copied

I am performing a new installation on the following:

Windows 2008 R2 service pack 1

CF Enterprise 9.0.2

Single Web Server installation using IIS

SQL Server

I am getting an 'Error loading: C:\Program Files\Java\jdk1.7.0_06\jre\bin\server\jvm.dll' when trying to replace the delivered JRE with a more recent version that I have downloaded and installed from Oracle.

I have verified the location is correct, and have escaped the backward slashes correctly -

java.home=C:\\Program Files\\Java\\jdk1.7.0_06\\jre.

I believe I have the Windows permissions correct to the location of the C;\program files location (same as to the location of the Coldfusion9 folders).

Any thoughts?

Thanks in advance.

Libby H.

TOPICS
Advanced techniques , Server administration

Views

47.9K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Aug 21, 2012 Aug 21, 2012

Something I have posted before but can not find the thread just now so here is again Libby for your benefit.

Download from Oracle Java 6 developer kit (not runtime and not 7):

http://www.oracle.com/technetwork/java/javase/downloads/index.html

Java JDK 1.6.0_34 is current.

Install that via running EXE you downloaded - default install will be fine.

Stop CF - SERVICES.msc stop "ColdFusion 9 Application Server".

Take a copy of CF\runtime\bin\jvm.config - so you got a backup.

Edit CF\runtime\bin\jvm.c

...

Votes

Translate

Translate
Guide ,
Aug 21, 2012 Aug 21, 2012

Copy link to clipboard

Copied

Hi Libby, Java 7 is not supported yet by CF:

http://blogs.coldfusion.com/post.cfm/java-7-support-for-coldfusion

Likely you will need to use Java 6 JDK. CF9.0.2 and CF10 both use Java 6 version 1.6.0_29.

HTH, Carl.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Aug 21, 2012 Aug 21, 2012

Copy link to clipboard

Copied

Something I have posted before but can not find the thread just now so here is again Libby for your benefit.

Download from Oracle Java 6 developer kit (not runtime and not 7):

http://www.oracle.com/technetwork/java/javase/downloads/index.html

Java JDK 1.6.0_34 is current.

Install that via running EXE you downloaded - default install will be fine.

Stop CF - SERVICES.msc stop "ColdFusion 9 Application Server".

Take a copy of CF\runtime\bin\jvm.config - so you got a backup.

Edit CF\runtime\bin\jvm.config find line "java.home=" and comment it out eg:

#java.home=C:/ColdFusion9/runtime/jre

Add new line like so and save jvm.config:

java.home=C:/Program Files/Java/jdk1.6.0_34/jre

Note there the slashes and the location of the JRE (runtime) - you need to point to the one in JDK because the other JRE in C:\Program Files\Java\jre6 will be missing a DLL.

Start CF via SERVICES.msc.

Regards, Carl.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 22, 2012 Aug 22, 2012

Copy link to clipboard

Copied

Thank you for your help.  This worked.

I guess it is knowing which version of the JDK (JRE) to download that is the key. 

I had seen is other posts that even thought 7 wasn't recommended, some folks were able to get it to run. 

This is a new production environment that I am setting up, and my current environment has 9.0.0 with 1.6.0_31 (Windows 2003), but with upgrading to 9.0.2, I couldn't get the 1.6.0_31 to work. 

Thanks again for your help!

Libby H.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 22, 2012 Aug 22, 2012

Copy link to clipboard

Copied

LATEST

Note that in installing 9.0.2, you would have gotten an updated JVM (compared to 9.0 or 9.0.1). I think it’s _27. Just adding that for you and others in this boat.

/charlie


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation