I have started a stepwise approach for training 3.3.
The goal is to test the tool chain before doing more advanced stuff.
1) Generate standalone ThingML code into "Plain Java" using HEADS IDE
Run the code in ...thingml-gen/java
Using: mvn clean package exec:java -Dexec.mainClass=org.thingml.generated.Main
Ok
2) Generate standalone ThingML code into "Compile Java Kevoree" using HEADS IDE
Compile the code in ...thingml-gen/java
Using: mvn clean install
Ok
3) Compile/run the ThingML process inside Kevoree
Compile the code in ...thingml-gen/java
Using: mvn kev:run
Fail .....
00:00 INFO: Bootstrap Kevoree node : node0, version 5.2.5
java.io.FileNotFoundException: /home/etostd/heads-co/my-training-fork/3.Wrapping_ThingML_into_Kevoree/3.3_Contrib/SINTEF-INST/thingml-gen/java/src/main/kevs/main.kevs (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:138)
at org.kevoree.bootstrap.Bootstrap.bootstrapFromFile(Bootstrap.java:348)
at org.kevoree.bootstrap.Bootstrap.main(Bootstrap.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
The problem seems to be that the kev-script not is generated.
FIX:
cd ...thingml-gen/java/src/main
mkdir kevs
Redo steps 2) and 3)
Now it works....:-)
It seems that the kev-script not is generted due to missing directory.
I have started a stepwise approach for training 3.3. The goal is to test the tool chain before doing more advanced stuff.
1) Generate standalone ThingML code into "Plain Java" using HEADS IDE Run the code in ...thingml-gen/java
Using: mvn clean package exec:java -Dexec.mainClass=org.thingml.generated.Main Ok 2) Generate standalone ThingML code into "Compile Java Kevoree" using HEADS IDE Compile the code in ...thingml-gen/java
Using: mvn clean install Ok 3) Compile/run the ThingML process inside Kevoree Compile the code in ...thingml-gen/java
Using: mvn kev:run Fail .....
00:00 INFO: Bootstrap Kevoree node : node0, version 5.2.5 java.io.FileNotFoundException: /home/etostd/heads-co/my-training-fork/3.Wrapping_ThingML_into_Kevoree/3.3_Contrib/SINTEF-INST/thingml-gen/java/src/main/kevs/main.kevs (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:138)
at org.kevoree.bootstrap.Bootstrap.bootstrapFromFile(Bootstrap.java:348)
at org.kevoree.bootstrap.Bootstrap.main(Bootstrap.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
The problem seems to be that the kev-script not is generated.
FIX: cd ...thingml-gen/java/src/main mkdir kevs Redo steps 2) and 3) Now it works....:-)
It seems that the kev-script not is generted due to missing directory.