java
Installing Apache Tomcat 5.5 on Debian 4 (Etch) Linux
If you need to install and start Apache Tomcat quickly, probably this article can help you.
1) Sun JDK 5 need to be installed. It can be installed from Debian repository with unstable software
Add to /etc/apt/sources.list following lines (if not present yet):
# for sun-java packages in unstable deb http://ftp.debian.org/debian/ unstable non-free deb-src http://ftp.debian.org/debian/ unstable non-free
Update apt cache:
koba@alpha:~$ sudo apt-get update
»
- 2 comments
- Read more
- 1902 reads
- Russian
Java Application Process Name in Mac OS X
I have found that several of my Java applications have same process name on Mac OS X. JavaApplicationStub utility is usually used for launching java applications on mac os and as the result there are several processes named 'JavaApplicationStub' in Activity Monitor shown.
I have created simple HelloWorld application to reproduce this problem. And I was really surprised when saw that it's process name was correct!
»
- Add new comment
- Read more
- 1027 reads
- Russian
New project with maven (small help note)
Once in a while I need to make small java applications maybe for testing some library, maybe as helper applications. As for me the fastest way to do this, is use maven archetype mechanism. But new project creation command not very user friendly since it required several parameters that you need to remember (‘-DarchetypeGroupId’ or ‘-DgroupId’). As solution you can make small help script and put it into your projects folder.
As quick solution I make small shell script (new_project.sh) that can be used for fast start:
»
- Add new comment
- Read more
- 1503 reads
- Russian
Resume
Mr. Dmitry N. Kobyleha
Objectives:
- JAVA Developer (4 years of experience)
- HTML/JavaScript Developer (4 years of experience)
- XML/XSLT Developer (3 year experience)
»
- Read more
- 2726 reads
How to build skin for Maven 2 Site Plugin
Maven is open source java build manager from Apache software foundation. It has a lot of interesting features including Project Object Model (POM) and extensible process Plugin framework.
One of standard and commonly used plugins is maven-site-plugin. It provides way to generate project documentation based on POM in form of web site. Starting from version 2.0-beta-5 it’s possible to create your own design (skin) for generated web site.
This blog record must be interesting for developers who already familiar with maven 2 and use it for development. I will try to describe basic steps how to make your own custom skin.
»
- 2 comments
- Read more
- 3174 reads
- Russian
Little more about Java I/O Performance
Working on performance in one of java projects I found that the slowest part is copy method from file utility class. Method was implemented without buffering. Implementation was next: just using ‘while’ operator reading input stream and writing to output stream.
There are good article about i/o performance on sun website.
Listing 4-4 from article looks good, but provided method not perfect too. I have next reason: my application is a multithreaded application. And anytime I synchronize on a static field, I make a bottleneck, because all threads must block while waiting to enter the synchronized block of code.