Quantcast
Channel: ForgeZilla » java
Browsing all 6 articles
Browse latest View live

Installing Oracle Java 8 on Debian/Ubuntu

Oracle Java has proven to be more stable than the OpenJDK, you can install it easily using apt-get with the following commands echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" |...

View Article



Finding time difference between two java.sql.Timestamps

Here is a simple method that can compare the difference in seconds, minutes, hours and days. public static long compareTwoTimeStamps(java.sql.Timestamp currentTime, java.sql.Timestamp oldTime) { long...

View Article

Capturing network traffic through Java with Fiddler

If you do any socket programming on Java or use any library that does, there will come a time that you need to monitor the traffic going through your application. You will need the following class in...

View Article

Increasing java heap space with command line argument

If you find that your Java application is running our of heap space and you don’t have a memory leak, you can give the JMV more memory. This is very simple to do by starting your java application with...

View Article

Java programs that contain file paths, making them compatible on Windows and...

If your Java application makes use of files using paths, it’s best not to use slash “/” or backslash “\” hard coded in your source code. Use the following to ensure your program would work as expected...

View Article


Checking status of Java threads on Windows

The following applies if you are running a console based multi-threaded Java application. You can get a full stack dump by pressing the following keys on your keyboard. Ctrl+Break

View Article
Browsing all 6 articles
Browse latest View live




Latest Images