First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 36922
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: J.P. Cummins <jpc797s@smsu.edu>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 36922 depends on: Show dependency tree
Show dependency graph
Bug 36922 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-12-31 16:02 0000
When I try to emerge jedit I get the following error:
Error: JAVA_HOME is not defined correctly.

Here is a brief summary of what I've tried doing:

root@dmonkey jcummins # emerge jedit
Calculating dependencies ...done!
>>> emerge (1 of 1) app-editors/jedit-4.2_pre8 to /
>>> md5 src_uri ;-) jedit42pre8source.tar.gz
>>> Unpacking source...
>>> Unpacking jedit42pre8source.tar.gz to /var/tmp/portage/jedit-4.2_pre8/work
>>> Source unpacked.
/usr/bin/ant: line 15: [: too many arguments
Error: JAVA_HOME is not defined correctly.
  We cannot execute jc_options: java not found
 
!!! ERROR: app-editors/jedit-4.2_pre8 failed.
!!! Function src_compile, Line 32, Exitcode 1
!!! compile problem
 
root@dmonkey jcummins # set JAVA_HOME=/opt/blackdown-jdk-1.4.1/bin/
root@dmonkey jcummins # set env JAVA_HOME=/opt/blackdown-jdk-1.4.1/bin/
root@dmonkey jcummins # emerge jedit
Calculating dependencies ...done!
>>> emerge (1 of 1) app-editors/jedit-4.2_pre8 to /
>>> md5 src_uri ;-) jedit42pre8source.tar.gz
>>> Unpacking source...
>>> Unpacking jedit42pre8source.tar.gz to /var/tmp/portage/jedit-4.2_pre8/work
>>> Source unpacked.
/usr/bin/ant: line 15: [: too many arguments
Error: JAVA_HOME is not defined correctly.
  We cannot execute jc_options: java not found
 
!!! ERROR: app-editors/jedit-4.2_pre8 failed.
!!! Function src_compile, Line 32, Exitcode 1
!!! compile problem


Reproducible: Always
Steps to Reproduce:
1. emerge jedit
Actual Results:  
root@dmonkey jcummins # emerge jedit
Calculating dependencies ...done!
>>> emerge (1 of 1) app-editors/jedit-4.2_pre8 to /
>>> md5 src_uri ;-) jedit42pre8source.tar.gz
>>> Unpacking source...
>>> Unpacking jedit42pre8source.tar.gz to /var/tmp/portage/jedit-4.2_pre8/work
>>> Source unpacked.
/usr/bin/ant: line 15: [: too many arguments
Error: JAVA_HOME is not defined correctly.
  We cannot execute jc_options: java not found
 
!!! ERROR: app-editors/jedit-4.2_pre8 failed.
!!! Function src_compile, Line 32, Exitcode 1
!!! compile problem



root@dmonkey jcummins # emerge info
Portage 2.0.49-r18 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.0-mm1)
=================================================================
System uname: 2.6.0-mm1 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control
/var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apache2 apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gpm
gtk gtk2 imlib java jpeg kde libg++ libwww mad maildir mikmod motif mozilla mpeg
mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime
readline sdl slang spell ssl svga tcpd truetype x86 xfwm4 xml2 xmms xv zlib"

------- Comment #1 From Ray Russell Reese III (RETIRED) 2003-12-31 21:57:18 0000 -------
jEdit being a Java application relies on Java being configured properly. Gentoo
provides a tool java-config to manage JVMs and configure them. Please see the
manpage for java-config and configure your JVM.

Once you configure your JVM you can emerge jEdit.  I've also added a check in
the ebuild to provide a cleaner looking error message that explains how to
configure your JVM.

Thanks!

------- Comment #2 From J.P. Cummins 2004-01-02 23:53:50 0000 -------
the java binary was not in my path.  I edited /etc/profile to include
/opt/blackdown-jre-1.4.1 in the path statement.  Jedit works fine now.  Thanks.

First Last Prev Next    No search results available      Search page      Enter new bug