0

I currently have Octave 4.2 with Java (installed view Homebrew) on Mac (OS 10.12.6). How can I downgrade to Octave 3.8?

I tried the generic instructions in this thread, but they did not help: Homebrew install specific version of formula? There's just one Octave and no versions.

I am not wedded to using Homebrew for this. I'll explore any way of getting Octave 3.8.

rayryeng
  • 96,704
  • 21
  • 166
  • 177
jrgray
  • 405
  • 3
  • 9
  • You may need to resort to using MacPorts to install Octave 3.8+ - especiall with Java support. I believe it still has those old formulas available. BTW, I'm not sure what your motivation is to downgrade as Octave 3.8 and lower is considered quite old. – rayryeng Aug 14 '17 at 17:53
  • Thanks reyreng, I'll check that out. I inherited some legacy octave code that is failing on the java calls. ("java_new" not defined, etc). I think it will be easier to get the old version of octave working than to update the code. – jrgray Aug 14 '17 at 18:39
  • Aha, that makes sense. OK, good luck! – rayryeng Aug 14 '17 at 18:42
  • I never used java in GNU Octave but after reading NEWS and a quick search in hg: "java_new is obsolete and will be removed from a future version of Octave; please use javaObject instead" So after all I think it should be easier to adapt the old code to Octave 4.2 – Andy Aug 14 '17 at 20:15
  • Interesting, thanks Andy. If its really just a simple name change, that would be easier than I thought. octave 3.8 via `port install octave-legacy +java` is still compiling after 4 hours!) – jrgray Aug 14 '17 at 23:47
  • Btw, `java_new` was deprecated in 4.0 so you don't have to go to 3.8. My strategy to convert your code for 4.2 would be to install 4.0, then run your code and fix all the warnings because deprecated functions, then go to 4.2 – Andy Aug 15 '17 at 06:43

0 Answers0