Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-14-2006
Andreas Scherer Andreas Scherer is offline
Registered User
 
Name: Andreas Scherer
Organization: Private Linux Site
Project: Evaluating Ice-C++, Ice-Java, Ice-Python, Ice-Ruby
 
Join Date: Mar 2005
Location: Berlin, Germany
Posts: 47
IceEJ-1.1.0 with JDK 1.5.0?

Hi,

I'm in the process of adapting the icee.spec file for the new release of IceE 1.1.0. On OpenSUSE, JDK is available in version 1.4.2 a/o 1.5.0 (to be switched with "update-alternatives --config java(c)").

Although I'm not really familiar with any version-related issues, I would like to ask for the reason why "target" is explicitly required to be "1.1" in many of the build.xml files in IceEJ-1.1.0 (most prominently the top-most ant file, but also in several subdirectories of demo and test). Running "ant" in the IceEJ-1.1.0 directory results in the error message

[javac] Compiling 182 source files to /home/andreas/IceEJ-1.1.0/jdk/lib
[javac] javac: target release 1.1 conflicts with default source release 1.5

when JDK 1.5.0 is active.

It seems that (at least locally) I have two choices when building the RPM packages (Translator and C++ being unaffected, of course).

(1) After switching to JDK 1.4.2, "rpmbuild -ba icee.spec" runs to completion (after replacing version string "1.0.0" with "1.1.0" in the spec file).
(2a) When JDK 1.5.0 is active, I can apply a suitable IceEJ-1.1.0.patch file, which replaces the target version "1.1" with "1.5" in the relevant build.xml files. "rpmbuild" also completes its task successfully.
(2b) In order to use JDK 1.4.2 and 1.5.0 interchangeably (at least when building the RPM packages), I can apply a suitable IceEJ-1.1.0.patch file that simply removes all 'target="1.1"' entries.

Any comments (or even objections to my approach)?

Last edited by Andreas Scherer : 03-14-2006 at 05:34 PM.
Reply With Quote
  #2 (permalink)  
Old 03-14-2006
beagles's Avatar
beagles beagles is offline
ZeroC Staff
 
Name: Brent Eagles
Organization: ZeroC, Inc
Project: Ice Developer
 
Join Date: Feb 2003
Location: Newfoundland
Posts: 110
We used the target attribute in IceE for Java in an attempt to make sure that the generated class files would run on all of our supported Java platforms. However, the 'target' attribute doesn't really work as expected and will be removed in future releases. In light of this, option (2b) is probably what you want for building RPM packages.
Reply With Quote
  #3 (permalink)  
Old 03-15-2006
Andreas Scherer Andreas Scherer is offline
Registered User
 
Name: Andreas Scherer
Organization: Private Linux Site
Project: Evaluating Ice-C++, Ice-Java, Ice-Python, Ice-Ruby
 
Join Date: Mar 2005
Location: Berlin, Germany
Posts: 47
OK, I'll refine icee.spec accordingly and post an updated version ASAP together with the (temporary) patch.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 08:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.