Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot install jalbum
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
bitpicker
Apprentice
Apprentice


Joined: 28 Dec 2005
Posts: 163
Location: Germany

PostPosted: Fri Sep 19, 2008 7:15 pm    Post subject: Cannot install jalbum Reply with quote

I'm trying to get jalbum to work in Gentoo. When I run the install script it gives me the following error:

Code:

Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable.  You must install a VM prior to
running this program.


Java is installed. Here's the output of java-config:

Code:

java-config -L
The following VMs are available for generation-2:
1)   Sun JDK 1.4.2.16 [sun-jdk-1.4]
2)   Sun JDK 1.5.0.13 [sun-jdk-1.5]
*)   Sun JDK 1.6.0.07 [sun-jdk-1.6]


I have tried all three, but the installation script never finds any Java. I don't know exactly what file it is looking for, but it should find something:

Code:

locate bin/java*
/opt/sun-jdk-1.4.2.16/bin/java
/opt/sun-jdk-1.4.2.16/bin/javac
/opt/sun-jdk-1.4.2.16/bin/javah
/opt/sun-jdk-1.4.2.16/bin/javap
/opt/sun-jdk-1.4.2.16/bin/java-rmi.cgi
/opt/sun-jdk-1.4.2.16/bin/javaws
/opt/sun-jdk-1.4.2.16/bin/javadoc
/opt/sun-jdk-1.4.2.16/jre/bin/java
/opt/sun-jdk-1.4.2.16/jre/bin/javaws
/opt/sun-jdk-1.4.2.16/jre/bin/java_vm
/opt/sun-jdk-1.5.0.13/bin/java
/opt/sun-jdk-1.5.0.13/bin/javac
/opt/sun-jdk-1.5.0.13/bin/javah
/opt/sun-jdk-1.5.0.13/bin/javap
/opt/sun-jdk-1.5.0.13/bin/java-rmi.cgi
/opt/sun-jdk-1.5.0.13/bin/javaws
/opt/sun-jdk-1.5.0.13/bin/javadoc
/opt/sun-jdk-1.5.0.13/jre/bin/java
/opt/sun-jdk-1.5.0.13/jre/bin/javaws
/opt/sun-jdk-1.5.0.13/jre/bin/java_vm
/opt/sun-jdk-1.6.0.07/bin/java
/opt/sun-jdk-1.6.0.07/bin/javac
/opt/sun-jdk-1.6.0.07/bin/javah
/opt/sun-jdk-1.6.0.07/bin/javap
/opt/sun-jdk-1.6.0.07/bin/java-rmi.cgi
/opt/sun-jdk-1.6.0.07/bin/javaws
/opt/sun-jdk-1.6.0.07/bin/javadoc
/opt/sun-jdk-1.6.0.07/jre/bin/java
/opt/sun-jdk-1.6.0.07/jre/bin/javaws
/opt/sun-jdk-1.6.0.07/jre/bin/java_vm
/usr/bin/java
/usr/bin/javac
/usr/bin/javah
/usr/bin/javap
/usr/bin/java-config
/usr/bin/java-config-1
/usr/bin/java-config-2
/usr/bin/javaws
/usr/bin/java-1.5-fixer
/usr/bin/javadoc
/usr/bin/java-check-environment
/usr/jre1.5.0_07/bin/java
/usr/jre1.5.0_07/bin/javaws
/usr/jre1.5.0_07/bin/java_vm


Some, not all of them, are in my $PATH, too:

Code:

echo $PATH
/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/sun-jdk-1.4.2.16/bin:
/opt/sun-jdk-1.4.2.16/jre/bin:/opt/sun-jdk-1.4.2.16/jre/javaws:/usr/kde/3.5/bin:/usr/qt/3/bin:
/usr/games/bin:/usr/kde/3.4/bin:/usr/kde/3.4/bin


(BTW, there are some obsolete entries in there which are neither from /etc/profile nor my bashrc; I wonder where I can change them, specifically point the Java ones at the newer version and remove some of the old KDE stuff...)

My Java environment seems to be sane:

Code:

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 ...                                             [ ok ]

 * Checking generation_1_system_vm ...                                    [ ok ]

 * Checking virtual_provides ...                                          [ ok ]

 * Checking overlays_eclasses ...                                         [ ok ]

 * Checking package_env ...                                               [ ok ]

 * Java environment is sane. Congratulations!


And the Java program JBidWatcher runs with no problems at all.

I am out of ammunition now. I'm probably missing something obvious, but Java and its configuration isn't exactly my strong point. :oops:

Robin
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Fri Sep 19, 2008 9:47 pm    Post subject: Reply with quote

Moved from Desktop Environments to Unsupported Software.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Sep 20, 2008 12:29 am    Post subject: Reply with quote

Can you post your emerge --info plz ?
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Sat Sep 20, 2008 7:13 pm    Post subject: Reply with quote

Let me throw my situation into this mess. :?

I was failing a standard emerge --sync ; emerge --update world scenario because my jdk was puking. I installed dev-java/sun-jdk-1.4.2.18 and when I do a java-check-environment, I still get:
Code:
eli ~ # 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 ...
Traceback (most recent call last):
  File "/usr/bin/java-config-1", line 14, in <module>
    from java_config import jc_options
ImportError: No module named java_config
 * No Generation-1 System VM is set! (no /etc/env.d/20java)
Traceback (most recent call last):
  File "/usr/bin/java-config-1", line 14, in <module>
    from java_config import jc_options
ImportError: No module named java_config
 * It doesn't look like java-config-1 sees any installed VMs.
 * It is most likely because you don't have a 1.4 JDK installed
 * This is required for generation-1 to work properly.
 * You will want to emerge =virtual/jdk-1.4*                                                                      [ !! ]

 * Some problems were found. Please follow the instructions above, and rerun java-check-environment
eli ~ #

So what gives? :evil:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Sun Sep 21, 2008 5:47 pm    Post subject: Reply with quote

Here are some more specifics on my problem:
Code:
eli ~ # emerge -pv --update --deep --newuse system

These are the packages that would be merged, in order:

Calculating system dependencies... done!
[ebuild     U ] sys-libs/db-4.5.20_p2-r1 [4.5.20_p2] USE="doc java -bootstrap -nocxx -tcl -test" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB
You have new mail in /var/mail/root

and
Code:
eli ~ # emerge --update --deep --newuse system
Calculating system dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) sys-libs/db-4.5.20_p2-r1 to /
 * db-4.5.20.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                               [ ok ]
 * patch.4.5.20.1 RMD160 SHA1 SHA256 size ;-) ...                                                                 [ ok ]
 * patch.4.5.20.2 RMD160 SHA1 SHA256 size ;-) ...                                                                 [ ok ]
 * checking ebuild checksums ;-) ...                                                                              [ ok ]
 * checking auxfile checksums ;-) ...                                                                             [ ok ]
 * checking miscfile checksums ;-) ...                                                                            [ ok ]
 * checking db-4.5.20.tar.gz ;-) ...                                                                              [ ok ]
 * checking patch.4.5.20.1 ;-) ...                                                                                [ ok ]
 * checking patch.4.5.20.2 ;-) ...                                                                                [ ok ]
Traceback (most recent call last):
  File "/usr/bin/depend-java-query", line 8, in <module>
    from java_config_2 import __version__
ImportError: No module named java_config_2
 * Unable to determine VM for building from dependencies:
NV_DEPEND: tcl? ( >=dev-lang/tcl-8.4 )
        java? ( >=virtual/jdk-1.4 )
        >=sys-devel/binutils-2.16.1  test? ( >=dev-lang/tcl-8.4 ) java? ( >=dev-java/java-config-2.0.33-r1 >=sys-apps/portage-2.1.2.7 ) =sys-devel/automake-1.10*
        >=sys-devel/autoconf-2.61
        sys-devel/libtool
VNEED:
 *
 * ERROR: sys-libs/db-4.5.20_p2-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *               ebuild.sh, line 1244:  Called java-pkg-opt-2_pkg_setup
 *   java-pkg-opt-2.eclass, line   44:  Called java-pkg_init
 *     java-utils-2.eclass, line 2090:  Called java-pkg_switch-vm
 *     java-utils-2.eclass, line 2516:  Called die
 * The specific snippet of code:
 *                              die "Failed to determine VM for building."
 *  The die message:
 *   Failed to determine VM for building.
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-libs/db-4.5.20_p2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/db-4.5.20_p2-r1/temp/die.env'.
 *
!!! 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

 * Messages for package sys-libs/db-4.5.20_p2-r1:

 * Unable to determine VM for building from dependencies:
 *
 * ERROR: sys-libs/db-4.5.20_p2-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *               ebuild.sh, line 1244:  Called java-pkg-opt-2_pkg_setup
 *   java-pkg-opt-2.eclass, line   44:  Called java-pkg_init
 *     java-utils-2.eclass, line 2090:  Called java-pkg_switch-vm
 *     java-utils-2.eclass, line 2516:  Called die
 * The specific snippet of code:
 *                              die "Failed to determine VM for building."
 *  The die message:
 *   Failed to determine VM for building.
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-libs/db-4.5.20_p2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/db-4.5.20_p2-r1/temp/die.env'.
 *
eli ~ #

I think the key seems to be:
Code:
 * checking patch.4.5.20.2 ;-) ...                                                                                [ ok ]
Traceback (most recent call last):
  File "/usr/bin/depend-java-query", line 8, in <module>
    from java_config_2 import __version__
ImportError: No module named java_config_2
 * Unable to determine VM for building from dependencies:
NV_DEPEND: tcl? ( >=dev-lang/tcl-8.4 )
        java? ( >=virtual/jdk-1.4 )
        >=sys-devel/binutils-2.16.1  test? ( >=dev-lang/tcl-8.4 ) java? ( >=dev-java/java-config-2.0.33-r1 >=sys-apps/portage-2.1.2.7 ) =sys-devel/automake-1.10*
        >=sys-devel/autoconf-2.61
        sys-devel/libtool
VNEED:

but I am not a Java whiz, so I need help with this.

Thanks! :D
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
bitpicker
Apprentice
Apprentice


Joined: 28 Dec 2005
Posts: 163
Location: Germany

PostPosted: Sun Sep 21, 2008 5:58 pm    Post subject: Reply with quote

d2_racing wrote:
Can you post your emerge --info plz ?


Code:

emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r7 i686)
=================================================================
System uname: 2.6.24-gentoo-r7 i686 AMD Duron(tm) Processor
Timestamp of tree: Fri, 19 Sep 2008 13:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.UTF-8@euro.UTF-8"
LC_ALL="de_DE.UTF-8@euro.UTF-8"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/pro-audio /usr/portage/local/layman/sunrise /usr/local/portage-overlay /usr/portage/local/my-ebuilds"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="X a52 acl alsa arts asf berkdb cairo cdparanoia cdr cli cracklib crypt css cups dbus dri dvd dvdr dvdread eds emboss emovix encode esd evo exif fam fat ffmpeg firefox flac fortran gdbm gif glitz gnome gphoto2 gpm gstreamer gtk hal iconv imagemagick imap imlib ipv6 isdnlog jack java javascript jpeg kde kerberos ldap midi mikmod mjpeg mmx mozdevelop mp3 mpeg mplayer mudflap musepack musicbrainz ncurses nls nptl nptlonly nsplugin ntfs nvidia ogg opengl openmp oss pam pcre pdf pdflib perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection reiserfs scanner sdl session sndfile spell spl ssl svg tcl tcpd theora tiff tk truetype unicode usb userlocales vcd vorbis vst win32codecs wma wmf x86 xine xinerama xml xorg xpm xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nvidia sis vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
bitpicker
Apprentice
Apprentice


Joined: 28 Dec 2005
Posts: 163
Location: Germany

PostPosted: Fri Sep 26, 2008 8:31 pm    Post subject: Reply with quote

It appears to me that the problem is my PATH variable:

Code:

 echo $PATH
/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:
/opt/sun-jdk-1.4.2.16/bin:/opt/sun-jdk-1.4.2.16/jre/bin:/opt/sun-jdk-1.4.2.16/jre/javaws:
/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/games/bin:/usr/kde/3.4/bin:/usr/kde/3.4/bin


I cannot find where the Java-related paths are coming from; but they are all pointing to the old 1.4 engine, and JAlbum isn't supposed to work with 1.4. Now I could add a path to the currently installed VM, but that wouldn't be a proper solution. Where does this path get defined and what may I have missed in my Java configuration in order to change this to relevant values? My current state of Java affairs is this:

Code:

 java-config -L
The following VMs are available for generation-2:
1)   Sun JDK 1.4.2.16 [sun-jdk-1.4]
2)   Sun JDK 1.5.0.13 [sun-jdk-1.5]
*)   Sun JDK 1.6.0.07 [sun-jdk-1.6]

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 ...                                             [ ok ]

 * Checking generation_1_system_vm ...                                    [ ok ]

 * Checking virtual_provides ...                                          [ ok ]

 * Checking overlays_eclasses ...                                         [ ok ]

 * Checking package_env ...                                               [ ok ]

 * Java environment is sane. Congratulations!


Robin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum