Results 1 to 5 of 5

Thread: Java 7 support?

  1. #1
    pchapin's Avatar
    pchapin is offline Registered User
    Name: Peter C. Chapin
    Organization: Vermont Technical College
    Project: Education
    Join Date
    Dec 2005
    Posts
    19

    Java 7 support?

    I'm attempting to install Ice 3.4.2 for Java on my Ubuntu 11.04 system. I am compiling from source. I'm also using Java 7, update 1. Compilation fails with the following:

    Code:
    ice-compile:
        [mkdir] Created dir: /usr/local/src/Ice-3.4.2/java/depcache
        [javac] Compiling 1228 source files to /usr/local/src/Ice-3.4.2/java/lib
        [javac] /usr/local/src/Ice-3.4.2/java/src/IceInternal/OutgoingConnectionFactory.java:20: error: name clash: put(K#1,V#1) in MultiHashMap and put(K#2,V#2) in HashMap have the same erasure, yet neither overrides the other
        [javac]         put(K key, V value)
        [javac]         ^
        [javac]   where K#1,V#1,K#2,V#2 are type-variables:
        [javac]     K#1 extends Object declared in class MultiHashMap
        [javac]     V#1 extends Object declared in class MultiHashMap
        [javac]     K#2 extends Object declared in class HashMap
        [javac]     V#2 extends Object declared in class HashMap
        [javac] 1 error
    This smells like a Java 7 problem to me. I did successfully compile Ice 3.4.2 for Java on a different Ubuntu 10.10 system using Java 6. Can someone confirm that Java 7 is not supported by Ice for Java at this time? If that is the case, is there a time line for when it will be supported?

    Thanks and keep up the good work. Ice is a great system.

    Peter
    Peter C. Chapin
    Vermont Technical College
    (Using Ice in Education)

  2. #2
    leedm777 is offline Registered User
    Name: David M. Lee
    Organization: Digium
    Project: Asterisk SCF - open source communication framework
    Join Date
    Feb 2011
    Posts
    1
    I ran into the same issue, and wrote a patch for it.

    http://bit.ly/uO5KS3

    You can try it out and see if it works for you.

    --
    David M. Lee
    Digium, Inc. | Software Developer
    445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
    Check us out at: Phone Systems to Power Your Business - VoIP, PBX, IP PBX - DigiumŪ The Asterisk Company & Asterisk- The Open Source Telephony Projects | Asterisk

  3. #3
    pchapin's Avatar
    pchapin is offline Registered User
    Name: Peter C. Chapin
    Organization: Vermont Technical College
    Project: Education
    Join Date
    Dec 2005
    Posts
    19
    Yes, that patch did work for me. Thanks. I did run into a problem later when building the IceGrid administrative tool. Specifically Proguard v4.6 fails with the message

    Code:
    /usr/local/src/Ice-3.4.2/java/build.xml:583: Can't read [/usr/local/src/Ice-3.4.2/java/lib/IceGridGUItemp.jar] (Can't process class [IceGridGUI/AdapterObserverI$1.class] (Unsupported version number [51.0] for class format))
    I guess a new version of Proguard is needed to process the Java 7 class files. I understand that this tool is not essential but it seems like more evidence that Ice isn't Java 7 ready quite yet.

    Peter
    Peter C. Chapin
    Vermont Technical College
    (Using Ice in Education)

  4. #4
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    Proguard 4.7 has support for Java 7, but we have not tested this yet.

  5. #5
    pchapin's Avatar
    pchapin is offline Registered User
    Name: Peter C. Chapin
    Organization: Vermont Technical College
    Project: Education
    Join Date
    Dec 2005
    Posts
    19
    I just tried Proguard 4.7 beta3 and the build of everything was successful. I also tried 'ant test' and that was successful although I'm unclear on how much testing it did. I suppose I should try running the Ice Grid administrative GUI and see how that goes. I'll play with it some more but I seem to be up and running.

    Thanks!
    Peter C. Chapin
    Vermont Technical College
    (Using Ice in Education)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. java:type:java.util.Vector
    By jesse in forum Help Center
    Replies: 1
    Last Post: 04-23-2007, 12:49 PM
  2. Replies: 2
    Last Post: 11-24-2006, 03:03 AM
  3. how can i do without ICESSL support my JAVA
    By wangxin54321 in forum Help Center
    Replies: 1
    Last Post: 04-18-2005, 09:50 PM
  4. SSL support for Java clients?
    By annekat in forum Help Center
    Replies: 12
    Last Post: 04-18-2005, 09:49 PM
  5. Will Ice support Java tiger?
    By Mjollnir in forum Help Center
    Replies: 1
    Last Post: 11-05-2004, 07:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •