Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85444 - javac not being found, it wants jre not jdk
Summary: javac not being found, it wants jre not jdk
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-15 18:40 UTC by George Prowse
Modified: 2005-03-16 07:48 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 George Prowse 2005-03-15 18:40:08 UTC
After having problems getting packages i saw i needed to set some things in the JAVA_HOME but while trying to set the javac compiler i get the error:

jc_options: javac not found at /opt/blackdown-jre-1.4.2.01/bin/javac or opt/blackdown-jre-1.4.2.01/jre/bin/javac

when i do a locate for my javac i get this:

george@frederika % locate javac
/opt/blackdown-jdk-1.4.2.01/bin/javac
/opt/blackdown-jdk-1.4.2.01/man/man1/javac.1.gz
/opt/blackdown-jdk-1.4.2.01/man/ja_JP.eucJP/man1/javac.1.gz

It seems to only be looking for the runtime environment compiler not the development kit compiler

the results from previously trying to set the other options were:

frederika# java-config -S blackdown-jre-1.4.2.01                  
javac not found at /opt/blackdown-jre-1.4.2.01/bin/javac or /opt/blackdown-jre-1.4.2.01/jre/bin/javac
javadoc not found at /opt/blackdown-jre-1.4.2.01/bin/javadoc or /opt/blackdown-jre-1.4.2.01/jre/bin/javadoc
jar not found at /opt/blackdown-jre-1.4.2.01/bin/jar or /opt/blackdown-jre-1.4.2.01/jre/bin/jar
rmic not found at /opt/blackdown-jre-1.4.2.01/bin/rmic or /opt/blackdown-jre-1.4.2.01/jre/bin/rmic
THIS SYSTEM VM IS NOT SUFFICIENT, REQUIRED BINARIES WERE NOT FOUND

Reproducible: Always
Steps to Reproduce:
1.java-config -c
2.
3.

Actual Results:  
jc_options: javac not found at /opt/blackdown-jre-1.4.2.01/bin/javac or
opt/blackdown-jre-1.4.2.01/jre/bin/javac

Expected Results:  
linked to the java compiler from the blackdown jdk

george@frederika % emerge info                                                ~
Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r
                                                                               
                   0, 2.6.10-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 12 2005, 06:31:36)
                                                                               
                   ]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1
                                                                               
                   1/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/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/
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk"
LANG="en_GB.UTF-8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa avi berkdb bitmap-fonts bmp cdr crypt curl dvd esd fam fl
                                                                               
                   ac font-server fortran gif gnome gpm gstreamer gtk gtk2
imagemagick imlib ipv6 j                                                       
                                            ava jp2 jpeg junit libwww lzw
lzw-tiff mozilla mp3 mpeg mpg mysql ncurses nls og                             
                                                                      g
oggvorbis opengl oss pam perl png python readline sdl ssl stroke tcltk tcpd te 
                                                                               
                  tex tiff truetype truetype-fonts type1-fonts usb userlocales
xml2 xmms xpm xrand                                                            
                                       r xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
Comment 1 George Prowse 2005-03-15 18:42:05 UTC
sorry about the weird emerge info, should have had the term open fully...
Comment 2 Thomas Matthijs (RETIRED) gentoo-dev 2005-03-16 00:53:58 UTC
try
java-config -L

java-config -S blackdown-jdk

only jdk's have javac not jre's
Comment 3 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-16 07:48:06 UTC
as thomas pointed out, you have to use java-config blackdown-jdk with a jdk, not with a jre. also see: http://www.gentoo.org/doc/en/java.xml