DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42132>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42132

           Summary: Rmic task does not allow to specify JDK path
           Product: Ant
           Version: 1.7.0
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


The rmic task does not allow to specify the jdk to use when executing rmic. 

The only option is to set JAVA_HOME or CLASSPATH, which sometimes is simply not 
possible (e.g., standard version is 1.4.2, but one project needs 1.5 -> 
impossible to build automatically in the same standard environment).

Steps to reproduce the problem:

1. get some example project using rmi (there are some in the java tutorials)
2. set JAVA_HOME and/or CLASSPATH to a jdk 1.4 installation
3. compile the classes with javac from 1.5 
(executable="${path.to.1.5}/bin/javac")
4. execute rmic
5. see "error: Invalid class file format in /some/path/here/Foo.class.  The 
major.minor version '49.0' is too recent for this tool to understand."

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to