| |
Open source libraries, tips and tricks
Please feel free to download and use, for personal or commercial, following developments. Some have been developped for AVS project, some are older.
All these libraries archives include the sources and an
Eclipse project. They are distributed under the LGPL licence terms.
| jleak |
JLeak is a free java memory leak detector, relying on the JVM -javaagent option. It allows filtering on displayed classes, and dump stack trace on where each instance has been created. GUI and agent core are connected through sockets, and can be launched separately, on remote hosts. JLeak is built on top of javassist library, which provides bytecode enhancement features. Here
is a screenshot taken on a Tomcat instance being profiled: screenshot
|
| jdiff |
JDiff is a free java file diff and merge utility. Diff is based on Myers' minimum set of difference algorithm, and merge relies on Myers' diff computed between both versions and their common ancestor, also refered to as "3 way merge". JDiff is used within AVS, and core algorithms can easily be used without JDiff GUI. JDiff is distributed as an autoexecutable jar, just double click on it!
An example on diff computed on a file taken from jtmail project: screenshot
|
| jtmail |
JTMail is a
free java library using a user defined template file to send mails.
Templates can include attributes which should be surrounded by
"%%" delimiters, and users only need to implement a
MailAttributeBinder so the template parameters can be replaced with
the right values.
This library support both text and html mail sending, achieved in
the end through the JavaMail API.
|
| jlogon |
JLogon library is used within AVS to launch scripts using the operating system impersonation feature. Under Windows, it is based on the "CreateProcessWithLogonW" Win32 API, whereas under Linux, it uses the "sudo" command.
The project includes a Visual C++ 6.0 project for the native part. The dll is part of the distribution, but be aware that you will need to install Microsoft SDK if you want to have it compiled again, since the API it relies on is not part of the basic APIs bundled with Visual 6.
|
| jtask |
JTask library is a wrapper on Windows task manager API. It allows listing active processes.
|
| jautostart |
JAutostart library wraps Windows API to have a process launched automatically when logging on a user account: you can enable or disable automatic start for any application.
|
| Java Print |
Printing feature with
Java is not always an easy thing to do. Here is the source code of
the PrintManager used within
AVS. It allows printing any html code, provided it is supported by
the JTextPane component. It may help understanding how to print your
own components. This class uses DialogUtilities
helper.
|
| |
|
| |
Support through donation is welcome: |
|
| |
|
|
|
|