易截截图软件、单文件、免安装、纯绿色、仅160KB

用混淆器保护你的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/");
 }
}


相关文档:

Java NIO API详解

 
Java NIO API详解
在JDK
1.4以前,Java的IO操作集中在java.io这个包中,是基于流的阻塞(blocking)API。对于大多数应用来说,这样的API使用很方
便,然而,一些对性能要求较高的应用,尤其是服务端应用,往往需要一个更为有效的方式来处理IO。从JDK 1.4起,NIO
API作为一个基于缓冲区,并能提供非阻塞(non-blo ......

Effective Java: Item 1

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调用.net的web services

.net代码如下,
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
//若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。
// [System.Web.Script.Services.ScriptService]
public class SysService : System.Web.Services.Web ......

关于JAVA工程路径的问题


一 相对路径的获得
    说明:相对路径(即不写明时候到底相对谁)均可通过以下方式获得(不论是一般的java项目还是web项目)
         String relativelyPath=System.getProperty("user.dir");
        上述相对路径中,java项目中的 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号