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: Philip Nienhuis
Subject: Re: Java package install seems to be ok, but is NOT working.
Date: Fri, 18 Jan 2013 03:08:20 -0800 (PST)

Herdon wrote
> My system is Windows XP sp3, 32 bit.
> 
> My previous posting contained all messages Octave gave, copied directly
> from prompt, and pasted here. There was absolutely nothing more.
> 
> BUT, I have to say that I have NOT compiled anything, but installed Octave
> from the ready made package from here:
> http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/

Very intruiging.
Does your Octave installation have deviating write permissions?

Another possibility may be that the old Java package wasn't completely
removed because it was in use (might be because some Java class libs (.jar)
have been loaded while starting Octave, in that case some shared libs may be
in memory blocking removal of those library files on disk).

What you can do is some advanced but ugly surgery (tested on my local
Octave-3.6.2-gcc4.6.2 installation, WinXP SP3 like you):

-----start Octave & uninstall Java package:-----
pkg unload java
pkg uninstall java

-----quit Octave-----
----- Now, in the octave directory, go to
1. lib/octave/packages/
2. share/octave/packages/
and manually wipe any remaining java directories there ----

----- start Octave and clean up package list-----
pkg rebuild

----- quit Octave, and start Octave again. Check that no Java package is
installed:-----
pkg list

----- Prepare JAVA_HOME & PATH (note: locations & version may obviously
differ) + do some checks:-----

octave:2> setenv ("JAVA_HOME", "c:/programs/java/jdk1.6.0_33")
## In below command note single quotes to avoid interpreting backslash
octave:3> setenv ("PATH", [getenv("JAVA_HOME") '\bin' pathsep
getenv("PATH")])
octave:4> strsplit (getenv("PATH"), pathsep)
ans =
{
  [1,1] = c:/programs/java/jdk1.6.0_33\bin
  [1,2] = C:\WINDOWS\system32
  [1,3] = C:\WINDOWS
  [1,4] = C:\WINDOWS\System32\Wbem
  [1,5] = C:\Programs\TortoiseSVN\bin
:
<snip>
:
octave:5> system ("javac -version")
javac 1.6.0_33
ans = 0

----- Install Java 1.2.9 from SourceForge-----
octave:6> pkg install -forge -auto -verbose java
mkdir (C:\Home\Philip\LOCALS~1\Temp\oct-2)
untar (C:\Home\Philip\MyDocs\octave\java-1.2.9.tar.gz,
C:\Home\Philip\LOCALS~1\Temp\oct-2)
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:/Programs/Octave/Octave3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2
retrieving compile and link flags from
C:/Programs/Octave/Octave3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2
checking for F77_FUNC... yes
checking for octave...
C:/Programs/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/programs/java/jdk1.6.0_33/bin/java
checking for javac... /c/programs/java/jdk1.6.0_33/bin/javac
checking for jar... /c/programs/java/jdk1.6.0_33/bin/jar
checking for Java version... 1.6.0_33
configure: creating ./config.status
config.status: creating Makeconf

  "$prefix" is
C:/Programs/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:/Programs/Octave/Octave3.6.2_gcc4.6.2/bin/octave-3.6.2
(version 3.6.2)
   mkoctfile:   C:/Programs/Octave/Octave3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2
for Octave 2
   java:        yes

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

make: Entering directory `/tmp/oct-2/java/src'
if [ "Xi386X" = "XX" ]; then \
                C:/Programs/Octave/Octave3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2
-DHAVE_OCTAVE_36 -v -DJAVAPKG_BUILD -Ic:/programs/java/jdk1.6.0_33/include
-Ic:/programs/java/jdk1.6.0_33/include/win32 -o __java__.oct __java__.cc
-ladvapi32; \
        else \
                C:/Programs/Octave/Octave3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2
-DHAVE_OCTAVE_36 -v -DJAVAPKG_BUILD -DJAVA_ARCH=\\\"i386\\\"
-DJAVA_HOME=\\\"c:/programs/java/jdk1.6.0_33\\\" -Ic:/programs/
java/jdk1.6.0_33/include -Ic:/programs/java/jdk1.6.0_33/include/win32 -o
__java__.oct __java__.cc -ladvapi32; \
        fi
g++ -shared-libgcc -c -I/c/OctaveB/gplibs/include
-I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include 
-Ic:\Programs\Octave\Octave3.6.2_gcc4.6.2\include\octave-3.6.2\octave\..
-Ic:\Programs\Octave\Octave3.6.2_gcc4.6.2\include\octave-3.6.2\octave
-Ic:\Programs\Octave\Octave3.6.2_gcc4.6.2\include -mieee-fp 
-Ic:/OctaveB/gplibs/include/freetype2 -Ic:/OctaveB/gplibs/include
-IC:/OctaveB/gplibs/include   -g -O2  
-Ic:/programs/java/jdk1.6.0_33/include
-Ic:/programs/java/jdk1.6.0_33/include/win32  -DHAVE_OCTAVE_36
-DJAVAPKG_BUILD -DJAVA_ARCH=\"i386\"
-DJAVA_HOME=\"c;C:\Programs\Octave\Octave3.6.2_gcc4.6.2\msys\programs\java\jdk1.6.0_33\"
__java__.cc -o __java__.o
g++ -shared-libgcc -shared -Wl,--export-all-symbols -Wl,--enable-auto-import
-Wl,--enable-runtime-pseudo-reloc  -o __java__.oct  __java__.o   -ladvapi32
-Lc:\Programs\Octave\Octave3.6.2_gcc4.6.2\lib\octave\3.6.2
-Lc:\Programs\Octave\Octave3.6.2_gcc4.6.2\lib -loctinterp -loctave -lcruft
/c/programs/java/jdk1.6.0_33/bin/javac -source 1.3 -target 1.3
org/octave/ClassHelper.java org/octave/OctClassLoader.java
org/octave/Octave.java org/octave/OctaveReference.java
org/octave/Matrix.java org/octave/JDialogBox.java
org/octave/DlgListener.java org/octave/TeXtranslator.java
org/octave/TeXcode.java
rm -f octave.jar
/c/programs/java/jdk1.6.0_33/bin/jar cf octave.jar 
org/octave/ClassHelper.class  org/octave/OctClassLoader.class 
org/octave/Octave.class  org/octave/OctaveReference.class 
org/octave/Matrix.class  org/octave/JDialogBox.class 
org/octave/DlgListener.class  org/octave TeXtranslator.class 
org/octave/TeXcode.class org/octave/images/question.png org/octave/images
error.png org/octave/images/warning.png org/octave/images/information.png
org/octave/images octave.png
make: Leaving directory `/tmp/oct-2/java/src'
copyfile C:\Home\Philip\LOCALS~1\Temp\oct-2\java\src\__java__.h
C:\Home\Philip\LOCALS~1\Temp\oct-2\j
ava\src\octave.jarC:\Home\Philip\LOCALS~1\Temp\oct-2\java\inst
copyfile C:\Home\Philip\LOCALS~1\Temp\oct-2\java\src\__java__.oct
C:\Home\Philip\LOCALS~1\Temp\oct-2\java\inst\i686-pc-mingw32-api-v48+
For information about changes from previous versions of the java package,
run 'news ("java")'.

## Note the "java:   yes" line above, you'll only get that when JAVA_HOME is
set and
## the Java executables are found
octave:7> javamem

Java virtual machine (JVM) memory info:
Maximum available memory:          247 MiB;
   (...running garbage collector...)
OK, current status:
Total memory in virtual machine:    15 MiB;
Free memory in virtual machine:     15 MiB;
2 CPUs available.
octave:7>


If all this doesn't help you, I'm out of ideas.

Philip



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


reply via email to

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