help-octave
[Top][All Lists]
Advanced

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

help with java in octave


From: Dmitri A. Sergatskov
Subject: help with java in octave
Date: Tue, 30 Aug 2016 16:00:28 -0500

I was given a matlab file (that apparently "just works" in matlab) that
has lines:

dateFormat = java.text.SimpleDateFormat('dd-MMM-yyyy HH:mm:ss');

...

cal = java.util.GregorianCalendar(java.util.TimeZone.getTimeZone('GMT'), java.util.Locale.US);

(etc...)

In octave (bot 4.0.3 and dev) those returns errors:

error: 'java' undefined near line 1 column 14

I have never used jave with octave, so perhaps i am missing some basics.
Java is enabled:

octave_config_info ("features").JAVA
ans =  1

octave> javamem

Java virtual machine (JVM) memory info:
Maximum available memory:        5358.5 MiB;
   (...running garbage collector...)
OK, current status:
Total memory in virtual machine: 362.5 MiB;
Free memory in virtual machine:  360.309 MiB;
4 CPUs available.

Though

octave> javachk ("jvm")
ans =

Also javaclasspath is empty.

What do I need to do?

Dmitri.
--






reply via email to

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