public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
From: Wiktor Wandachowicz <siryes@gmail.com>
To: gentoo-java@lists.gentoo.org
Subject: [gentoo-java]  Re: problems compiling junit
Date: Wed, 12 Apr 2006 11:36:39 +0000 (UTC)	[thread overview]
Message-ID: <loom.20060412T133024-5@post.gmane.org> (raw)
In-Reply-To: 1144843758.6927.10.camel@localhost

Henrique Ferreiro <henrique.ferreiro@...> writes:

> 
> I am using the migration overlay. After installing sun-jdk-1.4 and
> sun-jdk-1.5 and setting 1.4 as system vm I have the following problem:
> 
> localhost ~ # emerge -1 junit
> Calculating dependencies ... done!
> >>> Emerging (1 of 1) dev-java/junit-3.8.1-r1 to /
...
> >>> Compiling source
> in /var/tmp/portage/junit-3.8.1-r1/work/junit3.8.1 ...
> /usr/bin/ant: line 161: arch: command not found
> Buildfile: build.xml
> 
> init:
> 
> versiontag:
>      [copy] Copying 1 file
> to /var/tmp/portage/junit-3.8.1-r1/work/junit3.8.1/junit/runner
>      [move] Moving 1 file
> to /var/tmp/portage/junit-3.8.1-r1/work/junit3.8.1/junit/runner
> 
> build:
> 
> BUILD FAILED
> java.lang.UnsupportedClassVersionError: junit/framework/Test
> (Unsupported major.minor version 49.0)
> 


Well, that's exactly the issue that the new Java handling should solve
(compile time JVM version switching). In your previous post you've said
that you have problems setting the generation-1 system VM. I suspect that
there's something wrong with your setup, even though you might have
followed the instructions closely...

Maybe you could post the output of the following commands?

# java-config-1 -L
# java-config-2 -L
# which java
# java -version
# echo ${PATH}
# emerge -pv =sun-jdk-1.4*
# emerge -pv =sun-jdk-1.5*
# emerge --info

That would clear the situation a bit.

Wiktor

-- 
gentoo-java@gentoo.org mailing list



  reply	other threads:[~2006-04-12 11:36 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-12 12:09 [gentoo-java] problems compiling junit Henrique Ferreiro
2006-04-12 11:36 ` Wiktor Wandachowicz [this message]
2006-04-12 12:53   ` [gentoo-java] " Henrique Ferreiro
2006-04-12 12:21     ` Wiktor Wandachowicz
2006-04-13  0:58       ` Henrique Ferreiro
2006-04-13  4:38         ` Joshua Nichols
2006-04-13  6:03           ` Jon Severinsson
2006-04-13 12:06             ` Henrique Ferreiro
2006-04-13 11:34               ` Jon Severinsson
     [not found]                 ` <1144932831.26742.8.camel@localhost>
2006-04-13 12:05                   ` Jon Severinsson
2006-04-13 14:07                     ` Henrique Ferreiro
2006-04-13 14:09                     ` Henrique Ferreiro
2006-04-14  1:29                       ` Joshua Nichols
2006-04-14 15:24                         ` Henrique Ferreiro
2006-04-14 14:47                           ` Joshua Nichols
2006-04-14 21:19                         ` Wiktor Wandachowicz
2006-04-12 11:51 ` Wiktor Wandachowicz
2006-04-12 13:25   ` Joshua Nichols

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20060412T133024-5@post.gmane.org \
    --to=siryes@gmail.com \
    --cc=gentoo-java@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox