You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2007/04/16 10:18:14 UTC
DO NOT REPLY [Bug 42132] New: - Rmic task does not allow to specify JDK path
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: dev@ant.apache.org
ReportedBy: christoph.huesler@css.ch
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org