Results 1 to 3 of 3
  1. #1
    thgnss is offline Member
    Join Date
    Aug 2009
    Posts
    2
    Rep Power
    0

    Default eclipse 3.4.2 and rmic (jdk1.3 compliant)

    I all, I'm new to java and to eclipse. I had downloaded eclipse 3.4.2 and I'm trying to run a simple rmi sample download from sun site for jsse 1.0.3 because I'm interested on jdk 1.3 development.
    It seem the new project created, rmiTest, has labrary in order to using 1.3 compiler and jre 1.3. I have specified this preferences also in the windows tab in order to refer to eclipse general preferences.
    The next step was that of copy the source code download into eclipse and now I wanna run, so tha first step is to generate stub and skeletron for my server class, HelloImpl, using rmic. I have created the following xml file rmic.xml:
    <project name="rmiTest" basedir="." default="rmic">
    <property name="bin.dir" value="bin" />
    <target name="rmic">

    <rmic stubversion="1.1" base="${bin.dir}" classname="HelloImpl">
    <classpath>

    <pathelement path="${bin.dir}" />

    <pathelement path="C:\Program Files\Java\jdk1.6.0_13\lib\tools.jar" />

    </classpath>
    </rmic>
    </target>
    </project>


    but when I try to run it as Ant Build the following compiler error raise:
    Buildfile: C:\Users\ste\workspace\rmiTest\rmic.xml

    rmic:
    [rmic] RMI Compiling 1 class to C:\Users\ste\workspace\rmiTest\bin
    [rmic] error: Invalid class file format in C:\Program Files\Java\jre6\lib\rt.jar(java/rmi/server/UnicastRemoteObject.class). The major.minor version '49.0' is too recent for this tool to understand.
    [rmic] error: Class java.rmi.server.UnicastRemoteObject not found in class HelloImpl.
    [rmic] 2 errors

    BUILD FAILED


    What is wrong? Also setting JAVA_HOME to C:\jdk1.3.20 I have the same error. Some suggestion?
    thanks

  2. #2
    vkorenev is offline Member
    Join Date
    Aug 2009
    Location
    Kharkov, Ukraine
    Posts
    29
    Rep Power
    0

    Default

    <pathelement path="C:\Program Files\Java\jdk1.6.0_13\lib\tools.jar" />
    Isn't this a path to Java 6?

  3. #3
    thgnss is offline Member
    Join Date
    Aug 2009
    Posts
    2
    Rep Power
    0

    Default

    yes, I was wrong, but also commenting that line I have the same output

Similar Threads

  1. Difference between jdk1.5 and jdk1.6
    By pradnya in forum New To Java
    Replies: 10
    Last Post: 12-08-2010, 12:52 PM
  2. How to uninstall jdk1.4 or jdk1.5
    By ran_sushmi in forum Advanced Java
    Replies: 0
    Last Post: 07-20-2009, 01:45 PM
  3. Differnce Between JDK1.5 to JDK1.6
    By kallamrajareddy in forum New To Java
    Replies: 2
    Last Post: 03-12-2009, 08:43 AM
  4. JNLP - Swing application compiled in jdk1.5 not working in jdk1.6
    By mahendra.athneria in forum AWT / Swing
    Replies: 4
    Last Post: 01-20-2009, 09:27 PM
  5. What is JDK1.5?
    By pawankumarom in forum New To Java
    Replies: 2
    Last Post: 09-05-2008, 08:41 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
  •