Total Pageviews

Sunday, 31 March 2013

Integrate Maven into Eclipse via m2eclipse


Maven is a useful cross-language tool that enables the user to import dependencies into a project and will automatically resolve transitive dependencies. Maven can be used as a command-line tool; however, to unlock its true potential, you should integrate it into Eclipse.

1.In the Eclipse IDE, navigate through the Help menu to Install New Software.
2.Navigate to the m2eclipse plugin page on the Eclipse website located athttp://eclipse.org/m2e/download/ in order to obtain the latest release information. Copy the latest release information to the clipboard (Ctrl+C).
3.In the Eclipse IDE, click the Add button in order to add the new software repository location for m2eclipse.

4.Choose an appropriate name (e.g., “m2eclipse Plugin”), and enter it into the Name field. Paste the copied repository location into the Location field. Click OK.

5.In the resulting drop-down list, select all available entries in order to install the complete plugin. Click Next.

6.For each item chosen in the drop-down list, you may review the details of the software to be installed. Do this, if you choose, and then click Next.

7.Read and accept the licensing terms, and click Finish.

8.You will be prompted with an Installing Software progress bar. It is necessary to wait for this installation operation to complete in order to use the m2eclipse plugin. If you would like to do other work while waiting for the installation to complete, you may click the Run in Background button.

9.After the software installation is complete, it is necessary to restart Eclipse by clicking Yes when prompted.

10.To check that the m2eclipse plugin is installed, create a new Maven Project.

Now that you have the m2eclipse plugin added to Eclipse, you are well on your way to being more productive by using Maven to resolve dependencies in your Eclipse projects.
Via[Tech-Recipes]

How to Install Spring Plugin in Eclipse


The Spring Framework contains many useful tools and plugins for a developer using Java. It is popularly used in conjunction with the Eclipse IDE for rapid, effective Java development. In order to use Spring with Eclipse, one must either download a specialized version of Eclipse which comes pre-integrated with Spring or install the Spring software in an existing version of Eclipse. This tech-recipe will guide you through the latter.
1.In the Eclipse IDE, navigate through the Help menu in order to Install New Software.

2.In the Eclipse IDE, click the Add button in order to add the new software repository location for Spring.

3.Choose an appropriate name (e.g., Spring Plugin), and enter it into the Name field. Paste the following repository location into the Location field: http://dist.springsource.com/snapshot/TOOLS/composite/e3.7. Click OK. Please note that this repository location is for Eclipse version 3.7, but guides exist for other versions as well.

4.In the resulting plugin list, choose all required list elements and optional items that you may wish to install. Click Next.

5.For each item chosen in the drop-down list, you may review the details of the software to be installed. Do this if you choose, and then click Next.

6.Read and accept the licensing terms. Click Finish.

7.You will be prompted with an Installing Software progress bar. It is necessary to wait for this installation operation to complete in order to use the Spring plugin. If you would like to do other work while waiting for the installation, you may click the Run in Background button.

8.After the software installation is complete, it is necessary to restart Eclipse. When prompted, choose Yes.

9.You should now be able to view the Spring perspective in Eclipse and start developing Spring applications.

Via[Tech-Recipes]

Tuesday, 12 March 2013

Run Commands in the Windows Explorer Address Bar


Stupid Geek Tricks: Run Commands in the Windows Explorer Address Bar

Here’s a fun little tip for you: did you know that you can run commands from the address bar in Windows Explorer? It’s true — any app that you could run on the command line can be run from the address bar, including opening a new command prompt.
For instance, if you were to type cmd into the address bar, you would end up opening a command prompt with the current path already set to whatever the current folder is. Useful.
You can also run other commands, like opening a file in the current folder with Notepad. Imagine that you have a file on your desktop called test.txt and you want to open it. From the Desktop folder in Explorer, type notepad test.txt into the address bar, and hit the enter key.
Just like that, Notepad will open the file. Easy!
You could also use other commands directly from the address bar — for instance, if you wanted to see a directory listing of the current directory in the command prompt, you could use cmd /k dir in the address bar. Obviously that would be silly, but you can do it.

Via[HowToGeek]

How to Encrypt and Password Protect Your USB Drives Without Extra Software



image

BitLocker is a lesser-known technology included in Windows that allows you to both password protect and encrypt the contents of your storage mediums.
Note: BitLocker requires Windows 8 Pro.

Turning On BitLocker for a Removable Drive

Open explorer and right click on your removable drive to open the context menu, then click on Turn on BitLocker.
When the wizard starts up you will need to check the “Use a password to unlock the drive” checkbox.
Then go ahead and type in a password and click next.
Now you will need to choose where you want to save the recovery key incase you forget the password for your drive. Usually you would only be able to either print it or save it to a file, however starting with Windows 8 you can also back it up to your Microsoft account, which I chose to do.
You then have to choose whether your drive is already in use or if it is new. Then click next.
Finally, you can click the Start encrypting button.

Unlocking the Drive

When you plug in the encrypted drive you will get a notification saying that it is BitLocker-protected.  Click on it.
You will then be asked for the password. Once you have typed it in, click on the Unlock button.
That’s all there is to it.
Via[HowToGeek]

Friday, 1 March 2013

How to Solve Common Tomcat Problems in Windows


Everything does not always go smoothly in development. Tomcat consists of a fantastic set of tools for developing in JSP, but issues can arise getting it running. I have described a few of the issues I encountered when trying to get my Tomcat installation working.

Page not displaying or Page cannot be found

You have seen this error before on websites when a page is deleted or when the server simply cannot find it your request.
Tomcat page cannot be displayed
We will apply this principle to your local machine and make sure your web files are in the correct location on your file system.
1.Make sure that you entered the URL correctly to connect. Depending on how you set everything up, the normal URL is the following:
http://localhost
If you need the default port 8080, try the following instead:
http://localhost:8080
If you connect to this default root directory and it contains no files or server pages, you should see a page from Tomcat letting you know you have navigated to the correct root directory.
Apache Tomcat Success install
Make sure the URL you are using is actually pointing to an existing directory. Double check on your file explorer to see if it is there.

HTTP 404 status or Cannot connect to server

The message you see may be different depending on what browser you are using. These errors messages are typically an issue with Tomcat running itself and not problems with the files, folders, or paths.
To solve this one, you can do a few basic checks for simple mistakes:
1.Make sure that Tomcat is actually running. It will normally show up in your processes as java.exe*32 which you can check by CTRL+ALT+DEL and selecting the Processes tab. Scroll down to find the process.
Tomcat process name Java exe
2.Make sure Tomcat is running on a port that is not being used in that moment by another program or service. It may be necessary to change Tomcat’s port which is 8080 by default. Skype and many other programs also attempt to use port 8080. If you are having problems, change Tomcat’s port to be safe.
Navigate to C:\tomcat\conf and open server.xml with Notepad++ or Notepad.
Find all instances of the port that Tomcat is currently using (8080 by default) and replace it with a port that is between 1024 and 9999. Using a simple find and replace within your text editor might be fastest.
Tomcat change the port
Restart Tomcat and be sure to reflect the new port in your URL. In this example we used port 1025.
http://localhost:1025

Via[Tech-Reciep]

Related Posts Plugin for WordPress, Blogger...