l2j JAR Librarys lib说明各类jar包意义

l2qq · 2019-10-24 22:08
字数 3819 评论 0 收藏 0 点赞 0

/lib 说明:

import packages

bsh-*.jar

http://www.beanshell.org/home.html

目的: L2j Server 使用 BeanShell, JPython 脚本语言来编写控制游戏内的各项剧本式任务主题.

JSR-274 the BeanShell Scripting Language, has passed the voting process with flying colors. This means that we will proceed with forming the expert group to write a language specification and work towards getting BeanShell included in the J2SE at some point in the future. Some comments on the initiating the JSR can be found in Pat Niemeyer's blog on java.net. 


c3p0.jar

http://www.mchange.com/projects/c3p0/index.html

目的: 需要一个能应付大量且同时的资料库沟通用的资料中继连接池功能实作

c3p0 is an easy-to-use library for making traditional JDBC drivers "enterprise-ready" by augmenting them with functionality defined by the jdbc3 spec and the optional extensions to jdbc2. In particular, c3p0 provides several useful services:


Classes which adapt traditional DriverManager-based JDBC drivers to the new javax.sql.DataSource scheme for acquiring database Connections.

Transparent pooling of Connection and PreparedStatements behind DataSources which can "wrap" around traditional drivers or arbitrary unpooled DataSources.

java-engine.jar

JSR-223 script engine for the Java language

ecj.jar

Eclipse Compiler for Java

Eclipse Compiler for Java(ECJ)是在JDT之外已被采用的另一个组件,Mulet说他所了解的使用了ECJ的项目包括GNU Compiler for Java(GCJ)、Apache Harmony的javac、Apache Tomcat JSP和AspectJ编译器。Mulet补充说他相信这只是部分列表,而且他很想知道还有哪些人在使用ECJ作为其工作的一部分。

加入的理由: 

http://blog.csdn.net/yxf/archive/2007/05/08/1600351.aspx

http://rednaxelafx.javaeye.com/blog/191679


javolution.jar

http://javolution.org/

目的: 线上游戏伺服器要求是即时(real-time)性的服务系统

Javolution real-time goals are simple: To make your application faster and more time predictable!

jython.jar

http://www.jython.org/Project/index.html

目的: L2j Server 使用 BeanShell, JPython 脚本语言来编写游戏内的各项剧本式任务主题.

Jython is an implementation of the high-level, dynamic, object-oriented language Python written in 100% Pure Java, and seamlessly integrated with the Java platform. It thus allows you to run Python on any Java platform.


专属 l2j


mmocore.jar

http://www.l2jserver.com/trac/browser/trunk/MMOCore


可替代, 可选的


mysql-connector-java.jar

http://www.mysql.com

目的: L2j Server 预设使用 MySQL 资料库系统, 该 JAR 提供 JDBC 连结.


已过时


(JDK 1.6 Scripting)

API: bsf.jar

http://jakarta.apache.org/bsf/

目的: L2j Server 使用 BeanShell, JPython 脚本语言来编写游戏内的各项剧本式任务主题.

说明: BSF 原先由 IBM 开发,现在作为一个开放源码的工程发行,它使得 Java 程序能够运行用其他语言编写的脚本(Script),也使得其他脚本语言能够使用已有的Java API。

Bean Scripting Framework (BSF) is a set of Java classes which provides scripting language support within Java applications, and access to Java objects and methods from scripting languages.



(java.util.Logger)

API: common-logging.jar

http://commons.apache.org/logging/

目的: Apache Commons 套件中的一个,包含了日志功能,必须使用的 jar套件。

这个套件本身包含了一个 Simple Logger,但是功能很弱。

在运行的时候它会先在 CLASSPATH 找 log4j,

如果有,就使用log4j,如果没有,就找 JDK 内的 java.util.logging 套件,

如果也找不到就用Simple Logger。

在 开发程式的时候, 除错(debugging)和日志(logging)都是非常重要的工作, 但是现在有太多的 logging API 问世, 因为他们都不错, 很难做一个抉择. . 而 common logging 就是一个在这几个不同的 logging API 中建立小小的桥梁. (不错的说明连结...).

The Logging package is an ultra-thin bridge between different logging implementations. A library that uses the commons-logging API can be used with any logging implementation at runtime. Commons-logging comes with support for a number of popular logging implementations, and writing adapters for others is a reasonably simple task.


最新评论 0