Code Monkey home page Code Monkey logo

dominoapilocalexample's Introduction

Synopsis

Moonshine IDE is a free IDE built with Adobe AIR. You can create ActionScript 3, Apache Flex®, Apache Royale® and Feathers projects from Moonshine-IDE. It also provides cloud support.

Motivation

We want to provide a free IDE to our community for ActionScript projects. An IDE which is cross platform and provides Apache Flex®, Apache Royale®, Feathers and cloud support.

Local Build

1. Install Apache Ant

To build Moonshine IDE you need to install Apache Ant. You can also install Apache Ant using npm, chocolatey, etc.

2. Download SDKs

To build Moonshine IDE you need to download:

If you've used Moonshine IDE before and already downloaded these SDKs with Moonshine SDK Installer you can use existing SDKs. By default they're installed in:

  • C:\MoonshineSDKs\Flex_SDK\Flex_xxx_AIR_xxx on Windows
  • /Users/$username/Downloads/MoonshineSDKs on Mac

3. Clone Moonshine SDK Installer

To build Moonshine IDE you also need Moonshine SDK Installer source code. You can clone Moonshine SDK Installer from: https://github.com/prominic/Moonshine-SDK-Installer.git.

You should place SDK Installer repository on the same level as Moonshine IDE. So if you have Moonshine IDE in C:\Repos\Moonshine-IDE you should have SDK Installer in C:\Repos\Moonshine-SDK-Installer.

4. Additional Required Projects

These projects are also required:

5. Change configuration files for local build

In Moonshine-IDE\ide\MoonshineDESKTOPevolved\build\ApplicationProperties.xml change:

  • Build version to something newer than already installed eg.

     <buildVersion><![CDATA[2.7.0]]></buildVersion>
    
  • If you have FLEX_HOME set up as environment variable you can skip this step. If not, set one of the following parameters:

    On Windows 32-bit:

     <winSDKPath><![CDATA[C:\MoonshineSDKs\Flex_SDK\Flex_xxx_AIR_xxx]]></winSDKPath>
    

    On Windows 64-bit:

     <winSDKPath64><![CDATA[C:\MoonshineSDKs\Flex_SDK\Flex_xxx_AIR_xxx]]></winSDKPath64>
    

    On Mac and Linux:

     <unixSDKPath><![CDATA[path/to/Flex_xxx_AIR_xxx]]></unixSDKPath>
    

In Moonshine-IDE\ide\MoonshineDESKTOPevolved\src\MoonshineDESKTOP-app.xml

  • By default Moonshine IDE builds with AIR 28.0. If you've installed newer version of AIR SDK on your environment (eg. 32.0) change this parameter accordingly:

     <application xmlns="http://ns.adobe.com/air/application/32.0">
    

6a. Build Desktop Version

If you need to recompile language server, build and deploy codecompletion.jar. If not, you can skip this step.

cd language-server-wrappers/moonshine-as3mxml
ant deploy

To build the application itself, use these commands:

cd ide/MoonshineDESKTOPevolved/build
ant 

Find the generated artifacts in ide/MoonshineDESKTOPevolved/build/DEPLOY

6b. Build Web Version

To compile the SWF for the web version of Moonshine-IDE, run:

cd ide/MoonshineWEBevolved/build
ant 

Find the generated artifacts in ide/MoonshineWEBevolved/build/DEPLOY

NOTE: this part of the project is out of date. The server-side logic needs to be updated before the source can be released.

License

Moonshine-IDE is licensed under the Apache License 2.0 - see the LICENSE.md file for details

dominoapilocalexample's People

Contributors

joelprominic avatar

dominoapilocalexample's Issues

Windows Support

I tested this project on Windows with HCL Notes/Domino 12.0.1. I had to make sure that the Notes path was included in PATH, but then I got stuck with this error:

java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\HCL\Notes\nlsxbe.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
        at java.lang.System.loadLibrary(System.java:1122)
        at lotus.domino.NotesThread.load(Unknown Source)
        at lotus.domino.NotesThread.checkLoaded(Unknown Source)
        at lotus.domino.NotesThread.sinitThread(Unknown Source)
        at TestJavaDomino_0308.main(TestJavaDomino_0308.java:13)
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\HCL\Notes\nlsxbe.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
        at java.lang.System.loadLibrary(System.java:1122)
        at lotus.domino.NotesThread.load(Unknown Source)
        at lotus.domino.NotesThread.checkLoaded(Unknown Source)
        at lotus.domino.NotesThread.stermThread(Unknown Source)
        at TestJavaDomino_0308.main(TestJavaDomino_0308.java:34)

It seems like the .dll files were not updated to 64-bit for the Windows installation. The -d32 option is not available with OpenJDK 8, so I think we might need an older Oracle JDK to let this work.

Windows is a relatively low priority for Moonshine, but I wanted to at least track this issue.

Alternative Notes.jar Path for newer versions of macOS or HCL Notes

We have seen that Notes.jar appears in a different location on macOS Monterey and Big Sur: /Applications/HCL Notes.app/Contents/Resources/jvm/lib/ext/Notes.jar (Contents/Resources instead of Contents/MacOS). I am not sure why this changed, but I would like to have build.gradle automatically detect and adjust for this difference.

We have seen this new path for both HCL Notes 11 and 12. The Notes 11 install had it at `` on macOS Catalina, though.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.