help-octave
[Top][All Lists]
Advanced

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

Re: Java error with io. Octave v. 3.6.2 mingw version on windows 7


From: karthik ramachandran
Subject: Re: Java error with io. Octave v. 3.6.2 mingw version on windows 7
Date: Tue, 29 May 2012 20:08:18 -0400

package list shows :   java *|   1.2.8 | C:\Octave\Octave3.6.1_gcc4.6.2\share\octave\packages\java-1.2.8

and PKG_ADD reads ; 

## PKG_ADD
## add paths of io pkg java jars if java pkg is installed and loaded
pkglist = pkg ("list");
javapkgind = find (cellfun(@(x) strcmp(x.name, "java"), pkglist), 1, "first");
if ~isempty (javapkgind)
  javapkg = pkglist{javapkgind};
  if javapkg.loaded
    # Assume jar files are in /lib/java and let chk_spreadsheet_support sort it out
    libdir = octave_config_info("libdir");
    spr_status = chk_spreadsheet_support ([libdir "/java"]);
  endif
endif


Any other suggestions?

Karthik

On Tue, May 29, 2012 at 8:16 AM, Sergei Steshenko <address@hidden> wrote:




----- Original Message -----
> From: Martin Helm <address@hidden>
> To: karthik ramachandran <address@hidden>
> Cc: address@hidden
> Sent: Tuesday, May 29, 2012 2:25 PM
> Subject: Re: Java error with io. Octave v. 3.6.2 mingw version on windows 7
>
> Am 29.05.2012 05:06, schrieb karthik ramachandran:
>>   followed the instructions on the wiki on installing v 3.6.1 of octave
>>  for windows 7. I have the java sun jdk 1.6_30 in my path.  Both java
>>  and javac can be run from the command line.
>>
>>
> Check if the java package is installed and loaded in octave
>
> pkg list
>
> should show a package named java and it should have a *.
> If it is there but not loaded (no *) try to load it with
>
> pkg load java
>
> (the pkg commands have to be invoked from the octave prompt)
> _______________________________________________


And if this helps, it's most likely yet another bug in packaging system - a package should load all its dependencies first.

Regards,
  Sergei.




--
Karthik Ramachandran
Mobile: 412-606-8981

reply via email to

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