Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 20413 invoked from network); 26 Jul 2002 02:32:47 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 26 Jul 2002 02:32:47 -0000 Received: (qmail 27517 invoked by uid 97); 26 Jul 2002 02:33:03 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 27500 invoked by uid 97); 26 Jul 2002 02:33:02 -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 27488 invoked by uid 98); 26 Jul 2002 02:33:01 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <3D40B466.5040107@metrowalker.com> Date: Fri, 26 Jul 2002 10:31:02 +0800 From: Arion Yu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: ant-user@jakarta.apache.org Subject: Problem on task javac Content-Type: text/plain; charset=Big5 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 Hi everyone, I use ant to build a project, and jar it up as a library: And later on, I execute the weblogic EJB Compiler to compile a EJB JAR It gives the following error: [java] error: Invalid class file format in /export/home/users/arion/mm-coup on/ejbcgen/com/metrowalker/mm/model/ResourceAllocationException.class. The majo r.minor version '47.0' is too recent for this tool to understand. The error gones if I explicitly compile the class with command line: /usr/j2se/bin/javac -classpath $WL_HOME/lib/log4j.jar:$WL_HOME/lib/weblogic.jar -d ../classes/ com/metrowalker/mm/model/ResourceAllocationException.java Please suggest me some idea on this issue. Thanks More information: mwalker1% java -version java version "1.3.1_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02) Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode) mwalker1% echo $JAVA_HOME /usr/j2se mwalker1% $JAVA_HOME/bin/java -version java version "1.3.1_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02) Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode) mwalker1% echo $ANT_HOME /usr/local/jakarta-ant-1.5 mwalker1% ant -version Apache Ant version 1.5 compiled on July 9 2002 mwalker1% cat ResourceAllocationException.java package com.metrowalker.mm.model; public class ResourceAllocationException extends Exception { public ResourceAllocationException() { super("not enough resource to allocate"); } public ResourceAllocationException(String msg) { super(msg); } } -- To unsubscribe, e-mail: For additional commands, e-mail: