Copy link to clipboard
Copied
C:\ColdFusion9\bin>cfstart.bat
C:\ColdFusion9\runtime\jre\lib\rt.jar: error reading zip file
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: sun/reflect/UnsafeFieldAccessorImpl
Copy link to clipboard
Copied
Take a backup of jvm.config and set the new path of java.home in it
VJ
Copy link to clipboard
Copied
Thanks for the reply. I did try that using C:/Program Files/Java/jre7 but it didn't work.
C:\ColdFusion9\bin>cfstart.bat
Error: no `server' JVM at `C:/Program Files/Java/jre7\bin\server\jvm.dll'.
I do get confused with this...I have Java JRE...do I also need Java JDK or are they the same thing?
Copy link to clipboard
Copied
Hi Alan,
You need to install JDK 1.7U25 in order to get ColdFusion work.
Nimit
Copy link to clipboard
Copied
jre don't have the dll, so you need to install JDK
Follow the steps mentoned below :-
You can remove/uninstall jre that you have installed
Download JDK
http://java.com/en/download/index.jsp
Install (run exe)
Stop ColdFusion 9 Application Server services
Now go to cfinstall root\runtime\bin\
Take a backup of jvm.config. Then open jvm.config and edit jvm.home
It will be something like java.home=C:/Program Files/Java/jdk1.7.0_25/jre
So setting this path means you are setting the path of jre present in the jdk folder not the standalone jre that you have installed.
Hope it helps
VJ
Copy link to clipboard
Copied
Hi Alan, You may also need to copy C:\Program Files\Java\jdk1.7.0_25\bin\msvcr100.dll to C:\ColdFusion9\runtime\bin.
Please note the slashes in your JVM.CONFIG for java home environment EG slashes can be like the two lines tho you would only use one line:
#java.home=C:/ColdFusion9/runtime/jre
java.home=C:\\Program Files\\Java\\jdk1.7.0_25\\jre
or
java.home=C:/Program Files/Java/jdk1.7.0_25/jre
HTH, Carl.
Copy link to clipboard
Copied
Alan, One other thing comes to mind, CF9.0.1 needs CHF4, CF9.0.2 needs CHF1 to be Adobe CF with Java 7 compatible. What is your CF9 patch level?
Copy link to clipboard
Copied
Carl, to be honest, I don't remember but if I can get the server to start, I'll find out. My desktop has decided to bsod instaed of starting , so I' m trying to work through that, but thanks for keeping on with this.
Copy link to clipboard
Copied
ok, re-built my pc (it was a faulty ssd) with win7, installed jre 7 and jdk 6 - cf9 now works fine. Thanks to everyone for your help.