ANT rmic task failing from Eclipse [message #94636] |
Thu, 11 September 2003 11:55  |
Eclipse User |
|
|
|
Originally posted by: mewing4.csc.com
Hi:
I'm trying to set up a project so that RMI *_Skel and *_Stub files are
generated automatically as part of a build, but I'm having a problem.
My environment is: OS - Win2000, Eclipse v. 2.1.1. I've created a test
project and defined the following build.xml file in it:
<?xml version="1.0" encoding="UTF-8"?>
<project name="HELLO.makeremote" default="makeremote" basedir=".">
<target name="makeremote" description="Build _Skel and _Stub
files">
<rmic classname="examples.hello.HelloImpl" base="bin"/>
</target>
</project>
I've set this up as a project builder and it is being invoked as
expected, however I get an ant error from the rmic task. Here's the
output to the console
Buildfile: C:\Tools\eclipse\workspace\Hello\build.xml
makeremote:
[rmic] RMI Compiling 1 class to
C:\Tools\eclipse\workspace\Hello\bin
[rmic] BUILD FAILED:
file:C:/Tools/eclipse/workspace/Hello/build.xml:5: Cannot use SUN
rmic, as it is not available. A common solution is to set the
environment variable JAVA_HOME or CLASSPATH.
Total time: 671 milliseconds
My JAVA_HOME and CLASSPATH environment variables look okay to me and
if I invoke ant from the Windows command prompt everything works just
peachy. It only fails when ant is lauched through Eclise.
Can anybody tell me what's going on here?
Mike
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 1.08999 seconds