You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mark Williamson <Ma...@Appropria.com> on 2000/08/14 17:50:44 UTC
can't find class Javac
Hi,
I am just switching my project over to using ant and I'm having
a few problems running it on my linux box. Ant does not seem
to be able to load com.sun.tools.javac.Main.
now - tools.jar IS on the classpath. The available task
<available classname="com.sun.tools.javac.Main" property="whatever" />
fails (ie. noclassdeffound) and most mysteriously
if I run the following test code
public class test
{
public void poo()
{
try
{
Class.forName("com.sun.tools.javac.Main");
System.out.println("And the problems is.....");
}
catch( Exception e)
{
System.out.println("There has been an error:" +
e.getMessage());
}
}
public static void main(String[] args) throws Exception
{
test t= new test();
t.poo();
}
}
it works fine. Can anyone help me with this or point me
towards a resource that has info on this
cheers
Mark Williamson
Senior Software Engineer
appropria inc
http://www.appropria.com
TEL - +44 (0)1698 543115
***************************************
Please note that information in this e-mail is confidential and is intended
for the use of the addressee only. It may be legally privileged. If you have
received the e-mail in error, any copying, use or dissemination of it is
strictly prohibited and you should inform us immediately of its receipt.
***************************************
Re: can't find class Javac
Posted by Jesse Glick <Je...@netbeans.com>.
Mark Williamson wrote:
> I am just switching my project over to using ant and I'm having
> a few problems running it on my linux box. Ant does not seem
> to be able to load com.sun.tools.javac.Main.
>
> now - tools.jar IS on the classpath. [snip]
Try running ant with -verbose to see what classpath it is really using.
(E.g. maybe the startup script is accidentally invoking Kaffe or
something.)
-Jesse
--
Jesse Glick <ma...@netbeans.com>
NetBeans, Open APIs <http://www.netbeans.org/>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR