On 26.12.10 17:28, siddharth srivastava wrote:
Hi
Is the problem due to some mistake from my side (so that I can take
care of it in future) or is there any other issue ?
This is a problem with the logic selecting the JDKs to use in Derby. You
can work around it by doing any of:
a) Set the required ant properties manually (as suggested by Kathey).
You may have to specify the 1.6 JDK in 'j15lib'.
b) Remove the gjc installation ([1]).
c) Add a supported JDK 1.5 installation.
d) Modify the class called PropertySetter.
Now, the reason why Derby fails to build here is that we are using two
algorithms to identify/find JDKs we can use.
The first algorithm (the newest one) correctly detects that it cannot
use the gcj installation. But since the other algorithm is used as a
fallback mechanism, it is run to find a 1.5 JDK and it incorrectly picks
gjc.
I planned to make the second algorithm run only if doing that is
strictly required (i.e. the first algorithm didn't find a 1.6 nor a 1.5
JDK), but it must have fallen off my plate...
Regards,
--
Kristian
[1] It is not clear to me if what is installed is indeed the complete
gjc or not. In any case, I don't think it's capable to build Derby yet.
(Though for the time being till the issue is sorted out I have shifted
the derby work environment to windows)
I found this part to be relevant to the gcj issue(correct me if I am
wrong):
[setJdkProperties] Setting property java15compile.classpath to
/usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar
printCompilerProperties:
[echo] After setting properties: compilerPropsAlreadySet = true
[echo] After setting properties: compilerLevel16 = 1.6
[echo] After setting properties: jsr169compile.classpath =
/home/siddharth/trunk/classes/stubs/jsr169:/usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar:/home/siddharth/trunk/tools/java/xalan.jar:/home/siddharth/trunk/tools/java/serializer.jar
[echo] After setting properties: j14lib = ${j14lib}
[echo] After setting properties: java14compile.classpath =
/usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar:/home/siddharth/trunk/tools/java/xalan.jar:/home/siddharth/trunk/tools/java/serializer.jar
[echo] After setting properties: j15lib = ${j15lib}
[echo] After setting properties: java15compile.classpath =
/usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar
[echo] After setting properties: j16lib = ${jdk16}/jre/lib
[echo] After setting properties: java16compile.classpath =
/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/about.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/management-agent.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/netx.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/plugin.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/rhino.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/rt.jar
Thanks
--
Siddharth Srivastava
When you have learned to snatch the error code from the trap frame, it
will be time for you to leave.