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

Updated Java

New Here ,
Nov 27, 2013 Nov 27, 2013

Copy link to clipboard

Copied

I am trying to use a jdbc/mysql connector. The issue is that the connector is compiled in a later version that what is installed in Coldfusion MX 6.1. I have downloaded and installed the Java 6 SE JDK and installed it. Here is my JVM config file.

#

# VM configuration

#

# Where to find JVM, if {java.home}/jre exists then that JVM is used

# if not then it must be the path to the JRE itself

#java.home=C:/Program Files (x86)/Java/jdk1.6.0_45/jre

#java.home=C:\\Program Files (x86)\\Java\\jdk1.6.0_45\\jre

#java.home=C:/Program Files (x86)/Java/jdk1.6.0_45

#java.home=C:\\Program Files (x86)\\Java\\jdk1.6.0_45

java.home=C:/CFusionMX/runtime/jre

#

# If no java.home is specified a VM is located by looking in these places in this

# order:

#

#  1) bin directory for java.dll (windows) or lib/<ARCH>/libjava.so (unix)

#  2) ../jre

#  3) registry (windows only)

#  4) JAVA_HOME env var plus jre (ie $JAVA_HOME/jre)

#

# Arguments to VM

java.args=-server -DJINTEGRA_NATIVE_MODE -DJINTEGRA_PREFETCH_ENUMS -Xmx512m -Dsun.io.useCanonCaches=false -Xbootclasspath/a:"{application.home}/../lib/webchartsJava2D.jar" -XX:MaxPermSize=128m -XX:+UseParallelGC

#

# commas will be converted to platform specific separator and the result will be passed

# as -Djava.ext.dirs= to the VM

java.ext.dirs={jre.home}/lib/ext

#

# where to find shared libraries

java.library.path={application.home}/../lib,{application.home}/../jintegra/bin,{application.home}/../jintegra/bin/international,{application.home}/../lib/_nti40/bin

system.path.first=false

# JVM classpath

java.class.path={application.home}/servers/lib,{application.home}/../lib/cfusion.jar,{application.home}/../lib,{application.home}/../runtime/lib/jrun.jar,{application.home}/../runtime/lib,

I have tried each of the 4 paths and only the last one works. The following is my Coldfusion error log.

Error loading: C:/Program Files (x86)/Java/jdk1.6.0_45/jre\bin\server\jvm.dll

Error loading: C:\Program Files (x86)\Java\jdk1.6.0_45\jre\bin\server\jvm.dll

Error loading: C:/Program Files (x86)/Java/jdk1.6.0_45\jre\bin\server\jvm.dll

Error loading: C:\Program Files (x86)\Java\jdk1.6.0_45\jre\bin\server\jvm.dll

I have no idea why the jvm.dll can not be found as the file is in that directory.

Views

373

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
no replies

Have something to add?

Join the conversation
Resources
Documentation