I couldn't find a single out-of-the-box example on this topic.
I succeeded in calling from Frege to Frege, as well as from Java to Java in the same project, but I couldn't get the .java-files to recognize the .fr-files
What steps should I follow to get the following code to work (in Consumer.java)
My basic setup looks like that:
I installed the eclipse-plugin and followed the instructions.
java version "1.7.0_79"
Project Builders in the following order:
Frege builder
Java Builder
Project path:
* src
- package tutorials
-- Consumer.java
-- FregeProducer.fr
* Referenced Libraries
- fregec.jar
* JRE System Library
- ...
Consumer:
package tutorials;
public class Consumer {
public static void main(String[] args) {
System.out.println("This should be zero: " + FregeProducer.myZero);
}
}
FregeProducer:
module FregeProducer where
myZero = 0