1. Jocky插件的安装:
将org.apusic.jocky_1.0.3包解压,把org.apusic.jocky_1.0.3文件拷Eclipse的 plugins目录即可
2. 在Eclipse中使用Jocky:
在Eclipse中使用Jocky也非常简单,任何一个Java工程,选中工程通过右键菜单,都可以出现Jocky的快捷菜单:
[img]C:\Documents and Settings\ibm\桌面\html\images\jocky.popupmenu.jpg[/img]
<Jocky在Eclipse中的右键菜单>
[img]C:\Documents and Settings\ibm\桌面\html\images\jockysettings.jpg[/img]
<Jocky在Eclipse中的属性设置>
事实上,在Eclipse中使用Jocky时,Jocky也是首先针对所选工程生成Ant的Build文件(默认名称jocky_build.xml),然后再通过Ant完成混淆编译。我试过,混淆后项目可以运行正常,反编后代码混乱。
以下是Jocky在Eclipse中自动生成的jocky_build.xml文件示例:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Jocky autogenerated file.
Any modifications will be overwritten.
-->
<project basedir="." default="build" name="tes.jocky">
<property name="jocky.jar" value="C:\eclipse\plugins\org.apusic.jocky_1.0.3\jocky.jar"/>
<property name="jocky.output.dir" value="C:\WorkSpace\tes"/>
<property name="jocky.scramble.level" value="package"/>
<property name="target" value="1.4"/>
<path id="project.classpath">
<pathelement location="bin"/>
</path>
<target name="init">
<jocky jar="${jocky.jar}" level="${jocky.scramble.level}"/>
<mkdir dir="${jocky.output.dir}"/>
<mkdir dir="${jocky.output.dir}/bin"/>
</target>
<target name="clean">
<delete dir="${jocky.output.dir}/bin"/>
<delete dir="${jocky.output.dir}"/>
</target>
<target depends="init" name="build">
<echo message="${ant.project.name}: ${ant.file}"/>
<jocky enable="true"/>
<javac destdir="${jocky.output.dir}/bin" target="${target}">
<src path="src"/>
<classpath refid="project.classpath"/>
</javac>
</target>
<target name="Browser">
<java classname="Browser" failοnerrοr="true" fork="yes">
<classpath refid="project.classpath"/>
</java>
</target>
</project>
将org.apusic.jocky_1.0.3包解压,把org.apusic.jocky_1.0.3文件拷Eclipse的 plugins目录即可
2. 在Eclipse中使用Jocky:
在Eclipse中使用Jocky也非常简单,任何一个Java工程,选中工程通过右键菜单,都可以出现Jocky的快捷菜单:
[img]C:\Documents and Settings\ibm\桌面\html\images\jocky.popupmenu.jpg[/img]
<Jocky在Eclipse中的右键菜单>
[img]C:\Documents and Settings\ibm\桌面\html\images\jockysettings.jpg[/img]
<Jocky在Eclipse中的属性设置>
事实上,在Eclipse中使用Jocky时,Jocky也是首先针对所选工程生成Ant的Build文件(默认名称jocky_build.xml),然后再通过Ant完成混淆编译。我试过,混淆后项目可以运行正常,反编后代码混乱。
以下是Jocky在Eclipse中自动生成的jocky_build.xml文件示例:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Jocky autogenerated file.
Any modifications will be overwritten.
-->
<project basedir="." default="build" name="tes.jocky">
<property name="jocky.jar" value="C:\eclipse\plugins\org.apusic.jocky_1.0.3\jocky.jar"/>
<property name="jocky.output.dir" value="C:\WorkSpace\tes"/>
<property name="jocky.scramble.level" value="package"/>
<property name="target" value="1.4"/>
<path id="project.classpath">
<pathelement location="bin"/>
</path>
<target name="init">
<jocky jar="${jocky.jar}" level="${jocky.scramble.level}"/>
<mkdir dir="${jocky.output.dir}"/>
<mkdir dir="${jocky.output.dir}/bin"/>
</target>
<target name="clean">
<delete dir="${jocky.output.dir}/bin"/>
<delete dir="${jocky.output.dir}"/>
</target>
<target depends="init" name="build">
<echo message="${ant.project.name}: ${ant.file}"/>
<jocky enable="true"/>
<javac destdir="${jocky.output.dir}/bin" target="${target}">
<src path="src"/>
<classpath refid="project.classpath"/>
</javac>
</target>
<target name="Browser">
<java classname="Browser" failοnerrοr="true" fork="yes">
<classpath refid="project.classpath"/>
</java>
</target>
</project>