Valhalla Legends Archive

Programming => General Programming => Java Programming => Topic started by: Ender on February 16, 2006, 08:35 PM

Title: Java Virtual Machine Launcher Error
Post by: Ender on February 16, 2006, 08:35 PM
"Cannot find .../jvm.cfg."

I just switched my workspace on eclipse, and now I want to change its default JRE directory. I edited the JRE in "Installed JREs" so that it referenced my desired directory. When I start Eclipse up, however, it says that it cannot find my jre/lib/i386/jvm.cfg file. Yet my new JRE directory that I added to installed JRE's contains this! What's interesting is that when I run Eclipse via command-line, with the following command, it all works fine. I can boot Eclipse and run programs - it can find my JVM and everything else.

eclipse -vm c:/java/jre/bin/javaw.exe

Yet the simple "eclipse" command brings up the same prompt: "can't find /jvm.cfg." Does anyone know why Eclipse can't find this file, and how I can change the path that Eclipse has for this file to my new JRE directory (it is still looking in my old JRE directory). I don't want to have to keep booting up eclipse in command-line ;|
Title: Re: Java Virtual Machine Launcher Error
Post by: Kp on February 16, 2006, 09:12 PM
If you can't fix it, just modify the shortcut you're using to start Eclipse so that it passes the -vm <path> along.
Title: Re: Java Virtual Machine Launcher Error
Post by: Ender on February 17, 2006, 04:38 PM
Good idea. Thanks.