Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36922 - broken jedit ebuild
Summary: broken jedit ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-31 16:02 UTC by J.P. Cummins
Modified: 2004-01-02 23:53 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 J.P. Cummins 2003-12-31 16:02:13 UTC
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 Ray Russell Reese III (RETIRED) gentoo-dev 2003-12-31 21:57:18 UTC
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 J.P. Cummins 2004-01-02 23:53:50 UTC
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.