Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144782 - "java" not found ...
Summary: "java" not found ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-22 13:05 UTC by Roman Polach
Modified: 2006-08-22 13:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Polach 2006-08-22 13:05:44 UTC
i have installed java jre by:
# emerge sun-jre-bin
but after installation and executing
# /usr/sbin/env-update
and
# source /etc/profile
"java" command was not available - in order of this message
that appears in emerge output:

 * Found no JDK, setting sun-jre-bin-1.5.0.06 as default system VM
javac not found at /opt/sun-jre-bin-1.5.0.06/bin/javac or /opt/sun-jre-bin-1.5.0.06/jre/bin/javac
javadoc not found at /opt/sun-jre-bin-1.5.0.06/bin/javadoc or /opt/sun-jre-bin-1.5.0.06/jre/bin/javadoc
jar not found at /opt/sun-jre-bin-1.5.0.06/bin/jar or /opt/sun-jre-bin-1.5.0.06/jre/bin/jar
rmic not found at /opt/sun-jre-bin-1.5.0.06/bin/rmic or /opt/sun-jre-bin-1.5.0.06/jre/bin/rmic
THIS SYSTEM VM IS NOT SUFFICIENT, REQUIRED BINARIES WERE NOT FOUND
System Virtual Machine set
You may want to update your enviroment by running:
        "/usr/sbin/env-update && source /etc/profile"



----
# emerge --info

Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en cs"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac alsa amr apache2 apm avi bash-completion berkdb bitmap-fonts blender-game bluetooth bzip2 cairo cdparanoia cdr cli crypt cups dbus djvu dlloader dri dts dv dvb dvd dvdr dvdread dvi emboss encode exif fam fbcon ffmpeg firefox flac font-server foomaticdb fortran ftp gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 hal iconv imlib ipv6 isdnlog jpeg lcms libg++ libwww lirc mad matroska mikmod mmx mng modplug mono mozsvg mp3 mp4 mpeg nautilus ncurses nls nptl ogg opengl pam pcre pdf pdflib perl png ppds pppd python quicktime readline real reflection sdl session sndfile spell spl sse sse2 ssl svg tcpd theora timidity truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vorbis win32codecs wma x264 xanim xml xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en linguas_cs lirc_devices_irman userland_GNU video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-22 13:13:01 UTC
JRE stands for Java *Runtime* Environment... I won't let you compile anything, and it won't install any such stuff. So - 

<snip>
THIS SYSTEM VM IS NOT SUFFICIENT, REQUIRED BINARIES WERE NOT FOUND
</snip>

tells it all.
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-08-22 13:14:38 UTC
JRE doesn't provide javac, it can't be used as default system VM. Unmerge it and emerge sun-jdk-1.4. You can't use Java 1.5 with stable arch for now.
Comment 3 Roman Polach 2006-08-22 13:19:43 UTC
sorry, I mean "java" not "javac" command..
i suppose that "java" command is included in sun-jre-bin package
or I am wrong? I want only *run* java programs, not compile them
Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-08-22 13:45:29 UTC
Follow http://www.gentoo.org/doc/en/java-old.xml
Especially the set-user-vm part (you can't have 1.5 JRE as system VM), I suppose you're not going to run those programs as root but user.