Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] Problem with JDK version on Hudson

Hi Christian,

I had the same problem with the MDT Papyrus build on Hudson ( Even when I selected the JVM 1.5 on the JDK Combo, I had java 1.6 used for compilation. 

I have added a String parameter in the build configuration, called JAVA_HOME and that points to the JVM /shared/common/jdk-1.5.0-22.x86_64. Not very clean, but this works... If there is a better solution, I would be happy to fix this issue in my builds also.

Note: Using java VM 1.5, I had a problem when installing SVN connector for buckminster, which requires java 6 for pack200 tool. When the java 1.5 VM is used, you have 'empty jar files' error. I added this line to the Buckminster installation :
<jvmarg value="-Dorg.eclipse.update.jarprocessor.pack200=${org.eclipse.update.jarprocessor.pack200.buckminster}" />, where ${org.eclipse.update.jarprocessor.pack200.buckminster} is the jvm 6 bin folder: /shared/common/sun-jdk1.6.0_21_x64/jre/bin. 


-----Message d'origine-----
De : cross-project-issues-dev-bounces@xxxxxxxxxxx [mailto:cross-project-issues-dev-bounces@xxxxxxxxxxx] De la part de christian waniek
Envoyé : jeudi 7 avril 2011 10:39
À : cross-project-issues-dev@xxxxxxxxxxx
Objet : [cross-project-issues-dev] Problem with JDK version on Hudson


I have a problem with the JDK version on Hudson. I configured the build (cbi-uml2tools-integration) to use the JDK ‘Java 5 R 16 32bit (SUN)’. But the compiled class files say, that they are created with Java 6.

So I used the Hudson-feature to execute shells to print the value of JAVA_HOME to the console. And the result is:

$ no changes detected
[cbi-uml2tools-integration] $ /bin/sh -xe /tmp/
+ echo /shared/common/sun-jdk1.6.0_21_x64
[releng] $ /shared/common/apache-ant-1.7.1/bin/ant -file build.xml -DBUILD_TYPE=N -DPROXY_PORT=9898 -Dbuild.type=N -Dsigning.type=eclipse.remote -Dbuckminster.loglevel=INFO build.and.test
Buildfile: build.xml

So what am I doing to wrong? I have to use JDK 5.

Best Regards

Christian Waniek
This e-mail was created manually.
Please DO respond to the given adress
>>>  chris.waniek@xxxxxxx <<<

Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro!
cross-project-issues-dev mailing list

Back to the top