This is interesting, since it works for me out of the box:
ingo@freguntu:~/Frege/frege$ java -jar ../eclipse-plugin/lib/fregec.jar -version
3.23.247-gd535935
runtime 0.064 wallclock seconds.
ingo@freguntu:~/Frege/frege$ cat frege/StackOverflow.fr
package StackOverflow where
data ObservableList e = mutable native javafx.collections.ObservableList where
native addAll :: ObservableList e -> MutableIO (JArray e) -> IO Bool
ingo@freguntu:~/Frege/frege$ java -jar ../eclipse-plugin/lib/fregec.jar -d /tmp frege/StackOverflow.fr
calling: javac -cp ../eclipse-plugin/lib/fregec.jar:/tmp -d /tmp -sourcepath . -encoding UTF-8 /tmp/StackOverflow.java
Note: /tmp/StackOverflow.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
runtime 1.897 wallclock seconds.
ingo@freguntu:~/Frege/frege$
To be sure, the java compiler complains about the un-generic code that Frege emits, but there is no point in typechecking it again, only weaker :)
Please try the fregec that comes with the last eclipse plugin, it should work.
Also, when in eclipse, make sure you are not fooled by error markers not going away. For example, when you save, the errors become sticky and won't go away without recompilation.