Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hey
I'm trying to use CodeWarrior to write some Java programs. I get the error:
Link Error : Could not initialize Java VM. Make sure the JDK is installed properly.
What is the problem? Should I download JVM? Shouldn't it be on my computer?
Thanks for the help

I've tried installing SDK but I get an error during installation that it can not change the system confuguration and installation fails. Any Ideas?
Thanks

The SDK and the JVM are not the same thing. I believe that the SDK includes the JVM, but you might make sure.
Anywho, that doesn't answer your second question. Are you root when you run the install?? You might need to be.

I'm not sure what your problem is here. My suggestions would be to make sure that you have admin priveleges and reinstall the java virtual machine...
Personally, I dislike code warrior... for reasons unknown. I rather write code in notepad or VI.
Infinite Recursion

why don't you get the new sdk with netbeans ide. it's just as good or better as CW, but poor debugger.

Do you have j2sdk_1.x.x or jre(Java Runtime Environment)installed on your computer?If no,then go to www.java.sun.com,else:
First,you need to have the right version of VM.
Second,as Don Arnett said you need to be root or to have access to the files java.exe(Win) or java(Linux).
Third,you can cause conflict if you have 2 VM's installed.
Fourth,the VM is the file java.exe on Windoze,or "java" on Linux or Solaris.
So,Code Warrior possibly searches for these files(if no manually browse).If it cannot find these files via "Registry" or "System Path" ,it will crash!Tell me more 'bout your problem because there's too many reasons for CW to crash!

"Tell me more 'bout your problem because there's too many reasons for CW to crash!"
Exactly the reason I don't like CW... lol
IR

I have all the stuff installed on the machien. I can run java programs using javac and java or even JCreator. And JDK path is set on autoexec.bat file.
I just can't figure out why CW can't find it.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |