public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-java] Error compiling ant-tasks
@ 2006-08-05  9:04 Jan Meier
  2006-08-05 10:18 ` Miroslav Šulc
  2006-08-05 15:00 ` Grobian
  0 siblings, 2 replies; 3+ messages in thread
From: Jan Meier @ 2006-08-05  9:04 UTC (permalink / raw
  To: gentoo-java

[-- Attachment #1: Type: text/plain, Size: 1376 bytes --]

Hello,

I get the following error when I try to emerge ant-tasks:

>>> Compiling source 
in /var/tmp/portage/ant-tasks-1.6.5-r2/work/apache-ant-1.6.5 ...
Buildfile: build.xml

prepare:

check_for_optional_packages:

BUILD FAILED
java.lang.UnsupportedClassVersionError: org/mozilla/javascript/Scriptable 
(Unsupported major.minor version 49.0)

Total time: 3 seconds
>>> Source compiled.
>>> Test phase [not enabled]: dev-java/ant-tasks-1.6.5-r2

>>> Install ant-tasks-1.6.5-r2 into /var/tmp/portage/ant-tasks-1.6.5-r2/image/ 
category dev-java

!!! ERROR: dev-java/ant-tasks-1.6.5-r2 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_install
  ebuild.sh, line 1013:   Called src_install
  ant-tasks-1.6.5-r2.ebuild, line 80:   Called 
java-pkg_dojar 'build/lib/ant-*.jar'
  java-utils-2.eclass, line 197:   Called die

!!! build/lib/ant-*.jar does not exist
!!! If you need support, post the topmost build error, and the call stack if 
relevant.

!!! When you file a bug report, please include the following information:
GENTOO_VM=blackdown-jdk-1.4.2  CLASSPATH="" 
JAVA_HOME="/opt/blackdown-jdk-1.4.2.03"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info


Any suggestions how I can solve this problem?

Regards
Jan

-- 
Get my public key from: www.codejunky.org/codejunky.asc

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-java] Error compiling ant-tasks
  2006-08-05  9:04 [gentoo-java] Error compiling ant-tasks Jan Meier
@ 2006-08-05 10:18 ` Miroslav Šulc
  2006-08-05 15:00 ` Grobian
  1 sibling, 0 replies; 3+ messages in thread
From: Miroslav Šulc @ 2006-08-05 10:18 UTC (permalink / raw
  To: gentoo-java

[-- Attachment #1: Type: text/plain, Size: 1500 bytes --]

Hi Jan,

I think you should run java-1.5-fixer and then try again.

Miroslav

Jan Meier wrote:
> Hello,
>
> I get the following error when I try to emerge ant-tasks:
>
>   
>>>> Compiling source 
>>>>         
> in /var/tmp/portage/ant-tasks-1.6.5-r2/work/apache-ant-1.6.5 ...
> Buildfile: build.xml
>
> prepare:
>
> check_for_optional_packages:
>
> BUILD FAILED
> java.lang.UnsupportedClassVersionError: org/mozilla/javascript/Scriptable 
> (Unsupported major.minor version 49.0)
>
> Total time: 3 seconds
>   
>>>> Source compiled.
>>>> Test phase [not enabled]: dev-java/ant-tasks-1.6.5-r2
>>>>         
>
>   
>>>> Install ant-tasks-1.6.5-r2 into /var/tmp/portage/ant-tasks-1.6.5-r2/image/ 
>>>>         
> category dev-java
>
> !!! ERROR: dev-java/ant-tasks-1.6.5-r2 failed.
> Call stack:
>   ebuild.sh, line 1539:   Called dyn_install
>   ebuild.sh, line 1013:   Called src_install
>   ant-tasks-1.6.5-r2.ebuild, line 80:   Called 
> java-pkg_dojar 'build/lib/ant-*.jar'
>   java-utils-2.eclass, line 197:   Called die
>
> !!! build/lib/ant-*.jar does not exist
> !!! If you need support, post the topmost build error, and the call stack if 
> relevant.
>
> !!! When you file a bug report, please include the following information:
> GENTOO_VM=blackdown-jdk-1.4.2  CLASSPATH="" 
> JAVA_HOME="/opt/blackdown-jdk-1.4.2.03"
> JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
> and of course, the output of emerge --info
>
>
> Any suggestions how I can solve this problem?
>
> Regards
> Jan
>
>   

[-- Attachment #2: miroslav.sulc.vcf --]
[-- Type: text/x-vcard, Size: 349 bytes --]

begin:vcard
fn;quoted-printable:Miroslav =C5=A0ulc
n;quoted-printable:=C5=A0ulc;Miroslav
org:StartNet s.r.o.
adr;quoted-printable;quoted-printable:;;Schodov=C3=A1 309/10;Praha 5;;150 00;=C4=8Cesk=C3=A1 republika
email;internet:miroslav.sulc@startnet.cz
tel;cell:+420 603 711 413
x-mozilla-html:TRUE
url:http://www.startnet.cz
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-java] Error compiling ant-tasks
  2006-08-05  9:04 [gentoo-java] Error compiling ant-tasks Jan Meier
  2006-08-05 10:18 ` Miroslav Šulc
@ 2006-08-05 15:00 ` Grobian
  1 sibling, 0 replies; 3+ messages in thread
From: Grobian @ 2006-08-05 15:00 UTC (permalink / raw
  To: gentoo-java

On 05-08-2006 11:04:34 +0200, Jan Meier wrote:
> BUILD FAILED
> java.lang.UnsupportedClassVersionError: org/mozilla/javascript/Scriptable 
> (Unsupported major.minor version 49.0)
[snip]
> !!! When you file a bug report, please include the following information:
> GENTOO_VM=blackdown-jdk-1.4.2  CLASSPATH="" 
> JAVA_HOME="/opt/blackdown-jdk-1.4.2.03"
> JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
> and of course, the output of emerge --info
> 
> Any suggestions how I can solve this problem?

the class files you encounter were compiled with -target 1.5, while your compiler only supports 1.4.

Did you perhaps previously use Java 1.5 to compile some packages?


-- 
Fabian Groffen
-- 
gentoo-java@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-08-05 15:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-05  9:04 [gentoo-java] Error compiling ant-tasks Jan Meier
2006-08-05 10:18 ` Miroslav Šulc
2006-08-05 15:00 ` Grobian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox