Message3617

Author otmarhumbel
Recipients catherinedevlin, otmarhumbel
Date 2008-09-24.09:36:40
SpamBayes Score 4.4964032e-15
Marked as misclassified No
Message-id <1222249001.36.0.399779365954.issue1135@psf.upfronthosting.co.za>
In-reply-to
Content
using gij on Gnome:

huo@bisonws0135:~/temp$ java -version
java version "1.5.0"
gij (GNU libgcj) version 4.2.3 (Ubuntu 4.2.3-2ubuntu6)

Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

The installer switches to headless mode:

huo@bisonws0135:~/temp$ gij -jar jython_installer-2.5a3.jar
Welcome to Jython !
You are about to install Jython version 2.5a3
(at any time, answer c to cancel the installation)
For the installation process, the following languages are available:
English, German
Please select your language [e/g] >>> e
Do you want to read the license agreement now ? [y/n] >>> n
Do you accept the license agreement ? [y/n] >>> y
The following installation types are available:
  1. All (everything, including sources)
  2. Standard (core, library modules, demos and examples, documentation)
  3. Minimum (core)
  9. Standalone (a single, executable .jar)
Please select the installation type [1/2/3/9] >>> 1
Do you want to exclude parts from the installation ? [y/n] >>> n
Please enter the target directory >>> /home/huo/bin/jython-2.5a3
Unable to find directory /home/huo/bin/jython-2.5a3, create it ? [y/n] >>> y
Please enter the target java home directory (== for current) >>> ==
/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0/jre not found. 
Please enter the target java home directory (== for current) >>> c
Installation cancelled.
huo@bisonws0135:~/temp$ 

But then gij returns a non existing java.home:

huo@bisonws0135:~/bin/jython-2.2.1$ java -jar jython.jar
Jython 2.2.1 on java1.5.0
Type "copyright", "credits" or "license" for more information.
>>> from java.lang import System
>>> from java.io import File
>>> javahome = File(System.getProperty("java.home"))
>>> javahome
/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0/jre
>>> javahome.exists()
0
>>> 

This could be related to:
https://bugs.launchpad.net/ubuntu/+source/java-common/+bug/45348

I'll check if the installer could fallback to plain 'java' if the
java.home provided by gij does not exist.
History
Date User Action Args
2008-09-24 09:36:41otmarhumbelsetmessageid: <1222249001.36.0.399779365954.issue1135@psf.upfronthosting.co.za>
2008-09-24 09:36:41otmarhumbelsetrecipients: + otmarhumbel, catherinedevlin
2008-09-24 09:36:41otmarhumbellinkissue1135 messages
2008-09-24 09:36:40otmarhumbelcreate