Developping your own Java extension

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Did You Know Francois.. This Is The Best! I Have a HUGE Knowledge In Many Programming Language, But I Don't Have Any Product Sorry For That's... Whoever It's Really Good.

    ______________________
    NO ONE CREATE ME! I DON'T HAVE GOD-FATHER!!

  • I'm having trouble with opening the projects in NetBeans, for instance when I open the JavaRuntime project as the PDF says, I get a reference problem for a missing "build-classes" folder. When I try to open the Template project, I get a reference problem for a missing "Runtime.jar" file. Strangely, opening the Static Text project works fine.

    What should I do to fix these problems? I am using NetBeans 7.0.1

    Working as fast as I can on Fusion 3

  • LB you need to go to the projects properties and fix the reference problems.

    "Runtime.jar" is a file in the MMF2 directory under data/runtime/java

    You either need to add that file to your projects libraries (probably not a good idea for developing), or replace it with RuntimeSDK.jar in the JavaExtensions Folder (probably what it SHOULD have been). Also delete the old references so the reference warnings go away.

    as for the "build-classes" reference problem, this seems to only produce a reference warning, and the project has no errors and compiles fine.

    also. In the template project there is an actual code error:

    <code>
    // Actions
    // -------------------------------------------------
    public void action(int num, CActExtension act)
    {
    switch (num)
    {
    case toto;
    break;
    }
    }
    </code>

    firstly, there is no toto anywhere in the sdk (correct me if i'm wrong but i had to change that whole thing to "default:" to get it two work) let alone the file this resides in. secondly, switch cases need to end with a colon not a semi-colon. two errors right there.

    let me know if theres anything else

    Please login to see this link.

  • LB. Is the path set properly? Example:

    set path=%path%;C:\Program Files\Java\jdk1.60_25

    or maybe

    You need to add the jdk1.6.0_25/bin folder to your system path --the list of folders searched when you invoke a program at the command line.

    In Windows, open the control Panel and run the System utility.
    Select the Advanced tab.
    Here you will find a button labeled Environment Variables. Click on it.
    Scroll down the list of system variables until you find the Path variable. Select it.
    Click the Edit button.
    Add the following to the end of the path variable:

    ;C:\Program Files\Java\jdk1.6.0_25\bin
    Include the semi-colon.

    Click the OK button 3 times to back out and Save your settings.
    Note: your Java version may be different.

    Marv

    458 TGF to CTF 2.5+ Examples and games
    Please login to see this link.

    Edited once, last by nivram (January 18, 2012 at 5:49 AM).

  • See my above post. It's not a JDK system path problem it is a library reference problem. Runtime.jar and build-classes are related to mmf2 and the mmf2 javaruntimesdk. The projects have been broken since they were released and are not set up properly.

    Please login to see this link.

  • See my above post. It's not a JDK system path problem it is a library reference problem. Runtime.jar and build-classes are related to mmf2 and the mmf2 javaruntimesdk. The projects have been broken since they were released and are not set up properly.

    Didn't know that, sorry.

    Marv

    458 TGF to CTF 2.5+ Examples and games
    Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!