Skip to main content



      Home
Home » Newcomers » Newcomers » JRE mess with JDK
JRE mess with JDK [message #75919] Thu, 09 June 2005 03:58 Go to next message
Eclipse UserFriend
Originally posted by: divinerchan.gmail.com

Hi all,

I installed jre1.5.0_03 and work fine with Eclipse 3.0.1 for
a short period. Then I installed jdk1.5.0_03, when it was
installing, it said it will uninstall jre for me, so I am going
on for all installation jdk work for me.

But after installation, the first impack is my Eclipse cannot
be started. I find some document tell me that specify VM for
Eclipse:
eclipse -vm "C:\Program Files\Java\jdk1.5.0_03\bin\javaw.exe"
Yes, it works. But I am still doubt of it because "jre" is already
mess into "jdk's jre".

Actually, I don't think jre1.5.0_03 is uninstalled by jdk installation.
The \jre1.5.0_03 folder is still there. And if I rename it and run
Eclipse (without VM parameter), I get an error:
Error: could not open 'C:\Program Files\Java\jre1.5.0_03\lib\i386\jvm.cfg'
Obviously, my java environment is already mess jdk and jre!

I search the string "\jre1.5.0_03" from registry, JavaWebStall.dll is still
bind with jre, npjpi1t50_03.dll is still bind with it, javaw.exe...etc. A
lot of resource is still binding with \jre1.5.0_03 folder in registry.

What can I do now? Thank you very much.

--
Best regards,
Diviner.
Re: JRE mess with JDK [message #75948 is a reply to message #75919] Thu, 09 June 2005 04:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: divinerchan.gmail.com

Hi all,

The second impack after installing jdk1.5.0_03, I can't start
JavaWebStart anymore. This is the site I try before install jdk
and it works:
http://java.sun.com/products/javawebstart/demos-nojavascript .html
After install jdk, I just see a "Java Loading..." dialog but no
java application is started after then.

I think I must find a way to uninstall all java stuff and start it
from very first step.
--
Best regards,
Diviner.


> Hi all,
>
> I installed jre1.5.0_03 and work fine with Eclipse 3.0.1 for
> a short period. Then I installed jdk1.5.0_03, when it was
> installing, it said it will uninstall jre for me, so I am going
> on for all installation jdk work for me.
>
> But after installation, the first impack is my Eclipse cannot
> be started. I find some document tell me that specify VM for
> Eclipse:
> eclipse -vm "C:\Program Files\Java\jdk1.5.0_03\bin\javaw.exe"
> Yes, it works. But I am still doubt of it because "jre" is already
> mess into "jdk's jre".
>
> Actually, I don't think jre1.5.0_03 is uninstalled by jdk installation.
> The \jre1.5.0_03 folder is still there. And if I rename it and run
> Eclipse (without VM parameter), I get an error:
> Error: could not open 'C:\Program Files\Java\jre1.5.0_03\lib\i386\jvm.cfg'
> Obviously, my java environment is already mess jdk and jre!
>
> I search the string "\jre1.5.0_03" from registry, JavaWebStall.dll is still
> bind with jre, npjpi1t50_03.dll is still bind with it, javaw.exe...etc. A
> lot of resource is still binding with \jre1.5.0_03 folder in registry.
>
> What can I do now? Thank you very much.
>
> --
> Best regards,
> Diviner.
Re: JRE mess with JDK [message #75983 is a reply to message #75919] Thu, 09 June 2005 05:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: divinerchan.gmail.com

Hi all,

The third impack is I can't start Tomcat 5.5.
Error log snippet like this:
<<<
....
[2005-06-09 17:13:42] [info] Error occurred during initialization of VM
[2005-06-09 17:13:42] [info] java/lang/NoClassDefFoundError
[2005-06-09 17:13:42] [info] : java/lang/Object
[2005-06-09 17:14:15] [info] Running Service...
[2005-06-09 17:14:15] [info] Starting service...
[2005-06-09 17:14:15] [info] Service started in 46 ms.
[2005-06-09 17:14:16] [info] Run service finished.
[2005-06-09 17:14:16] [info] Procrun finished.
>>>
The problem is still around VM. I think it is caused by the
same manner.

--
Best regards,
Diviner.


> Hi all,
>
> I installed jre1.5.0_03 and work fine with Eclipse 3.0.1 for
> a short period. Then I installed jdk1.5.0_03, when it was
> installing, it said it will uninstall jre for me, so I am going
> on for all installation jdk work for me.
>
> But after installation, the first impack is my Eclipse cannot
> be started. I find some document tell me that specify VM for
> Eclipse:
> eclipse -vm "C:\Program Files\Java\jdk1.5.0_03\bin\javaw.exe"
> Yes, it works. But I am still doubt of it because "jre" is already
> mess into "jdk's jre".
>
> Actually, I don't think jre1.5.0_03 is uninstalled by jdk installation.
> The \jre1.5.0_03 folder is still there. And if I rename it and run
> Eclipse (without VM parameter), I get an error:
> Error: could not open 'C:\Program Files\Java\jre1.5.0_03\lib\i386\jvm.cfg'
> Obviously, my java environment is already mess jdk and jre!
>
> I search the string "\jre1.5.0_03" from registry, JavaWebStall.dll is still
> bind with jre, npjpi1t50_03.dll is still bind with it, javaw.exe...etc. A
> lot of resource is still binding with \jre1.5.0_03 folder in registry.
>
> What can I do now? Thank you very much.
>
> --
> Best regards,
> Diviner.
Re: JRE mess with JDK [message #75993 is a reply to message #75983] Thu, 09 June 2005 05:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: divinerchan.gmail.com

Hi all,

I have solved this problem. In Tomcat configuration, it has
a setting for JVM, it is default to ...\jre1.5.0_03\...\jvm.dll.
I changed it to ...\jdk1.5.0_03\...jvm.dll, everythings
goes fine.

But I really don't like this "Default VM" path annoying me
continuously :(

--
Best regards,
Diviner.


> Hi all,
>
> The third impack is I can't start Tomcat 5.5.
> Error log snippet like this:
> <<<
> ...
> [2005-06-09 17:13:42] [info] Error occurred during initialization of VM
> [2005-06-09 17:13:42] [info] java/lang/NoClassDefFoundError
> [2005-06-09 17:13:42] [info] : java/lang/Object
> [2005-06-09 17:14:15] [info] Running Service...
> [2005-06-09 17:14:15] [info] Starting service...
> [2005-06-09 17:14:15] [info] Service started in 46 ms.
> [2005-06-09 17:14:16] [info] Run service finished.
> [2005-06-09 17:14:16] [info] Procrun finished.
>
> The problem is still around VM. I think it is caused by the
> same manner.
>
> --
> Best regards,
> Diviner.
Re: JRE mess with JDK [message #76121 is a reply to message #75919] Thu, 09 June 2005 10:56 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

Diviner wrote:
> Hi all,
>
> I installed jre1.5.0_03 and work fine with Eclipse 3.0.1 for
> a short period. Then I installed jdk1.5.0_03, when it was
> installing, it said it will uninstall jre for me, so I am going
> on for all installation jdk work for me.
>
> But after installation, the first impack is my Eclipse cannot
> be started. I find some document tell me that specify VM for
> Eclipse:
> eclipse -vm "C:\Program Files\Java\jdk1.5.0_03\bin\javaw.exe"
> Yes, it works. But I am still doubt of it because "jre" is already
> mess into "jdk's jre".
>
> Actually, I don't think jre1.5.0_03 is uninstalled by jdk installation.

The easiest thing to do would be to run the uninstaller for both JRE and
JDK, then re-install just the JDK (which will offer to install a
"public" JRE for you).
Another piece of advice: keep your JDK installations organized into a
directory you can control, like
c:/
Java/
JDK/
1.3/
1.4.1/
1.5.0/
etc...

And don't have a JRE installed anywhere else on your system, and don't
have a system env CLASSPATH setting. This way you can always control
what JVM is being used by your various Java processes (Eclipse, Tomcat,
etc.)

HTH,
Eric
Previous Topic:Run Application
Next Topic:Using Eclipse with C and/or C++
Goto Forum:
  


Current Time: Sun May 11 11:45:22 EDT 2025

Powered by FUDForum. Page generated in 0.08699 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top