Thread: [F2j-devel] Missing doc?
Status: Alpha
Brought to you by:
keithseymour
From: Daniel F. <fee...@nb...> - 2014-03-04 12:09:25
|
Is something missing from the docs? I downloaded and installed f2j version .8 without any difficulty, but I can't seem to get it to do very much. For example on Linux (gcc version 4.4.6): program t5 real x,y common /newshr/x,y write(*,*) 'hello world' stop end generates a "segment violation" when I run "f2java t5.f". If I remove the second element of the common block I can at least get f2java to provide an error message, but it is only "parsing failed" at line 2. On FreeBSD (ggc version 4.2.1) I can at least compile the sample program in the doc, but when executed I get only a traceback ending in: Exception in thread "main" java.lang.NoClassDefFoundError: org/netlib/util/Util at Blah.main(blah.f) I installed without a prefix and am running from the f2j-0.8/src directory. There is a Util.java in f2j-0.8/util/org/netlig/util. For most other programs on FreeBSD I get Error: Could not find or load main class T5 I don't understand why it found Blah, but can't find T5 - there are .java and .class files for both. On Solaris (gcc version 3.4.6) the programs compile to Java but the message at execution is: Exception in thread "main" java.lang.NoClassDefFoundError: org/netlib/util/Util at Blah.main(blah.f) Any suggestions? I have a fortran program that f2c handled without modification, so I had hoped that f2j would work on it. I think there is something else I have to do but various permutaions of arguments to the "-c" option haven't helped. I am new to Java - perhaps there is something always required for Java that I should already know? Thanks for any help at all. Daniel Feenberg NBER |