Error with the VM  
Author Message
Carlos Zin





PostPosted: 2005-4-20 4:24:00 Top

java-programmer, Error with the VM Recently I did some registry cleaning and fixing and apparently i screwed
the java section so I disintalled the Java SDK and installed it again hoping
the installer could fix everything. But no way, I get this error anytime I
try o run the java VM.
Does anybody know how I can fix the registry? (I am not willing to reinstall
the entire OS...
Thanks
CZ

Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-2001.

C:\java
Error opening registry key 'Software\JavaSoft\Java Runtime Environment\1.4'
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.


 
Alexey N. Solofnenko





PostPosted: 2005-4-20 4:36:00 Top

java-programmer >> Error with the VM You can always run Java by specifying its full path or by adding its
directory into beginning of PATH environment variable. Generic loader in
windows/system32 looks for Java path in registry and launches java.exe .

- Alexey.

Carlos Zin wrote:
> Recently I did some registry cleaning and fixing and apparently i screwed
> the java section so I disintalled the Java SDK and installed it again hoping
> the installer could fix everything. But no way, I get this error anytime I
> try o run the java VM.
> Does anybody know how I can fix the registry? (I am not willing to reinstall
> the entire OS...
> Thanks
> CZ
>
> Microsoft(R) Windows DOS
> (C)Copyright Microsoft Corp 1990-2001.
>
> C:\java
> Error opening registry key 'Software\JavaSoft\Java Runtime Environment\1.4'
> Error: could not find java.dll
> Error: could not find Java 2 Runtime Environment.
>
>
 
Carlos Zin





PostPosted: 2005-4-20 5:09:00 Top

java-programmer >> Error with the VM In fact, I did set the PATH variable with the Java path but I still get the
same error message. By the way, I installed JBuilder and it is not working
(throws an error everytime I launch it), I suppose it is related with the
Java VM error.

"Alexey N. Solofnenko" <email***@***.com> escribi?en el mensaje
news:42656b90$email***@***.com...
> You can always run Java by specifying its full path or by adding its
> directory into beginning of PATH environment variable. Generic loader in
> windows/system32 looks for Java path in registry and launches java.exe .
>
> - Alexey.
>
> Carlos Zin wrote:
>> Recently I did some registry cleaning and fixing and apparently i screwed
>> the java section so I disintalled the Java SDK and installed it again
>> hoping the installer could fix everything. But no way, I get this error
>> anytime I try o run the java VM.
>> Does anybody know how I can fix the registry? (I am not willing to
>> reinstall the entire OS...
>> Thanks
>> CZ
>>
>> Microsoft(R) Windows DOS
>> (C)Copyright Microsoft Corp 1990-2001.
>>
>> C:\java
>> Error opening registry key 'Software\JavaSoft\Java Runtime
>> Environment\1.4'
>> Error: could not find java.dll
>> Error: could not find Java 2 Runtime Environment.


 
 
Alexey N. Solofnenko





PostPosted: 2005-4-20 5:21:00 Top

java-programmer >> Error with the VM It is strange - JBuilder uses its own private Java by default. Something
else is affecting Java. Usually I use Cygwin's "which" program to see
what program will be executed when I type a command.

Please try running drive:\full\path\bin\java -version and see if it
works. If nothing works, try installing new public JRE (it will update
the registry).

- Alexey.

Carlos Zin wrote:
> In fact, I did set the PATH variable with the Java path but I still get the
> same error message. By the way, I installed JBuilder and it is not working
> (throws an error everytime I launch it), I suppose it is related with the
> Java VM error.
>
> "Alexey N. Solofnenko" <email***@***.com> escribiè´¸ en el mensaje
> news:42656b90$email***@***.com...
>
>>You can always run Java by specifying its full path or by adding its
>>directory into beginning of PATH environment variable. Generic loader in
>>windows/system32 looks for Java path in registry and launches java.exe .
>>
>>- Alexey.
>>
>>Carlos Zin wrote:
>>
>>>Recently I did some registry cleaning and fixing and apparently i screwed
>>>the java section so I disintalled the Java SDK and installed it again
>>>hoping the installer could fix everything. But no way, I get this error
>>>anytime I try o run the java VM.
>>>Does anybody know how I can fix the registry? (I am not willing to
>>>reinstall the entire OS...
>>>Thanks
>>>CZ
>>>
>>>Microsoft(R) Windows DOS
>>>(C)Copyright Microsoft Corp 1990-2001.
>>>
>>>C:\java
>>>Error opening registry key 'Software\JavaSoft\Java Runtime
>>>Environment\1.4'
>>>Error: could not find java.dll
>>>Error: could not find Java 2 Runtime Environment.
>
>
>
 
 
Lori M Olson [TeamB]





PostPosted: 2005-4-20 5:49:00 Top

java-programmer >> Error with the VM Carlos Zin wrote:

> Recently I did some registry cleaning and fixing and apparently i screwed
> the java section so I disintalled the Java SDK and installed it again hoping
> the installer could fix everything. But no way, I get this error anytime I
> try o run the java VM.
> Does anybody know how I can fix the registry? (I am not willing to reinstall
> the entire OS...
> Thanks
> CZ
>
> Microsoft(R) Windows DOS
> (C)Copyright Microsoft Corp 1990-2001.
>
> C:\java
> Error opening registry key 'Software\JavaSoft\Java Runtime Environment\1.4'
> Error: could not find java.dll
> Error: could not find Java 2 Runtime Environment.
>
>

1. Reinstall the JDK that you WANT to be default on your machine. (Optional)

2. Delete/rename java.exe and javaw.exe from your Windows\system32
directory.

3. Point JAVA_HOME environment variable at the JDK you want to use

4. Put %JAVA_HOME%\bin in your PATH.

--

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
 
 
Carlos Zin





PostPosted: 2005-4-20 6:06:00 Top

java-programmer >> Error with the VM Yes, it works with full path as well as when I launch the VM from inside
"bin" directory

"Alexey N. Solofnenko" <email***@***.com> escribi?en el mensaje
news:42657627$email***@***.com...
> It is strange - JBuilder uses its own private Java by default. Something
> else is affecting Java. Usually I use Cygwin's "which" program to see what
> program will be executed when I type a command.
>
> Please try running drive:\full\path\bin\java -version and see if it works.
> If nothing works, try installing new public JRE (it will update the
> registry).
>
> - Alexey.
>
> Carlos Zin wrote:
>> In fact, I did set the PATH variable with the Java path but I still get
>> the same error message. By the way, I installed JBuilder and it is not
>> working (throws an error everytime I launch it), I suppose it is related
>> with the Java VM error.
>>
>> "Alexey N. Solofnenko" <email***@***.com> escribi?en el mensaje
>> news:42656b90$email***@***.com...
>>
>>>You can always run Java by specifying its full path or by adding its
>>>directory into beginning of PATH environment variable. Generic loader in
>>>windows/system32 looks for Java path in registry and launches java.exe .
>>>
>>>- Alexey.
>>>
>>>Carlos Zin wrote:
>>>
>>>>Recently I did some registry cleaning and fixing and apparently i
>>>>screwed the java section so I disintalled the Java SDK and installed it
>>>>again hoping the installer could fix everything. But no way, I get this
>>>>error anytime I try o run the java VM.
>>>>Does anybody know how I can fix the registry? (I am not willing to
>>>>reinstall the entire OS...
>>>>Thanks
>>>>CZ
>>>>
>>>>Microsoft(R) Windows DOS
>>>>(C)Copyright Microsoft Corp 1990-2001.
>>>>
>>>>C:\java
>>>>Error opening registry key 'Software\JavaSoft\Java Runtime
>>>>Environment\1.4'
>>>>Error: could not find java.dll
>>>>Error: could not find Java 2 Runtime Environment.
>>
>>

 
 
Carlos Zin





PostPosted: 2005-4-20 6:12:00 Top

java-programmer >> Error with the VM Thanks,
It was sufficient deleting programs from system32 folder, now VM runs.
I don't have a JAVA_HOME env variable, should I have one?? It works
anyway...
CZ

"Lori M Olson [TeamB]" <email***@***.com> escribi?en el mensaje
news:42657cfa$email***@***.com...
> Carlos Zin wrote:
>
>> Recently I did some registry cleaning and fixing and apparently i screwed
>> the java section so I disintalled the Java SDK and installed it again
>> hoping the installer could fix everything. But no way, I get this error
>> anytime I try o run the java VM.
>> Does anybody know how I can fix the registry? (I am not willing to
>> reinstall the entire OS...
>> Thanks
>> CZ
>>
>> Microsoft(R) Windows DOS
>> (C)Copyright Microsoft Corp 1990-2001.
>>
>> C:\java
>> Error opening registry key 'Software\JavaSoft\Java Runtime
>> Environment\1.4'
>> Error: could not find java.dll
>> Error: could not find Java 2 Runtime Environment.
>
> 1. Reinstall the JDK that you WANT to be default on your machine.
> (Optional)
>
> 2. Delete/rename java.exe and javaw.exe from your Windows\system32
> directory.
>
> 3. Point JAVA_HOME environment variable at the JDK you want to use
>
> 4. Put %JAVA_HOME%\bin in your PATH.
>
> --
>
> Regards,
>
> Lori Olson [TeamB]
>
> ------------
>
> Save yourself, and everyone else, some time and search the
> newsgroups and the FAQ-O-Matic before posting your next
> question.
>
> Google Advanced Newsgroup Search
> http://www.google.ca/advanced_group_search
> Other Newsgroup Searches:
> http://www.borland.com/newsgroups/ngsearch.html
> Joi Ellis's FAQ-O-Matic:
> http://www.visi.com/~gyles19/fom-serve/cache/1.html


 
 
Lori M Olson [TeamB]





PostPosted: 2005-4-20 7:32:00 Top

java-programmer >> Error with the VM Carlos Zin wrote:

> Thanks,
> It was sufficient deleting programs from system32 folder, now VM runs.
> I don't have a JAVA_HOME env variable, should I have one?? It works
> anyway...
> CZ
>

Only if you like to use java from the command-line. Otherwise you
probably won't need it.

--

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
 
 
Carlos Zin





PostPosted: 2005-4-20 8:14:00 Top

java-programmer >> Error with the VM I do run java from the command line and it works without the JAVA_HOME
variable.

(Problem with JBuilder disappeared when I could have the VM working)
CZ

"Lori M Olson [TeamB]" <email***@***.com> escribi?en el mensaje
news:email***@***.com...
> Carlos Zin wrote:
>
>> Thanks,
>> It was sufficient deleting programs from system32 folder, now VM runs.
>> I don't have a JAVA_HOME env variable, should I have one?? It works
>> anyway...
>> CZ
>>
>
> Only if you like to use java from the command-line. Otherwise you
> probably won't need it.
>
> --
>
> Regards,
>
> Lori Olson [TeamB]
>
> ------------
>
> Save yourself, and everyone else, some time and search the
> newsgroups and the FAQ-O-Matic before posting your next
> question.
>
> Google Advanced Newsgroup Search
> http://www.google.ca/advanced_group_search
> Other Newsgroup Searches:
> http://www.borland.com/newsgroups/ngsearch.html
> Joi Ellis's FAQ-O-Matic:
> http://www.visi.com/~gyles19/fom-serve/cache/1.html