Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Installation of Java 1.5.0 corrupts eclipse
Installation of Java 1.5.0 corrupts eclipse [message #182013] Tue, 12 October 2004 03:42 Go to next message
Eclipse UserFriend
To experiment with the new features of Java 1.5 I installed JDK 1.5.0
yesterday and apparently this now crashes eclipse:

When I start eclipse I get an alert
----------------------------
An error has occured. See the log file
c:\eclipse\configuration\<somenumber>.log.
[OK]
----------------------------
After pressing OK the program terminates... :-(

The referenced log reads:
------------------------------------------
!SESSION Okt 12, 2004
09:35:48.570 ---------------------------------------------
eclipse.buildId=M200409161125
java.version=1.5.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_CH

!ENTRY
initial@reference:file:c:/eclipse/plugins/org.eclipse.update.configura
tor_3.0.0/ 0 0 Okt 12, 2004 09:35:48.570
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in
org.eclipse.update.internal.configurator.ConfigurationActiva tor.start(
) of bundle org.eclipse.update.configurator.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActiva
tor(BundleContextImpl.java:975)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(Bundl
eContextImpl.java:937)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(Bundle
Host.java:421)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(Abstrac
tBundle.java:366)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framew
ork.java:999)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundl
es(StartLevelManager.java:577)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(Sta
rtLevelManager.java:488)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartL
evel(StartLevelManager.java:273)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEve
nt(StartLevelManager.java:444)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventMa
nager.java:186)
at
org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:1
04)
Caused by: javax.xml.transform.TransformerFactoryConfigurationError:
Provider org.apache.xalan.processor.TransformerFactoryImpl not found
at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
at
org.eclipse.update.internal.configurator.PlatformConfigurati on. <clinit
>(PlatformConfiguration.java:45)
at
org.eclipse.update.internal.configurator.ConfigurationActiva tor.getPla
tformConfiguration(ConfigurationActivator.java:323)
at
org.eclipse.update.internal.configurator.ConfigurationActiva tor.initia
lize(ConfigurationActivator.java:108)
at
org.eclipse.update.internal.configurator.ConfigurationActiva tor.start(
ConfigurationActivator.java:71)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(Bundl
eContextImpl.java:958)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActiva
tor(BundleContextImpl.java:954)
... 10 more
Root exception:
javax.xml.transform.TransformerFactoryConfigurationError: Provider
org.apache.xalan.processor.TransformerFactoryImpl not found
at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
at
org.eclipse.update.internal.configurator.PlatformConfigurati on. <clinit
>(PlatformConfiguration.java:45)
at
org.eclipse.update.internal.configurator.ConfigurationActiva tor.getPla
tformConfiguration(ConfigurationActivator.java:323)
at
org.eclipse.update.internal.configurator.ConfigurationActiva tor.initia
lize(ConfigurationActivator.java:108)
at
org.eclipse.update.internal.configurator.ConfigurationActiva tor.start(
ConfigurationActivator.java:71)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(Bundl
eContextImpl.java:958)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActiva
tor(BundleContextImpl.java:954)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(Bundl
eContextImpl.java:937)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(Bundle
Host.java:421)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(Abstrac
tBundle.java:366)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framew
ork.java:999)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundl
es(StartLevelManager.java:577)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(Sta
rtLevelManager.java:488)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartL
evel(StartLevelManager.java:273)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEve
nt(StartLevelManager.java:444)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventMa
nager.java:186)
at
org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:1
04)

!ENTRY org.eclipse.osgi Okt 12, 2004 09:35:48.600
!MESSAGE Startup error
!STACK 1
java.lang.IllegalStateException: Bundle
initial@reference:file:c:/eclipse/plugins/org.eclipse.update.configura
tor_3.0.0/ [2] is not active.
at
org.eclipse.core.runtime.adaptor.EclipseStarter.ensureBundle sActive(Ec
lipseStarter.java:303)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Ecli pseStarter
..java:227)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.jav
a:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
------------------------------------------

I didn't find the listed JDK on the path nor any classpath environment
variable defined nor anything that points to that new JDK.
What does eclipse use to find it's JRE? And what do I need to fix,
which registry key to mangle or whatever it takes to make eclipse to
NOT use that new JDK 1.5 but the former 1.4 (which is still installed
on my system)?

Michael
Re: Installation of Java 1.5.0 corrupts eclipse [message #182022 is a reply to message #182013] Tue, 12 October 2004 04:01 Go to previous messageGo to next message
Eclipse UserFriend
I don't get it!

If I start (i.e. double-click) eclipse.exe in C:\eclipse then eclipse
starts up fine. It's only when I start it using the eclipse shortcut
on my desktop, that the mentioned startup error occurs. What's going
on here? Why does using a shortcut yield in eclipse using a different
JRE???

Michael
Re: Installation of Java 1.5.0 corrupts eclipse [message #182029 is a reply to message #182022] Tue, 12 October 2004 04:08 Go to previous messageGo to next message
Eclipse UserFriend
Turned out, that my shortcut had an added
"-Djava.endorsed.dirs=C:\Java_Extensions\xerces-2_6_2" option.
(I think I once added this to get some Tomcat-Plugin working).
Removing that solved my startup problem.

Sorry for the bandwidth...

Michael

PS.: So I guess, eclipse is now running under 1.5.0. BTW: how can one
tell which JRE is used by eclipse (to run itself, not to compile and
run/debug other apps)?
Re: Installation of Java 1.5.0 corrupts eclipse [message #182036 is a reply to message #182029] Tue, 12 October 2004 04:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Michael Moser wrote:

>Turned out, that my shortcut had an added
>"-Djava.endorsed.dirs=C:\Java_Extensions\xerces-2_6_2" option.
>(I think I once added this to get some Tomcat-Plugin working).
>Removing that solved my startup problem.
>
>Sorry for the bandwidth...
>
>Michael
>
>PS.: So I guess, eclipse is now running under 1.5.0. BTW: how can one
>tell which JRE is used by eclipse (to run itself, not to compile and
>run/debug other apps)?
>
>
Start eclipse.exe with -vm <vmGoesHere>

Note that though it might work, running Eclipse R3.0.x with J2SE 5.0 is
not supported. To explore J2SE 5.0 I suggest to use a 3.1 build, e.g.
3.1 M2.

Dani

>
>
>
Re: Installation of Java 1.5.0 corrupts eclipse [message #182042 is a reply to message #182036] Tue, 12 October 2004 05:06 Go to previous messageGo to next message
Eclipse UserFriend
"Daniel Megert" <daniel.megert@gmx.net> wrote in message
news:ckg3dm$2pp$1@eclipse.org...
> ...
> Note that though it might work, running Eclipse R3.0.x with J2SE 5.0
is
> not supported. To explore J2SE 5.0 I suggest to use a 3.1 build,
e.g.
> 3.1 M2.

Thanks - I know. But I need to stay with a 3.0 eclipse for the time
being due to another plugin I use that is known to NOT work with 3.1.
So I wanted to play with Java 1.5 outside eclipse and hadn't expected
that just installing 1.5. would already have any such consequences.

Michael
Re: Installation of Java 1.5.0 corrupts eclipse [message #182073 is a reply to message #182042] Tue, 12 October 2004 06:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: edoardoATenigmatecDOTnet.no.spam

Michael Moser wrote:
> Thanks - I know. But I need to stay with a 3.0 eclipse for the time
> being due to another plugin I use that is known to NOT work with 3.1.
> So I wanted to play with Java 1.5 outside eclipse and hadn't expected
> that just installing 1.5. would already have any such consequences.

Michael,
You fell victim of the 'implicit behavior is simpler' approach that both
Sun-Jdk-On-Windows and Eclipse-On-Windows take.

IMO, I think that implicit-behavior-is-evil in a development environment
because you stop knowing what's affecting you ...

The implicit assumptions the two above mentioned tools make for you are:

1) after installing a JDK, that JDK is the default JDK that will be used
when launching the java executable.
This may be good for an end-user. it's a silly decision to make on a
devleoper machine where many JDK may be installed at any one time.

2) eclipse.exe assumes the default jdk (see above ;-) is the one to run
the eclipse application on, unless overridden via -vm args.
Again, IMO this simplification is silly.
eclipse.exe could complain it needs to be started with a -jdk switch (or
that JAVA_HOME is missing etc)

I nowadays develop almost exclusively on Linux where :
- I try keep a clean .profile/.bashrc
- I start tools from shells where I set the correct env-vars (eg PATH,
JAVA_HOME, CATALINA_HOME etc) via custom scripts.

This allows me to keep multiple versions installed without conflicts
And this is exactly what I do/have done for ages on Windows as well, and
keep suggesting to all javawindevelopers as well.

Edo

PS - even M$ Visual Studio on windows used to give you the option, on
install, to set the environment at a machinbe-level or to leave it
settable in a shell with a provided script.
Looked eell done, although in the end to get multiple VS versions on one
machine ... you'd better have one different Windows installation for
each VS ;-)
Re: Installation of Java 1.5.0 corrupts eclipse [message #182135 is a reply to message #182029] Tue, 12 October 2004 12:52 Go to previous message
Eclipse UserFriend
Originally posted by: Andre_Weinand.oti.com

On 12.10.2004 10:08 Uhr, in article ckg34f$1um$1@eclipse.org, "Michael
Moser" <mmo@zurich.ibm.com> wrote:


> BTW: how can one
> tell which JRE is used by eclipse (to run itself, not to compile and
> run/debug other apps)?

Goto menu:
Help > About Eclipse Platform
Press button:
Configuration details
Scroll down until you see something like:
java.runtime.version=1.4.2_05-141.3


--andre
Previous Topic:launching a clas
Next Topic:Eclipse tests
Goto Forum:
  


Current Time: Sun Jul 13 19:47:18 EDT 2025

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

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

Back to the top