Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » eclipse.build actor failed - cannot find java.lang.Enum; Java 1.5 compliance preference set
eclipse.build actor failed - cannot find java.lang.Enum; Java 1.5 compliance preference set [message #381341] Sun, 30 November 2008 23:23 Go to next message
Oisin Hurley is currently offline Oisin HurleyFriend
Messages: 204
Registered: July 2009
Senior Member
I've got a build error that seems to indicate the eclipse.build actor
is picking up the wrong version of java (stack trace below), in that
it cannot find java.lang.Enum.

I've set org.eclipse.buckminster.jdt.complianceLevel=1.5; the .classpath
of the plugin project points to the correct JVM 1.5 and the .settings
directory of the plugin has a org.eclipse.jdt.core.prefs with the settings

org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5

I *thought* I had all the bases covered, but apparently not. Is there
somewhere else that I need to instruct the eclipse.build actor to use
java 1.5?

cheers
--oh



[java] init actor: eclipse.build[com.iona.eitools.grinder:osgi.bundle$1.0
..0.qualifier#OSGi#eclipse.build]
[java] INFO: [start
com.iona.eitools.grinder:osgi.bundle$1.0.0.qualifier#OSGi#ec lipse.build]
[java] buckminster.temp=/tmp/buckminster/com.iona.eitools.grinder_1 .0.0
-osgi.bundle/temp
[java] workspace.root=/Users/ohurley/Projects/osstools/fid/trunk/bu ild/
working/build/workspace
[java] target.location=/Users/ohurley/Projects/osstools/fid/trunk/b uild
/working/platform/eclipse
[java] target.os=macosx
[java] buckminster.output.root=/Users/ohurley/Projects/osstools/fid /tru
nk/build/working/updatesite/build
[java] buckminster.version.type=OSGi
[java] target.nl=en_US
[java] buckminster.component=com.iona.eitools.grinder
[java] buckminster.component.type=osgi.bundle
[java] eclipse.home=/Users/ohurley/Projects/osstools/fid/trunk/buil d/wo
rking/build/buckminster
[java] buckminster.version=1.0.0.qualifier
[java] localhost=chutney.local
[java] target.ws=carbon
[java] target.arch=x86
[java] buckminster.home=/Users/ohurley/Projects/osstools/fid/trunk/ com.
iona.eitools.grinder/com.iona.eitools.grinder/
[java] buckminster.output=/Users/ohurley/Projects/osstools/fid/trun k/bu
ild/working/updatesite/build/com.iona.eitools.grinder_1.0.0- osgi.bundle
[java] Doing full workspace refresh
[java] Waiting for jobs to end
[java] org.eclipse.core.runtime.CoreException: The project was not built
since its build path is incomplete. Cannot find the class file for
java.lang.Enum. Fix the build path then try building this project
[java] at org.eclipse.buckminster.core.internal.actor.AbstractBuildIn
tegrationActor.internalPerform(AbstractBuildIntegrationActor .java:47)
[java] at org.eclipse.buckminster.core.actor.AbstractActor.perform(Ab
stractActor.java:134)
[java] at org.eclipse.buckminster.core.internal.actor.PerformManager.
perform(PerformManager.java:150)
[java] at org.eclipse.buckminster.core.internal.actor.PerformManager.
perform(PerformManager.java:79)
[java] at
org.eclipse.buckminster.core.commands.Perform.internalRun(Pe rform.java:177)
[java] at org.eclipse.buckminster.core.commands.WorkspaceCommand.run(
WorkspaceCommand.java:60)
[java] at org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(Ab
stractCommand.java:80)
[java] at
org.eclipse.buckminster.cmdline.Headless.run(Headless.java:1 88)
[java] at
org.eclipse.buckminster.cmdline.Headless.run(Headless.java:1 22)
[java] at
org.eclipse.buckminster.cmdline.Headless.start(Headless.java :113)
[java] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclip
seAppHandle.java:193)
[java] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLaunche
r.runApplication(EclipseAppLauncher.java:110)
[java] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLaunche
r.start(EclipseAppLauncher.java:79)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:382)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingM
ethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
[java] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
[java] at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
[java] at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
[java] The project was not built since its build path is incomplete.
Cannot find the class file for java.lang.Enum. Fix the build path then try
building this project



--
oisin hurley
oisinh.wordpress.com
Re: eclipse.build actor failed - cannot find java.lang.Enum; Java 1.5 compliance preference set [message #381343 is a reply to message #381341] Mon, 01 December 2008 08:20 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Oisin,
I honestly don't know what's causing this. Could it be that the
workspace you're using doesn't have anything but a Java 1.4 VM defined?

- thomas


Oisin Hurley wrote:
> I've got a build error that seems to indicate the eclipse.build actor
> is picking up the wrong version of java (stack trace below), in that
> it cannot find java.lang.Enum.
>
> I've set org.eclipse.buckminster.jdt.complianceLevel=1.5; the .classpath
> of the plugin project points to the correct JVM 1.5 and the .settings
> directory of the plugin has a org.eclipse.jdt.core.prefs with the settings
>
> org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
> org.eclipse.jdt.core.compiler.compliance=1.5
>
> I *thought* I had all the bases covered, but apparently not. Is there
> somewhere else that I need to instruct the eclipse.build actor to use
> java 1.5?
>
> cheers
> --oh
>
>
>
> [java] init actor: eclipse.build[com.iona.eitools.grinder:osgi.bundle$1.0
> .0.qualifier#OSGi#eclipse.build]
> [java] INFO: [start
> com.iona.eitools.grinder:osgi.bundle$1.0.0.qualifier#OSGi#ec lipse.build]
> [java] buckminster.temp=/tmp/buckminster/com.iona.eitools.grinder_1 .0.0
> -osgi.bundle/temp
> [java] workspace.root=/Users/ohurley/Projects/osstools/fid/trunk/bu ild/
> working/build/workspace
> [java] target.location=/Users/ohurley/Projects/osstools/fid/trunk/b uild
> /working/platform/eclipse
> [java] target.os=macosx
> [java] buckminster.output.root=/Users/ohurley/Projects/osstools/fid /tru
> nk/build/working/updatesite/build
> [java] buckminster.version.type=OSGi
> [java] target.nl=en_US
> [java] buckminster.component=com.iona.eitools.grinder
> [java] buckminster.component.type=osgi.bundle
> [java] eclipse.home=/Users/ohurley/Projects/osstools/fid/trunk/buil d/wo
> rking/build/buckminster
> [java] buckminster.version=1.0.0.qualifier
> [java] localhost=chutney.local
> [java] target.ws=carbon
> [java] target.arch=x86
> [java] buckminster.home=/Users/ohurley/Projects/osstools/fid/trunk/ com.
> iona.eitools.grinder/com.iona.eitools.grinder/
> [java] buckminster.output=/Users/ohurley/Projects/osstools/fid/trun k/bu
> ild/working/updatesite/build/com.iona.eitools.grinder_1.0.0- osgi.bundle
> [java] Doing full workspace refresh
> [java] Waiting for jobs to end
> [java] org.eclipse.core.runtime.CoreException: The project was not built
> since its build path is incomplete. Cannot find the class file for
> java.lang.Enum. Fix the build path then try building this project
> [java] at org.eclipse.buckminster.core.internal.actor.AbstractBuildIn
> tegrationActor.internalPerform(AbstractBuildIntegrationActor .java:47)
> [java] at org.eclipse.buckminster.core.actor.AbstractActor.perform(Ab
> stractActor.java:134)
> [java] at org.eclipse.buckminster.core.internal.actor.PerformManager.
> perform(PerformManager.java:150)
> [java] at org.eclipse.buckminster.core.internal.actor.PerformManager.
> perform(PerformManager.java:79)
> [java] at
> org.eclipse.buckminster.core.commands.Perform.internalRun(Pe rform.java:177)
> [java] at org.eclipse.buckminster.core.commands.WorkspaceCommand.run(
> WorkspaceCommand.java:60)
> [java] at org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(Ab
> stractCommand.java:80)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.run(Headless.java:1 88)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.run(Headless.java:1 22)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.start(Headless.java :113)
> [java] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclip
> seAppHandle.java:193)
> [java] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLaunche
> r.runApplication(EclipseAppLauncher.java:110)
> [java] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLaunche
> r.start(EclipseAppLauncher.java:79)
> [java] at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:382)
> [java] at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingM
> ethodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:585)
> [java] at
> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> [java] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> [java] at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> [java] at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
> [java] The project was not built since its build path is incomplete.
> Cannot find the class file for java.lang.Enum. Fix the build path then try
> building this project
>
>
>
Re: eclipse.build actor failed - cannot find java.lang.Enum; Java 1.5 compliance preference set [message #381418 is a reply to message #381343] Mon, 01 December 2008 11:16 Go to previous message
Oisin Hurley is currently offline Oisin HurleyFriend
Messages: 204
Registered: July 2009
Senior Member
Hi Thomas,

Thomas Hallgren wrote:
> I honestly don't know what's causing this. Could it be that the
> workspace you're using doesn't have anything but a Java 1.4 VM defined?

I loaded the headless build workspace into an IDE instance, and checked
the Java > Compiler preference. All were at 1.5, all environment variables
at 1.5, all other preferences set to 1.5, all runtime environments set
to 1.5 :)

Building on both Mac and Windows shows the same behaviour. I'll look
to see how to switch on debug logging for the platform build, to see
if anything turns up.

--
oisin hurley at progress
oisinh.wordpress.com
Previous Topic:Import-Package and feature requirements
Next Topic:targetPlatformPath and installLocation
Goto Forum:
  


Current Time: Sat Apr 20 00:05:01 GMT 2024

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

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

Back to the top