There have been some fixes committed recently to support MinGW better. So the first thing would be to grab sources from the SVN repository (the changed files are src/Makefile, src/configure.base and src/__java__.cc). Then you have to define JAVA_HOME variable as C:\Programs\Java\jdk1.6.0_16 and it should (hopefully) work out of the box.
Michael. On Tue, Sep 22, 2009 at 6:09 PM, Philip Nienhuis <[email protected]> wrote: > Hi, > > Trying to install the java-1.2.6 package in Octave-MingW turns into a > lengthy affair on my WinXP SP3 box. > > I'm running octave-3.2.0 from the > Octave-3.2.0_i686-pc-mingw32_gcc-4.3.0_setup.exe file on octave.sf.net. > > I installed the Java development package jdk-6u16-windows-i586.exe into > C:\Programs\Java\jdk1.6.0_16 > The .\include directories thus live in > C:\Programs\Java\jdk1.6.0_16\include and > C:\Programs\Java\jdk1.6.0_16\include\win32 > > I've added these dirs to the environment variable JAVA_INCS: > > ========= CMD window ============= > C:\Home\Philip>echo %JAVA_INCS% > -I:C:/Programs/java/jdk1.6.0_16/include > -I:C:/Programs/java/jdk1.6.0_16/include/win32 > ========== /CMD window =========== > > & to be sure, also set the variable JAVA_INCS in Octave: > > Octave-3.2.0: 5 > JAVA_INCS > JAVA_INCS = -I:C:/Programs/java/jdk1.6.0_16/include > -I:C:/Programs/java/jdk1.6.0_16/include/win32 > Octave-3.2.0: 6 > > > Trying "pkg install java-1.2.6.tar.gz" then gives: > > Octave-3.2.0: 5 > pkg install java-1.2.6.tar.gz > 0 [main] sh 4528 open_stackdumpfile: Dumping stack trace to > sh.exe.stackdump > ./config.status: line 72: 5636 Segmentation fault (core dumped) ( > test "X`printf %s $as_echo`" > = "X$as_echo" ) 2>/dev/null > 0 [main] sh 6104 open_stackdumpfile: Dumping stack trace to > sh.exe.stackdump > ./config.status: line 81: 5144 Segmentation fault (core dumped) ( > PATH='/bin;/bin'; FPATH=$PAT > H; sh -c : ) >/dev/null 2>&1 > ./config.status: line 88: 5472 Segmentation fault (core dumped) ( > ( MAIL=60; unset MAIL ) || e > xit ) >/dev/null 2>&1 > 0 [main] sh 5344 open_stackdumpfile: Dumping stack trace to > sh.exe.stackdump > 0 [main] sh 5864 open_stackdumpfile: Dumping stack trace to > sh.exe.stackdump > : error: cannot create .lineno; rerun with a POSIX shell > the configure script returned the following error: checking for gcc... > mingw32-gcc-4.3.0-dw2 > checking for C compiler default output file name... a.exe > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... .exe > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether mingw32-gcc-4.3.0-dw2 accepts -g... yes > checking for mingw32-gcc-4.3.0-dw2 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.2.0 > 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... yes > checking for ranlib... ranlib > checking for strip... strip > checking for java... java > checking for javac... javac > checking for jar... jar > checking for Java version... 1.6.0_16 > configure: creating ./config.status > error: called from `pkg>configure_make' in file > C:\Programs\Octave\3.2.0_gcc-4.3.0\share\octave\3.2. > 0\m\pkg\pkg.m near line 1242, column 2 > error: called from: > error: > C:\Programs\Octave\3.2.0_gcc-4.3.0\share\octave\3.2.0\m\pkg\pkg.m at > line 714, column 5 > error: > C:\Programs\Octave\3.2.0_gcc-4.3.0\share\octave\3.2.0\m\pkg\pkg.m at > line 287, column 7 > Octave-3.2.0: 5 > > > This also happens with the octave-MingW-3.2.2 binary Windows packages > from octave-forge on another box (WinXP SP2). > > I think the core dumps reported first on top actually result from the > errors lower in the messages list; I suppose they come from distinct > processes writing to output? > > My system: > Windows XP SP3 English; Core Duo 2.5 Ghz 2GB RAM % several gigs of free > disk space. > > Is the java-1.2.6 package broken for MingW? Or am I doing something > wrong here? > How can I dig further? > > Thanks, > > Philip > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Octave-dev mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/octave-dev > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
