Magik on Java

Background

The release of Smallworld 5.0 (SWV) is a game changer for Smallworld and the community. This introduces a whole new realm. GE has combined the power & flexibility of Magik with the wide spread talent pool & existing functionality of Java. However this is a dramatic change to how things are done with Smallworld including, but not limited to, builds, 3rd Party deliveries, Java Interfaces, and more!

Please include your thoughts, experiences, and tricks here for the community to quickly come up to speed with SWV!

Install Information

The install is done thru a JAR file delivered in the ISO file. You run it by double clicking the JAR file or using "java -jar <product>_installer.jar"

Help

Help for 5.0 is only available online with user/password… Kind of good in that it may be kept up to date.. Very bad that you need internet connectivity to access help… Hopefully they will offer a download or something…

The link to 5.0 help is: https://smallworld.gedigitalenergy.com/docs/en/swDocs5.htm

Install Issues

Bad Colors

We have run into an issue with Smallworld 5/Java on a windows 7 virtual machine. When starting Smallworld, the application manager is all distorted and unusable. We have tracked it down to a java issue, but still have no solution. A way to test for correct colors is to open the about Java screen. You can do this from the Smallworld JRE:

sw510\core\jre\x64\bin\javacpl.exe -tab about
We will see something like:
aboutJava.PNG

We will post something once we determine the problem. If you know, please comment here.

Upgrade Information

This link provides additional information for Smallworld 5 Upgrades

Required Code Changes

Be on the Look Out

BOLOs are upgrade tidbits that may cause problems in SWV that wasn't seen in previous versions

Configuration

This link provides information for Smallworld 5 Configurations.

Builds

This link provides additional information for Smallworld 5 builds

Database Contexts(?)

There is a new concept of Database Contexts(? please correct if different terminology) that save the exemplar and join information that used to be save in the open images.

<NEED TO ADD MORE HERE, ANYONE?>

Debugging/Tools

The Eclipsed based MDT is the recommended IDE by GE.

But you can still use Emacs.

Smallworld 5 Debugging Tips

3rd Party Deliverables

From what I understand 3rd Party Vendors will be delivering JAR files now… <HOW DO WE CREATE JARS?> <WHAT ABOUT RESOURCES?>

Reciprocal Calls Magik from/to Java

There is now a way to call Magik code directly from Java, and I believe Java code directly from Magik. Gone is the requirement of ACPs for Magik-Java functionality! <NEED EXAMPLES OF THIS HERE>

One thing I know of is the fact magik methods can support camel case by using '|' The following is an example, though not 100% positive on the arguments…

_method an_exemplar.|camelCaseMethod|(_gather args)

Viewing JavaDoc JAR Files

Firefox supports opening JavaDoc JAR files with the need to decompress them.. Use the following example in a BAT file next to your javadoc.jar. Don't forget the '!/' at the end!

"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" jar:file:///%~dp0sanselan-0.97-incubator-javadoc.jar!/index.html
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License