Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356188 - 'building workspace' has encountered a problem.
Summary: 'building workspace' has encountered a problem.
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: JDT
Classification: Eclipse Project
Component: APT (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Generic inbox for the JDT-APT component CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-30 08:28 EDT by directory CLA
Modified: 2011-08-30 12:27 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description directory CLA 2011-08-30 08:28:54 EDT
-- Configuration Details --
Product: Eclipse 1.4.0.20110609-1120 (org.eclipse.epp.package.java.product)
Installed Features:
 org.eclipse.jdt 3.7.0.v20110520-0800-7z8gFchFMTdFYKuLqBLqRja9B15B

 
 
 'building workspace' has encountered a problem.
 Cannot create a new project (Scala) into Eclipse.
Comment 1 Remy Suen CLA 2011-08-30 08:33:17 EDT
(In reply to comment #0)
>  'building workspace' has encountered a problem.
>  Cannot create a new project (Scala) into Eclipse.

Can you create other projects? Like Java projects?
Comment 2 directory CLA 2011-08-30 08:42:11 EDT
Hey Remy,

Yes. Java projects can be created.
only Scala new projects make me Error.
Comment 3 directory CLA 2011-08-30 08:43:33 EDT
ERROR LOG:

Errors occurred during the build.
Error instantiating builder 'ch.epfl.lamp.sdt.core.scalabuilder'.
Plug-in "ch.epfl.lamp.sdt.core" was unable to instantiate class "scala.tools.eclipse.ScalaBuilder".
Could not initialize class scala.tools.eclipse.contribution.weaving.jdt.builderoptions.ScalaJavaBuilder
Plug-in "ch.epfl.lamp.sdt.core" was unable to instantiate class "scala.tools.eclipse.ScalaBuilder".
Could not initialize class scala.tools.eclipse.contribution.weaving.jdt.builderoptions.ScalaJavaBuilder
Comment 4 Remy Suen CLA 2011-08-30 08:47:53 EDT
Please open a bug with the developers of the Scala plug-in.
Comment 5 directory CLA 2011-08-30 08:51:07 EDT
An exception stack trace is not available.
Session data:
eclipse.buildId=I20110613-1736
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=iw_IL
Framework arguments:  -product org.eclipse.epp.package.java.product -XXMaxPermSize 256m
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product -XXMaxPermSize 256m

-----------------------
Plug-in "ch.epfl.lamp.sdt.core" was unable to instantiate class "scala.tools.eclipse.ScalaBuilder".
java.lang.NoClassDefFoundError: Could not initialize class scala.tools.eclipse.contribution.weaving.jdt.builderoptions.ScalaJavaBuilder
	at scala.tools.eclipse.ScalaBuilder.<init>(ScalaBuilder.scala:24)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
	at org.eclipse.core.internal.events.BuildManager.instantiateBuilder(BuildManager.java:896)
	at org.eclipse.core.internal.events.BuildManager.initializeBuilder(BuildManager.java:849)
	at org.eclipse.core.internal.events.BuildManager.getBuilder(BuildManager.java:538)
	at org.eclipse.core.internal.events.BuildManager.getBuilder(BuildManager.java:567)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:237)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
session data:
eclipse.buildId=I20110613-1736
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=iw_IL
Framework arguments:  -product org.eclipse.epp.package.java.product -XXMaxPermSize 256m
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product -XXMaxPermSize 256m


------------
Error instantiating builder 'ch.epfl.lamp.sdt.core.scalabuilder'.

org.eclipse.core.runtime.CoreException: Plug-in "ch.epfl.lamp.sdt.core" was unable to instantiate class "scala.tools.eclipse.ScalaBuilder".
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:188)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
	at org.eclipse.core.internal.events.BuildManager.instantiateBuilder(BuildManager.java:896)
	at org.eclipse.core.internal.events.BuildManager.initializeBuilder(BuildManager.java:849)
	at org.eclipse.core.internal.events.BuildManager.getBuilder(BuildManager.java:538)
	at org.eclipse.core.internal.events.BuildManager.getBuilder(BuildManager.java:567)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:237)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class scala.tools.eclipse.contribution.weaving.jdt.builderoptions.ScalaJavaBuilder
	at scala.tools.eclipse.ScalaBuilder.<init>(ScalaBuilder.scala:24)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
	... 16 more

Session data:
eclipse.buildId=I20110613-1736
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=iw_IL
Framework arguments:  -product org.eclipse.epp.package.java.product -XXMaxPermSize 256m
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product -XXMaxPermSize 256m
Comment 6 directory CLA 2011-08-30 08:54:04 EDT
What did you mean?
didn't understand.
Comment 7 Remy Suen CLA 2011-08-30 08:56:32 EDT
(In reply to comment #6)
> What did you mean?
> didn't understand.

Your problem appears to be a bug with the Scala plug-in. Please open a bug with the developers of the Scala plug-in. Eclipse.org's Bugzilla system is not the place to open bugs encountered with the Scala plug-in.
Comment 8 Walter Harley CLA 2011-08-30 12:27:25 EDT
To elaborate on Remy's comment: Eclipse is a framework, that many other developers build upon by adding plug-ins. I don't know who provides the Scala plug-ins, but that's not part of Eclipse itself, it comes from somewhere else and the Eclipse developers don't have any way of testing or fixing bugs there.  So you need to report this bug to wherever you got the Scala plug-ins from, using their bug tracking system.