[gentoo-user] Java problem

2010-05-22 Thread David Relson
Greetings,

I'd like to install eclipse, to experiment with it.  Emerging
eclipse-sdk wants to pull in a whole lot of packages which is not a bad
thing except that about 12 or 15 of the emerges fail, apparently for
the same reason:

 * CPV:  dev-java/ant-core-1.8.1
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
!!! ERROR: Package ant-junit was not found!
 * Unable to determine VM for building from dependencies:
NV_DEPEND: =virtual/jdk-1.4
!dev-java/ant-tasks
!dev-java/ant-optional  =dev-java/java-config-2.1.9-r1
   source? ( app-arch/zip ) 

=dev-java/javatoolkit-0.3.0-r2
 * ERROR: dev-java/ant-core-1.8.1 failed:
 *   Failed to determine VM for building.
 * 
 * Call stack:
 * ebuild.sh, line   48:  Called pkg_setup
 * ebuild.sh, line 1346:  Called java-pkg-2_pkg_setup
 * java-pkg-2.eclass, line   63:  Called java-pkg_init
 *   java-utils-2.eclass, line 2126:  Called java-pkg_switch-vm
 *   java-utils-2.eclass, line 2550:  Called die
 * The specific snippet of code:
 *  die Failed to determine VM for 
   building.
 * 
 * If you need support, post the output of 'emerge --info
   =dev-java/ant-core-1.8.1',
 * the complete build log and the output of 'emerge -pqv
   =dev-java/ant-core-1.8.1'. !!! When you file a bug report, please
   include the following information: GENTOO_VM=  CLASSPATH=
   JAVA_HOME= JAVACFLAGS= COMPILER=
and of course, the output of emerge --info

I do have virtual/jdk, dev-java/sun-jdk and many other dev-java and
java-virtuals packages installed and OpenOffice runs.  As advised by
the Gentoo Java Packaging Guide, I've created the following symlink:

  HOME/.gentoo/java-config-2/current-user-vm
- /etc/java-config-2/current-system-vm

Where/how are variables GENTOO_VM, CLASSPATH, JAVA_HOME, JAVACFLAGS, and
COMPILER supposed to be set ???

What else am I missing?

Thanks.

David



Re: [gentoo-user] Java problem

2010-05-22 Thread Kenneth Prugh
On Sat, 22 May 2010 16:10:39 -0400
David Relson rel...@osagesoftware.com wrote:

 [...]

What does `eselect java-vm list` say?

Also, You might need to manually emerge dev-java/ant-junit.



Re: [gentoo-user] Java problem

2010-05-22 Thread David Relson
On Sat, 22 May 2010 17:35:24 -0400
Kenneth Prugh wrote:

 On Sat, 22 May 2010 16:10:39 -0400
 David Relson rel...@osagesoftware.com wrote:
 
  [...]
 
 What does `eselect java-vm list` say?
 
 Also, You might need to manually emerge dev-java/ant-junit.

r...@osage ~ # eselect java-vm list
Available Java Virtual Machines:
  [1]   emul-linux-x86-java-1.6 
  [2]   sun-jdk-1.6  system-vm
  [3]   sun-jre-bin-1.6 

For all 3 packages, version 1.6.0.20 is installed.

Manually emerging ant-junit pulls in ant-core as a dependency which
fails in the manner previously reported, i.e. 

 * CPV:  dev-java/ant-core-1.8.1
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
!!! ERROR: Package ant-junit was not found!
 * Unable to determine VM for building from dependencies:
NV_DEPEND: =virtual/jdk-1.4
!dev-java/ant-tasks
!dev-java/ant-optional  =dev-java/java-config-2.1.9-r1
   source? ( app-arch/zip ) 

=dev-java/javatoolkit-0.3.0-r2
 * ERROR: dev-java/ant-core-1.8.1 failed:
 *   Failed to determine VM for building.
 * 
 * Call stack:
 * ebuild.sh, line   48:  Called pkg_setup
 * ebuild.sh, line 1346:  Called java-pkg-2_pkg_setup
 * java-pkg-2.eclass, line   63:  Called java-pkg_init
 *   java-utils-2.eclass, line 2126:  Called java-pkg_switch-vm
 *   java-utils-2.eclass, line 2550:  Called die
 * The specific snippet of code:
 *  die Failed to determine VM for building.
 * 
 * If you need support, post the output of 'emerge --info
   =dev-java/ant-core-1.8.1',
 * the complete build log and the output of 'emerge -pqv
   =dev-java/ant-core-1.8.1'. !!! When you file a bug report, please
   include the following information: GENTOO_VM=  CLASSPATH=
   JAVA_HOME= JAVACFLAGS= COMPILER=
and of course, the output of emerge --info



Re: [gentoo-user] Java problem

2010-05-22 Thread Kenneth Prugh
On Sat, 22 May 2010 20:43:54 -0400
David Relson rel...@osagesoftware.com wrote:
 [...]
 r...@osage ~ # eselect java-vm list
 Available Java Virtual Machines:
   [1]   emul-linux-x86-java-1.6 
   [2]   sun-jdk-1.6  system-vm
   [3]   sun-jre-bin-1.6 
 
 For all 3 packages, version 1.6.0.20 is installed.
 
 Manually emerging ant-junit pulls in ant-core as a dependency which
 fails in the manner previously reported, i.e. 

How about `java-check-environment`, does it report as sane?



Re: [gentoo-user] Java problem

2010-05-22 Thread David Relson
On Sat, 22 May 2010 20:51:35 -0400
Kenneth Prugh wrote:

 On Sat, 22 May 2010 20:43:54 -0400
 David Relson rel...@osagesoftware.com wrote:
  [...]
  r...@osage ~ # eselect java-vm list
  Available Java Virtual Machines:
[1]   emul-linux-x86-java-1.6 
[2]   sun-jdk-1.6  system-vm
[3]   sun-jre-bin-1.6 
  
  For all 3 packages, version 1.6.0.20 is installed.
  
  Manually emerging ant-junit pulls in ant-core as a dependency which
  fails in the manner previously reported, i.e. 
 
 How about `java-check-environment`, does it report as sane?

It's not happy.  It says to install ant-junit (see first attachment),
which fails (see second attachment).
r...@osage ~ #java-check-environment
 * === Java Environment Checker ===
 * The purpose of this script is to check the sanity of your Java Environment.
 * We have significantly changed and improved the way Java is handled in many
 * respects.
 * Please refer to our upgrade guide for details:
 * http://www.gentoo.org/proj/en/java/java-upgrade.xml

 * Checking fastjar ... [ ok ]

 * Checking vm_environment_files ... [ ok ]

 * Checking user_settings ... * Running as root. Don't need to check user 
settings.
 [ ok ]

 * Checking generation_1_system_vm ... [ ok ]

 * Checking java_config_1 ... [ ok ]

 * Checking global_classpath ... [ ok ]

 * Checking virtual_provides ... [ ok ]

 * Checking overlays_eclasses ... [ ok ]

 * Checking package_env ...!!! ERROR: Package ant-junit was not found!
 * Broken dependencies for
 * Please try emerge -uD1 =
 [ !! ]

 * Some problems were found. Please follow the instructions above, and rerun 
java-check-environment
r...@osage ~ # emerge -uD1 ant-junit

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies ... done!
 Verifying ebuild manifests
 Starting parallel fetch
 Jobs: 0 of 2 complete, 1 runningLoad avg: 0.24, 0.10, 0.05
 Emerging (1 of 2) dev-java/ant-core-1.8.1
 Jobs: 0 of 2 complete, 1 runningLoad avg: 0.24, 0.10, 0.05
 Failed to emerge dev-java/ant-core-1.8.1, Log file:
 Jobs: 0 of 2 complete, 1 runningLoad avg: 0.22, 0.10, 0.05
  '/var/log/portage/dev-java:ant-core-1.8.1:20100523-005423.log'
 Jobs: 0 of 2 complete, 1 runningLoad avg: 0.22, 0.10, 0.05
 Jobs: 0 of 2 complete, 1 running, 1 failed  Load avg: 0.22, 0.10, 0.05
 Jobs: 0 of 2 complete, 1 failed Load avg: 0.22, 0.10, 0.05

 * CPV:  dev-java/ant-core-1.8.1
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
!!! ERROR: Package ant-junit was not found!
 * Unable to determine VM for building from dependencies:
NV_DEPEND: =virtual/jdk-1.4
!dev-java/ant-tasks
!dev-java/ant-optional  =dev-java/java-config-2.1.9-r1  source? ( 
app-arch/zip ) 


=dev-java/javatoolkit-0.3.0-r2
 * ERROR: dev-java/ant-core-1.8.1 failed:
 *   Failed to determine VM for building.
 * 
 * Call stack:
 * ebuild.sh, line   48:  Called pkg_setup
 * ebuild.sh, line 1346:  Called java-pkg-2_pkg_setup
 * java-pkg-2.eclass, line   63:  Called java-pkg_init
 *   java-utils-2.eclass, line 2126:  Called java-pkg_switch-vm
 *   java-utils-2.eclass, line 2550:  Called die
 * The specific snippet of code:
 *  die Failed to determine VM for building.
 * 
 * If you need support, post the output of 'emerge --info 
=dev-java/ant-core-1.8.1',
 * the complete build log and the output of 'emerge -pqv 
=dev-java/ant-core-1.8.1'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH= JAVA_HOME=
JAVACFLAGS= COMPILER=
and of course, the output of emerge --info
 * The complete build log is located at 
'/var/log/portage/dev-java:ant-core-1.8.1:20100523-005423.log'.
 * The ebuild environment file is located at 
'/var/tmp/portage/dev-java/ant-core-1.8.1/temp/die.env'.
 * S: '/var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1'

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


Re: [gentoo-user] Java problem

2010-05-22 Thread David Abbott
On Sat, May 22, 2010 at 8:57 PM, David Relson rel...@osagesoftware.com wrote:
 On Sat, 22 May 2010 20:51:35 -0400
 Kenneth Prugh wrote:

 On Sat, 22 May 2010 20:43:54 -0400
 David Relson rel...@osagesoftware.com wrote:
  [...]
  r...@osage ~ # eselect java-vm list
  Available Java Virtual Machines:
    [1]   emul-linux-x86-java-1.6
    [2]   sun-jdk-1.6  system-vm
    [3]   sun-jre-bin-1.6
 
  For all 3 packages, version 1.6.0.20 is installed.
 
  Manually emerging ant-junit pulls in ant-core as a dependency which
  fails in the manner previously reported, i.e.

 How about `java-check-environment`, does it report as sane?

 It's not happy.  It says to install ant-junit (see first attachment),
 which fails (see second attachment).

I use;
java-config
  -L, --list-available-vms
List available Java Virtual Machines
  -S VM, --set-system-vm=VM
Set the default Java VM for the system

java-config -c
/opt/icedtea6-bin-1.8.0/bin/javac


-- 
David Abbott (dabbott)



Re: [gentoo-user] Java problem

2010-05-22 Thread Kenneth Prugh
You might try reselecting java again: `eselect java-vm system 2` (for
sun-jdk or whatever your choice is from `eselect java-vm list`)

I don't think you need to use java-config directly anymore but I'm not
sure. Eselect should create the symlinks for you.

Or my lack of coffee might be showing.



Re: [gentoo-user] Java problem (with pylucene)

2007-11-29 Thread Helmut Jarausch
On 28 Nov, Billy Holmes wrote:
 Helmut Jarausch wrote:
 ImportError: /usr/lib/jvm/sun-jdk-1.6/jre/lib/i386/libjava.so: symbol 
 JVM_GetClassSignature, 
 version SUNWprivate_1.1 not defined in file libjvm.so with link time 
 reference
   
 
 does it really need 1.6? 1.5 and 1.6 aren't always compatible, but from
 the sound of it, jcc is doing some kind of python/java hybrid?
 
 You could always do a strace on it, and see what's loading libjava, and
 see if it's trying to dlsym on sunwprivate after it loads libjvm.. but
 you need to figure out WHICH libjvm it's actually loading.

Thanks, the sledge hammer 'strace' did help indeed.

It turned out, that pylucene needs an additional library
/usr/lib/jvm/sun-jdk-1.6/jre/lib/i386/client/libjvm.so

Thanks,
Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Java problem (with pylucene)

2007-11-28 Thread Helmut Jarausch
Hi,

hopefully someone can help with that (for me) obscure error message.

I'm trying to install  pylucene (with JCC) see
http://pylucene.osafoundation.org/

(Unfortunately, pylucene is not part of the GenToo
repository)

I have configured JCC (part of pylucene) to
use the sun-jdk-1.6

During build I get the error message

  File /usr/lib/python2.5/site-packages/jcc/__init__.py, line 30, in module
from _jcc import initVM
ImportError: /usr/lib/jvm/sun-jdk-1.6/jre/lib/i386/libjava.so: symbol 
JVM_GetClassSignature, 
version SUNWprivate_1.1 not defined in file libjvm.so with link time reference

Would anybody please so nice to explain (the reason for) this error
message?

Many thanks,

Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Java problem (with pylucene)

2007-11-28 Thread Helmut Jarausch
On 28 Nov, ezotrank wrote:
 On 12:03 Wed 28 Nov , Helmut Jarausch wrote:
 Hi,
 
 hopefully someone can help with that (for me) obscure error message.
 
 I'm trying to install  pylucene (with JCC) see
 http://pylucene.osafoundation.org/
 
 (Unfortunately, pylucene is not part of the GenToo
 repository)
 
 I have configured JCC (part of pylucene) to
 use the sun-jdk-1.6
 
 During build I get the error message
 
   File /usr/lib/python2.5/site-packages/jcc/__init__.py, line 30, in 
 module
 from _jcc import initVM
 ImportError: /usr/lib/jvm/sun-jdk-1.6/jre/lib/i386/libjava.so: symbol 
 JVM_GetClassSignature, 
 version SUNWprivate_1.1 not defined in file libjvm.so with link time 
 reference
 
 Would anybody please so nice to explain (the reason for) this error
 message?
 
 Many thanks,
 
 Helmut Jarausch
 
 Lehrstuhl fuer Numerische Mathematik
 RWTH - Aachen University
 D 52056 Aachen, Germany
 -- 
 [EMAIL PROTECTED] mailing list
 
 Maybe help edit  CFLAGS and add  -DNDEBUG

Thanks, but unfortunately that doesn't help either,
Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Java problem (with pylucene)

2007-11-28 Thread Billy Holmes
Helmut Jarausch wrote:
 ImportError: /usr/lib/jvm/sun-jdk-1.6/jre/lib/i386/libjava.so: symbol 
 JVM_GetClassSignature, 
 version SUNWprivate_1.1 not defined in file libjvm.so with link time reference
   

does it really need 1.6? 1.5 and 1.6 aren't always compatible, but from
the sound of it, jcc is doing some kind of python/java hybrid?

You could always do a strace on it, and see what's loading libjava, and
see if it's trying to dlsym on sunwprivate after it loads libjvm.. but
you need to figure out WHICH libjvm it's actually loading.
-- 
[EMAIL PROTECTED] mailing list