[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tmf-dev] [modeling-dev] Athena OS X Local Build
|
Prefer if you use the dash-dev@xxxxxxxxxxx list, but I'll reply here
anyway. modeling-dev@ will send to ALL the modeling projects, which
might be a bit too wide an audience for this.
Object not found [1] just means that:
a) you have plugins with MANIFEST.MFs which don't declare BREEs
b) your J2SE-* variables are missing jars which you need included on the
bootclasspath. If you open a bug and attach a patch (it's easy to test
it locally) [2] I can include more jars in the default bootclasspath
entry so everyone benefits.
c) you're using a 32-bit OS with a 64-bit Eclipse, or some similar
mismatch. If you're running a 64-bit Eclipse, you need a 64-bit JVM [3].
AFAIK your only option for Java on Mac is to install it from the
apple.com site (or perhaps from MacPorts). I don't think Sun provides
Mac downloads.
Note too that your tests will not run on MacOSX or Windows in a
headlessly-integrated-as-part-of-the-build way [4]. They should run in
Eclipse using the AntRunner, but that's a different mechanism.
--
[1]http://wiki.eclipse.org/Common_Build_Infrastructure/Getting_Started/FAQ#My_build_complains_it_can.27t_find_java.lang.Object._Seriously.2C_WTF.3F
[2]https://bugs.eclipse.org/bugs/show_bug.cgi?id=287240
[3]http://wiki.eclipse.org/IRC_FAQ#I_just_installed_Eclipse_on_my_64-bit_system.2C_but_it_does_not_start._What_is_the_problem.3F
[4]https://bugs.eclipse.org/bugs/show_bug.cgi?id=268420
N
Miles Parker wrote:
Nick, et.al., I hope this is a decent place to put this..
I'm having a heck of a time figuring out how to get a local build going.
I'm getting the java.lang.Object not found issue on some plugins
(seriously, WTF? :D :D) but I'm willing to believe that is some kind of
project configuration issue on my side. When I greatly simplify the
build, I'm left with the compiler not being able to resolve just
java.lang.Enum, which leads me to believe that somehow either we're
channeling JDK 1.4 classes (??) or that Enum is somewhere unexpected in
Mac JDK or there is something going on with Eclipse javac setup... I'm
using the MWE build-local-macosx.properties as a starting point..and
Cocoa 64 3.5.1 RC1 is my IDE. So in the original version it looks like:
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
JAVA60_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
JAVA50_64_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
JAVA50_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
JAVA14_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
JavaSE-1.6=${JAVA60_HOME}/jre/lib/rt.jar:${JAVA60_HOME}/jre/lib/annotation.jar:${JAVA60_HOME}/jre/lib/beans.jar:${JAVA60_HOME}/jre/lib/ibmorbapi.jar:${JAVA60_HOME}/jre/lib/java.util.jar:${JAVA60_HOME}/jre/lib/jlm.jar:${JAVA60_HOME}/jre/lib/logging.jar:${JAVA60_HOME}/jre/lib/resources.jar:${JAVA60_HOME}/jre/lib/rt.jar:${JAVA60_HOME}/jre/lib/security.jar:${JAVA60_HOME}/jre/lib/sql.jar:${JAVA60_HOME}/jre/lib/vm.jar:${JAVA60_HOME}/jre/lib/xmldsigfw.jar:${JAVA60_HOME}/jre/lib/xml.jar:${JAVA60_HOME}/jre/lib/jsse.jar:${JAVA60_HOME}/lib/dt.jar:${JAVA60_HOME}/lib/ui.jar:${JAVA60_HOME}/../Classes/dt.jar:${JAVA60_HOME}/../Classes/classes.jar:${JAVA60_HOME}/../Classes/jsse.jar
J2SE-1.5=${JAVA50_HOME}/jre/lib/rt.jar:${JAVA50_HOME}/jre/lib/vm.jar:${JAVA50_HOME}/jre/lib/core.jar:${JAVA50_HOME}/jre/lib/xml.jar:${JAVA50_HOME}/jre/lib/graphics.jar:${JAVA50_HOME}/jre/lib/server.jar:${JAVA50_HOME}/jre/lib/ibmorbapi.jar:${JAVA50_HOME}/jre/lib/security.jar:${JAVA50_HOME}/jre/lib/classes.jar:${JAVA50_HOME}/jre/lib/jsse.jar:${JAVA50_HOME}/../Classes/dt.jar:${JAVA50_HOME}/../Classes/classes.jar:${JAVA50_HOME}/../Classes/jsse.jar
J2SE-1.4=${JAVA14_HOME}/lib/rt.jar:${JAVA14_HOME}/jre/lib/rt.jar:${JAVA14_HOME}/jre/lib/core.jar:${JAVA14_HOME}/jre/lib/xml.jar:${JAVA14_HOME}/jre/lib/graphics.jar:${JAVA14_HOME}/jre/lib/server.jar:${JAVA14_HOME}/jre/lib/ibmorbapi.jar:${JAVA14_HOME}/jre/lib/security.jar:${JAVA14_HOME}/jre/lib/classes.jar:${JAVA14_HOME}/jre/lib/jsse.jar:${JAVA14_HOME}/../Classes/dt.jar:${JAVA14_HOME}/../Classes/classes.jar:${JAVA14_HOME}/../Classes/jsse.jar
And I had actually simplified this to the below, but for now I'm
assuming that the above is more likely to work. My thinking is that with
OSX Java Framework there is no /lib/rt.jar, right? So those shouldn't be
in there at all. Or should I be installing the Sun SDK JRE and jars as well?
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
JAVA_CLASSES=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes
Java-All=${JAVA_CLASSES}/classes.jar:${JAVA_CLASSES}/ui.jar:${JAVA_CLASSES}/charsets.jar:${JAVA_CLASSES}/dt.jar:${JAVA_CLASSES}/jce.jar:${JAVA_CLASSES}/jconsole.jar:${JAVA_CLASSES}/jsse.jar:${JAVA_CLASSES}/laf.jar
JavaSE-1.6=${Java-All}
J2SE-1.5=${Java-All}
J2SE-1.4=${Java-All}
Anyway, here's what I'm getting from what I have up on
org.eclipse.amp.releng right now..everything is good until..
[build] @dot:
[build] [mkdir] Created dir:
/Developer/builds/I200909011912/eclipse/plugins/org.eclipse.amp.axf.core/@dot
[build] [javac] Compiling 13 source files to
/Developer/builds/I200909011912/eclipse/plugins/org.eclipse.amp.axf.core/@dot
[build] [javac] ----------
[build] [javac] 1. ERROR in
/Developer/builds/I200909011912/eclipse/plugins/org.eclipse.amp.axf.core/src/org/eclipse/amp/axf/core/EngineControl.java
(at line 1)
[build] [javac] /**
[build] [javac] ^
[build] [javac] The type java.lang.Enum cannot be resolved. It
is indirectly referenced from required .class files
[build] [javac] ----------
[build] [javac] 2. ERROR in
/Developer/builds/I200909011912/eclipse/plugins/org.eclipse.amp.axf.core/src/org/eclipse/amp/axf/core/EngineControl.java
(at line 1)
[build] [javac] /**
[build] [javac] ^
[build] [javac] The type Enum is not generic; it cannot be
parameterized with arguments <EngineControl>
[build] [javac] ----------
[build] [javac] 2 problems (2 errors)
[build] [javac] Compilation failed. Compiler errors are
available in
/Developer/builds/I200909011912/eclipse/plugins/org.eclipse.amp.axf.core/@dot.log
<mailto:/Developer/builds/I200909011912/eclipse/plugins/org.eclipse.amp.axf.core/@dot.log>
------------------------------------------------------------------------
_______________________________________________
modeling-dev mailing list
modeling-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/modeling-dev
------------------------------------------------------------------------
_______________________________________________
tmf-dev mailing list
tmf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tmf-dev
--
Nick Boldt :: http://nick.divbyzero.com
Release Engineer :: Eclipse Modeling & Dash Athena