Installation of Java 1.5.0 corrupts eclipse [message #182013] |
Tue, 12 October 2004 03:42  |
Eclipse User |
|
|
|
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 #182073 is a reply to message #182042] |
Tue, 12 October 2004 06:38   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04654 seconds