Author Topic: hybrid scripting, first steps  (Read 356 times)

ngong

  • EA User
  • **
  • Posts: 160
  • Karma: +0/-2
    • View Profile
hybrid scripting, first steps
« on: January 10, 2019, 10:08:19 pm »
Last year SPARX Systems has released a 1.0 version of a document called Hybrid Scripting. It comes with an example for Java programming language. I am on EA 14.1 and gave it a try, without success. Is someone out the who ran the documented Java example out-of-the-box? On my installation it did not find pathes, it assumes EA to be installed in a specific location ...

Did I overlook something?

Any help welcome.

p.s. The restriction to 32-bit Java for my opinion contradicts the introductory sentence: "... allows script authors to leverage
existing skills ...". Java language has gone far beyond 1.7 version. And 32-bit Java ran out of maintenance.
Rolf

Helmut Ortmann

  • EA User
  • **
  • Posts: 937
  • Karma: +39/-1
    • View Profile
Re: hybrid scripting, first steps
« Reply #1 on: January 11, 2019, 03:03:37 am »
Hi Rolf,

on https://community.sparxsystems.com/community-resources/1219-use-java-c-co-for-your-scripting you find everything you need to start with Scripting in Java. The article links to Github with:
- EA model
- Java code
- A VB Script (code) to call the Java Class from EA
- WiKi, most is C# related but there is also a Java example (running)

Regarding paths: You have to make sure that the JDK, bin folder is within the environment variable %PATH%.


If you have question, advice or improvement don't hesitate to contact me.



Best regard,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Helmut Ortmann

  • EA User
  • **
  • Posts: 937
  • Karma: +39/-1
    • View Profile
Re: hybrid scripting, first steps
« Reply #2 on: January 11, 2019, 03:09:03 am »
Hi Rolf,

regarding Java32.

Make an official feature request. May be it helps.

Best regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

ngong

  • EA User
  • **
  • Posts: 160
  • Karma: +0/-2
    • View Profile
Re: hybrid scripting, first steps
« Reply #3 on: January 12, 2019, 04:40:24 am »
Thanks Helmut. Still no easy, but we can talk.
@Java32 - I leave it to Sparx whether to thoroughly support Java. If not ... I would recommend to support the Java community.
« Last Edit: January 12, 2019, 05:14:36 am by ngong »
Rolf