[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I install the java and jhandles packages?
From: |
Matthias Brennwald |
Subject: |
Re: How do I install the java and jhandles packages? |
Date: |
Fri, 18 Jul 2008 15:23:45 +0200 |
On Fri, 2008-07-18 at 14:48 +0200, Michael Goffioul wrote:
> On Fri, Jul 18, 2008 at 12:43 PM, Matthias Brennwald
> <address@hidden> wrote:
> > Dear all
> >
> > I tried to install the java and jhandles packages. I have Octave 3.0
> > running on an Ubuntu 8.04 machine. I downloaded the java package and the
> > jhandles package to my Desktop. I couldn't find any specific
> > instructions on how to install the java and jhandles packages, so I
> > assumed installing them works the same way as with other packages. I did
> > the following in Octave:
> >
> > ------------------------------------
> > octave:1> cd Desktop/
> > octave:2> pkg install java-1.2.4.tar.gz
> > octave:3> pkg install jhandles-0.3.3.tar.gz
> > make: *** [all] Error 255
> > 'make' returned the following error: make: Entering directory
> > `/tmp/oct-Swp9i8/jhandles-0.3.3/src'
> > Java support not compiled
> > make: Leaving directory `/tmp/oct-Swp9i8/jhandles-0.3.3/src'
> > error: called from `configure_make' in
> > file /usr/local/share/octave/3.0.0+/m/pkg/pkg.m near line 1251, column 2
> > error: called from `install' in file `/usr/local/share/octave/3.0.0
> > +/m/pkg/pkg.m'
> > error: evaluating switch command near line 275, column 1
> > error: called from `pkg' in file `/usr/local/share/octave/3.0.0
> > +/m/pkg/pkg.m'
> > ------------------------------------
> >
> > What am I doing wrong?
>
> Can you check whether the java package is working?
>
> l = java_new ('java.util.LinkedList')
octave:1> l = java_new ('java.util.LinkedList')
error: `java_new' undefined near line 1 column 5
error: evaluating assignment expression near line 1, column 3
> If the java package does not work, the usual cause is due to the
> installation path of Java and you need to set JAVA_HOME
> explicitely. See for instance this thread
>
> http://www.nabble.com/Trouble-installing-Java-and-Jhandles-td15653720.html#a15747857
Aha. I've read that, but I don't understand what I am supposed to do. I
am a Linux dummy...
> Did you install JOGL?
JOGL? What's that?
> Can you use the -verbose flag with pkg to get the output of the
> configure script?
octave:1> cd Desktop/
octave:2> pkg install -verbose jhandles-0.3.3.tar.gz
make: *** [all] Error 255
mkdir (/tmp/oct-ugTPDw)
untar (jhandles-0.3.3.tar.gz, /tmp/oct-ugTPDw)
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for mkoctfile... mkoctfile
retrieving compile and link flags from mkoctfile
checking for F77_FUNC... yes
checking for octave... octave
checking for OCTAVE_VERSION in Octave... 3.0.0+
checking for octave_config_info('canonical_host_type') in Octave...
x86_64-unknown-linux-gnu
checking for octave_config_info('SHLEXT') in Octave... so
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for strip... strip
checking for java... java
'make' returned the following error: make: Entering directory
`/tmp/oct-ugTPDw/jhandles-0.3.3/src'
Java support not compiled
make: Leaving directory `/tmp/oct-ugTPDw/jhandles-0.3.3/src'
error: called from `configure_make' in
file /usr/local/share/octave/3.0.0+/m/pkg/pkg.m near line 1251, column 2
error: called from `install' in file `/usr/local/share/octave/3.0.0
+/m/pkg/pkg.m'
error: evaluating switch command near line 275, column 1
error: called from `pkg' in file `/usr/local/share/octave/3.0.0
+/m/pkg/pkg.m'
Thanks for your help
Matthias
--
Matthias Brennwald
Project Manager Safety Analysis
Nagra, 5430 Wettingen, Switzerland
+41 56 437 13 32