Uni Era's profileThe Unified EraBlogLists Tools Help

Blog


    Obfuscate Java Code

    Ripway.com doesn't work, so the lastest download link is:

    Updated at 2007-12-06
    -------------------------
    • Requirements:
    1, Eclispe SDK 3.2.1

    • Installation:
    1, download the redistribution of jdt 3.2.1 made by uniera
    2, close your eclipse(Note: it must be v3.2.1) if running
    2, backup your org.eclipse.jdt.core_3.2.1.v_677_R32x.jar in folder $eclipse/plugins
    3, replace it with this
    redistribution
    4, start your eclipse

    • Obfuscating:
    1, Right click your Java Project, aka 'myproject', choose 'Properties'
    2, Select the 'Java Compiler'
    tab page
    3, Check the 'Enable project specific settings'
    4, OK and return your project 'myproject'
    5, Open the file
    'myproject/.settings/org.eclipse.jdt.core.prefs' using any text editor
    6, Append a new line: org.eclipse.jdt.core.compiler.obfuscator=true
    7, Save and close it
    8, Clean and rebuild the
    'myproject'

    • Uninstall
    1, close your eclipse if running
    2, restore the
    org.eclipse.jdt.core_3.2.1.v_677_R32x.jar you've backupped into folder $eclipse/plugins


    • Note
    1, The obfuscating only changes the code structures and does never change any name of classes, fields or methods. So it's safe to run in all dynamic contexts.
    2, To obfuscate the names of classes, fields and/or methods, you can use any other tools, e.g. ProGuard.

    ----------------------
    Here is an example.



    Derby Plugin Updated

    A non-official derby UI plugin 1.1.0.2 is updated now.

    Source Package: 133k (UI 1.1.0.2 Source)
    Binary Package: 46K (UI 1.1.0.2 Binary)

    ChangeLog:

    --------------------------
    1, Refine the class path entries.
    2, Icons changed.
    3, Some actions added into tool bar.
    4, Other updates.
    *5, Recompiled at jdk 1.4 level.


    Eclipse 3.2.2 tested.

    To get official releases, please go to Apache Derby site.

    Binary early access for ecmax

    An early binary package of ecmax is released now. Only the change summary feature is not finished yet.

    The file list:
    • ecmax_1.6a.chm: the API document.
    • rhinox_1.6a.jar: full binary package.
    • rhinox_1.6a_dom_jdk5.jar: special binary package only with DOM-based e4x impl (JVM 5.0 needed for running).
    • rhinox_1.6a_stax.jar: special binary package only with StAX-based e4x impl.
    • rhinox_1.6a_stax_jdk6.jar: special binary package only with StAX-based e4x impl (JVM 5.0 needed for running).
    • rhinox_1.6a_xbean.jar: special binary package only with xbean-based e4x impl.

    Features from Mozilla Rhino
    • 'like' expr support.
    • BigDecimal instead of double.
    • Defered xml and joint xml.
    • xml + number expr is redefined.
    • xml.idx_from_1 expr for xml.
    • xml.ns:name expr for xml.
    • *change summary for xml.
    • Some bug fixes.

    Note: ecmax™ means the extensions for ECMA-262 and ECMA-357.


    Rhino E4X Impl in StAX way

    As a byproduct of xobj, A new E4X impl has been finished here based on StAX API (implemented by JDK 6 or BEA's open source impl).

    The source code is released now, contains the StAX impl code (from codehaus) already.

    To build a full release package, please get the source code of Mozilla Rhino 1.6_5, and replace the org.mozilla.javascript.xmlimpl package with this impl.

    ------------
    This zip was updated at 2007-5-13 for some bug fixes.

    Tomcat plugin stopped

    The last official release of Sysdeo Eclipse Tomcat Launcher plugin(ver 3.2.0) has covered all patch made by uniera. So the download links is meaningless and removed now.