用混淆器保护你的JAVA(.class)代码(一)
JAVA代码编译后是.class文件,通过反编工具很容易被别人看到源代码
保护JAVA代码的方法很多,下面介绍一种比较方便使用的方法。
obfuscate4e是一款采用混淆器改变CLASS文件内容的方法。
下文将介绍具体和eclipse的整合方法
1.下载obfuscate4e,加入站点http://obfuscate4e.org/updates/,这个软件是德国人开发的,从他们做汽车的严格程度来说,应该这插件不错.
2.接受协议
测试代码如下:
public class HelloMJ {
/**
* @param args
*/
public static void main(String[] args) {
System.out.println("masterjames 使用JAVA混淆器http://obfuscate4e.org/updates/");
}
}
相关文档:
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--每页显示记录条数
@currentpage int output,--第几页
@orderid nvarchar(50),--主键排序
@sort int,--排序方式,1表示升序,0表示降序排列
......
Static Factory Methods
Four Advantages:
1) have names
2) not required to create a new object each time they are invoked
3) return an object of any subtype of their return type
4) reduce the verbosity of creating parameterized type instances.(for example: newInstance() method) ......
Java 和 C#的比较
1。访问控制方面:C#有public、internal、protected、private,比java多了个internal,其实它跟java的包访问差不多,internal表示同一个编译集合(如exe、dll)下的类可以互访。
对于protected,java和C#有区别。在java中,protected和包访问级别差不多,即不是私有的。而在C#中,protected和priv ......
一 相对路径的获得
说明:相对路径(即不写明时候到底相对谁)均可通过以下方式获得(不论是一般的java项目还是web项目)
String relativelyPath=System.getProperty("user.dir");
上述相对路径中,java项目中的 ......