Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 99710 invoked from network); 18 Jan 2003 10:11:26 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 18 Jan 2003 10:11:26 -0000 Received: (qmail 263 invoked by uid 97); 18 Jan 2003 10:12:53 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 247 invoked by uid 97); 18 Jan 2003 10:12:52 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 1429 invoked by uid 98); 17 Jan 2003 15:44:32 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3E282431.2060203@psynapsetech.net> Date: Fri, 17 Jan 2003 10:41:37 -0500 From: john guthrie User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: IllegalAccessException running main References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N that's it, it wasn't. thanks. makes sense too, since i wasn't forking a new jvm. again, thanks! john Keith Hatton wrote: > Is your "Main" class declared public? > > > -----Original Message----- > From: john guthrie [mailto:jguthrie@psynapsetech.net] > Sent: 16 January 2003 21:35 > To: ant-user@jakarta.apache.org > Subject: IllegalAccessException running main > > > maybe not an ant problem, but here's my setup: > from build.xml --- > > > > > > > from Main.java --- > static public void main(String args[]) throws Exception { > ... > } > > from my attempt to run 'exec' target --- > local> ant exec > Buildfile: build.xml > > init: > > compile: > [javac] Compiling 32 source and 0 arg files to /home/jguthrie/dest > > exec: > [java] java.lang.IllegalAccessException: Class > org.apache.tools.ant.taskdefs.ExecuteJava can not access a member of > class Main with modifiers "public static" > > BUILD SUCCESSFUL > Total time: 25 seconds > > how can i get an IllegalAccessException on a "public static"? > > thanks. > john > p.s. more oddities when i try to search for "IllegalAccessException" in > the archive (http://marc.theaimsgroup.com/?l=ant-user). i seem to get > kicked out of the search section of ant-users entirely. > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: