Posts

Free Download Code::Blocks

Image
Code::Blocks is a free development environment for the C++ programming language. It supports 20 different compilers, including Microsoft Visual C++, C Tiny, Digital Mars, and Borland C ++. Plugins galore The program is fully configurable thanks to the numerous plugins and options . Features such as automatic formatting of code or even creating short games in the integrated development environment (IDE) can be accessed at any time by selecting the corresponding extension. Fast build process Code::Blocks gets rid of makefiles , making the build process much faster . If support for parallel compilation was added, the speed with which you can bake your binaries would be tremendous. Help is always at hand (in a PDF) What Code::Blocks offers is typical of any IDE worth its salt: tabs, line numbering, colored syntax, code auto completion, smart indentation, and so on. If you ever get stuck, just check out the PDF manual .

16 NetBeans Shortcut Keys for Code Editing

Image
Do you know that shortcuts help you accelerate your development productivity? Indeed, the more time you use keyboards, the higher efficiency you get. Therefore today I’m going to share with you the common shortcut keys which are designed for editing code in NetBeans IDE. NOTE: Standard shortcuts are not covered, such as Ctrl + Space (auto-complete), Ctrl + A (select all), Ctrl + Z (undo), and the like. Ctrl + E or Shift + Delete : deletes the current line. Ctrl + Delete: deletes the next word after the cursor. If it is a compound (i.e. using camel case like fileHandler), then only the first word is deleted. Ctrl + Backspace: deletes the previous word before the cursor. Alt + Shift + Up: Moves up the current line (or a selected block of code) by one line:   Alt + Shift + Down: Moves down the current line (or a selected block of code) by one line: Ctrl + Shift + Up: Copies and moves up the current line (or a selected block of code) by one line:   Ctrl + Shift ...

JDBC driver library download

In order for Java applications working with a database engine via Java Database Connectivity (JDBC) , an appropriate JDBC driver library is required to be available in the application’s classpath. A JDBC driver library consists of Java classes which implement low-level communication with the database engine. It talks with Java applications via JDBC API and usually bundled as a JAR or ZIP file.For reference, this article provides a summary of JDBC driver download for common databases including MySQL, SQL Server, Oracle, PostgreSQL, Apache Derby (Java DB) and SQLite. Click on a database name to go to download page of the appropriate JDBC driver library. Database Driver provider JAR file name Download size MySQL Oracle Corporation mysql-connector-java-3.0.17-ga-bin.jar 3.8 MB ~ 4.0 MB SQL Server Microsoft Corporation sqljdbc.jar, sqljdbc4.jar 2.3 MB ~ 4.2 MB Oracle Oracle Corporation jodbc5.jar, jodbc6.jar, … 1.2 MB ~ 4.2 MB PostgreSQL The PostgreSQL Global Development Group postgresql-9....

Connect to SQLite via JDBC

SQLite is a simple, small, fast, reliable, server-less, zero-configuration and no-installation SQL database library which is running in-process with the client application. Although there is no official JDBC driver library from www.sqlite.org , there is one provided by www.xerial.org – an XML Database Management System project. 1.    Download SQLite JDBC driver You can download the latest version of JDBC driver for SQLite here . The download is categorized by versions, so browse a directory for a specific version you want: 3.5.9, 3.6.16, 3.7.2, etc. As of this writing, the latest version is 3.7.2 which corresponds to the jar file sqlite-jdbc-3.7.2.jar.Beside Java class files, the jar file includes SQLite binaries for Windows, Linux and Mac (for both 32-bit and 64-bit).Place the sqlite-jdbc-VERSION.jar into your classpath. 2.    SQLite JDBC database connection URL The SQLite JDBC driver can load a SQLite database from file system or creates one in memory.Here is the syntax of database...

Connect to Apache Derby (Java DB) via JDBC

Apache Derby is a lightweight, portable database engine written purely in Java. Java DB is a just an Oracle’s distribution of Derby in their JDK.This article presents the steps to quickly get started with Derby, from downloading its JDBC driver to write code for making connections. 1.    Downloading Derby JDBC driver library Download the latest version of Derby here (as of this writing, the latest release is 10.9.1.0 ). The distribution includes the following pieces of software component: Component Jar files Embedded database engine and JDBC driver derby.jar Network client JDBC driver derbyclient.jar Network server derbynet.jar, derbyrun.jar Command line tools derbytools.jar Localization messages derbyLocale_xx_YY.jar If you are using JDK 1.7, then Derby is already included in JDK installation under the name Java DB in JDK_HOME\db directory. The jar files are located in JDK_HOME\db\lib directory.In both case, you have to place appropriate jar file to the classpath: derby.jar: f...

Connect to PostgreSQL database server via JDBC

This tutorial walks through process of connecting a Java application to a PostgreSQL database server from downloading JDBC driver to write code that makes the connection. Before begin, make sure you have a version of PostgreSQL database server installed either on your development computer or on a dedicated server. Code in this tutorial is tested with PostgreSQL 9.1. 1.    Download PostgreSQL JDBC driver You can obtain the latest version of JDBC driver for PostgreSQL here . Currently there are two versions: JDBC3 Postgresql Driver : for JDK 1.4 and JDK 1.5 JDBC4 Postgresql Driver : for JDK 1.6 and JDK 1.7 So let choose the one matches with your JDK version. The download is actually a jar file so you can put it directly into your application’s classpath. Name of jar files are postgresql-VERSION.jdbc3.jar and postgresql-VERSION.jdbc4.jar. 2.    JDBC database URL for PostgreSQL The syntax of database URL for PostgreSQL looks like the following forms: jdbc:postgresql: database jdbc:...

Connect to Oracle database via JDBC

Image
This article provides examples of how to establish database connection with an Oracle database server – the first step to have Java applications working with one of the most popular database systems. Suppose you already had a version of Oracle database installed, such as Oracle Database 11g Express Edition . 1.    Download JDBC driver library for Oracle database Click here to visit Oracle’s JDBC driver download page: Select the JDBC driver version that matches Oracle database engine installed on your computer. Here we select Oracle Database 11g Release 2 (11.2.0.3) which brings us to the jar download page: As you can see, there are several jar files which may cause confusion. However, the main jar file is ojdbc5.jar (for Java 5 or later) or ojdbc6.jar (for Java 6 or later). Here we select the version for Java 6. Remember to select Accept License Agreement at the top, and click on the link ojdbc6.jar to download. NOTE: Oracle requires users to have an Oracle account for downloading,...