help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java package install seems to be ok, but is NOT working.


From: Nusnus
Subject: Re: Java package install seems to be ok, but is NOT working.
Date: Mon, 18 Feb 2013 14:36:44 -0800 (PST)

Dear All, 

I am having the same issue and here is a copy of the prompt:


octave:1> setenv ("JAVA_HOME", "C:/Program Files/Java/jdk1.6.0_03")
octave:2> setenv ("JAVA_HOM")
octave:3> setenv ("JAVA_HOME", "C:/Program Files/Java/jdk1.7.0_13")
octave:4> setenv ("PATH", [getenv('PATH') pathsep 'C:/Program
Files/Java/jdk1.7.0_13/bin'])
octave:5> strsplit (getenv("PATH"), pathsep)
ans =
{
  [1,1] = C:\Program Files\Java\jdk1.7.0_13\bin
  [1,2] = C:\Program Files\NVIDIA Corporation\PhysX\Common
  [1,3] = C:\Perl\site\bin
  [1,4] = C:\Perl\bin
  [1,5] = C:\WINDOWS\system32
  [1,6] = C:\WINDOWS
  [1,7] = C:\WINDOWS\System32\Wbem
  [1,8] = C:\Program Files\Fichiers communs\DivX Shared\
  [1,9] = C:\Program Files\GTK2-Runtime\bin
  [1,10] = C:\Program Files\QuickTime\QTSystem\
  [1,11] = C:\Program Files\MiKTeX 2.8\miktex\bin
  [1,12] = C:\Program Files\SSH Communications Security\SSH Secure Shell
  [1,13] =
C:\Octave\Octave3.6.2_gcc4.6.2\libexec\octave\3.6.2\site\exec\i686-pc-mingw32
  [1,14] =
C:\Octave\Octave3.6.2_gcc4.6.2\libexec\octave\api-v48+\site\exec\i686-pc-mingw32
  [1,15] =
C:\Octave\Octave3.6.2_gcc4.6.2\libexec\octave\site\exec\i686-pc-mingw32
  [1,16] =
C:\Octave\Octave3.6.2_gcc4.6.2\libexec\octave\3.6.2\exec\i686-pc-mingw32
  [1,17] = C:\Octave\Octave3.6.2_gcc4.6.2\bin
  [1,18] = C:\Octave\Octave3.6.2_gcc4.6.2\gnuplot\bin
  [1,19] = C:\Octave\Octave3.6.2_gcc4.6.2\mingw32\bin
  [1,20] = C:\Octave\Octave3.6.2_gcc4.6.2\msys\bin
  [1,21] = C:\Octave\Octave3.6.2_gcc4.6.2\gs\gs9.05\bin
  [1,22] = C:\Octave\Octave3.6.2_gcc4.6.2\pstoedit
  [1,23] = C:\Octave\Octave3.6.2_gcc4.6.2\fig2dev
  [1,24] = C:/Program Files/Java/jdk1.7.0_13/bin
}
octave:6> system ("javac -version")
javac 1.7.0_13
ans = 0
octave:7> pkg install -forge -auto -verbose java
mkdir (C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\oct-2)
untar (C:\Documents and Settings\Administrateur\java-1.2.9.tar.gz,
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\oct-2)
./configure: line 3257: test: too many arguments
configure: WARNING: this package requires at least Java-1.5
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
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... C:/Octave/Octave3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2
retrieving compile and link flags from
C:/Octave/Octave3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2
checking for F77_FUNC... yes
checking for octave... C:/Octave/Octave3.6.2_gcc4.6.2/bin/octave-3.6.2
checking for OCTAVE_VERSION in Octave... 3.6.2
checking for octave_config_info('canonical_host_type') in Octave...
i686-pc-mingw32
checking for octave_config_info('SHLEXT') in Octave... dll
checking whether ln -s works... no, using cp -p
checking for ranlib... ranlib
checking for strip... strip
checking for java... /c/Program Files/Java/jdk1.7.0_13/bin/java
checking for javac... /c/Program Files/Java/jdk1.7.0_13/bin/javac
checking for jar... /c/Program Files/Java/jdk1.7.0_13/bin/jar
checking for Java version...
configure: creating ./config.status
config.status: creating Makeconf

  "$prefix" is
C:/Octave/Octave3.6.2_gcc4.6.2/share/octave/packages/java-1.2.9
  "$exec_prefix" is ${prefix}

octave commands will install into the following directories:
   m-files:   /c/OctaveB/octave-3.6.2/share/octave/3.6.2/site/m/octave-forge
   oct-files:
/c/OctaveB/octave-3.6.2/lib/octave/3.6.2/site/oct/i686-pc-mingw32/octave-forge
   binaries: 
/c/OctaveB/octave-3.6.2/libexec/octave/3.6.2/site/exec/i686-pc-mingw32
alternatives:
   m-files:  
/c/OctaveB/octave-3.6.2/share/octave/3.6.2/site/octave-forge-alternatives/m
   oct-files:
/c/OctaveB/octave-3.6.2/lib/octave/3.6.2/site/octave-forge-alternatives/oct/i686-pc-mingw32

shell commands will install into the following directories:
   binaries:  ${exec_prefix}/bin
   man pages: ${datarootdir}/man
   libraries: ${exec_prefix}/lib
   headers:   ${prefix}/include

octave-forge is configured with
   octave:      C:/Octave/Octave3.6.2_gcc4.6.2/bin/octave-3.6.2 (version
3.6.2)
   mkoctfile:   C:/Octave/Octave3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2 for
Octave 2
   java:        Java Development Kit not found

find . -name NOINSTALL -print    # shows which toolboxes won't be installed

make: Entering directory `/tmp/oct-2/java/src'
Java support not compiled
make: Leaving directory `/tmp/oct-2/java/src'
For information about changes from previous versions of the java package,
run 'news ("java")'.
octave:8> pkg list
Package Name  | Version | Installation directory
--------------+---------+-----------------------
        java *|   1.2.9 |
C:\Octave\Octave3.6.2_gcc4.6.2\share\octave\packages\java-1.2.9
octave:9> s = javaObject ("java.lang.String", "Hello OctaveString")
warning: the `javaObject' function is not yet implemented in Octave

Please read `http://www.octave.org/missing.html' to learn how you can
contribute missing functionality.


error: `javaObject' undefined near line 9 column 5
octave:9> pkg load java
octave:10> s = javaObject ("java.lang.String", "Hello OctaveString")
warning: the `javaObject' function is not yet implemented in Octave

Please read `http://www.octave.org/missing.html' to learn how you can
contribute missing functionality.


error: `javaObject' undefined near line 10 column 5


I am really desperate to get this working, hope you can help




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Java-package-install-seems-to-be-ok-but-is-NOT-working-tp4648763p4649965.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]