Posted in Others

How to Create PDF File from Any Document?


How to convert any document into word file?

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

Use CutePDF Writer -> URL

  • Just print your document  using CutePDF Writer (the printer) to get PDF output.
  • Open your original document and select Print command in File menu of your application to bring up Print dialog box.
  • Then select CutePDF Writer as the Printer to print (DO NOT select “Print to file” option).
  • You will get a Save As dialog box prompted for saving created PDF file.
  • Select a folder to Save in and enter a File name, then click on Save.
  • Go to that folder to find your PDF file.

*     CutePDF Writer supports Microsoft Windows 98/ME/2000/XP/Vista/7/8 (x32/x64).
*     CutePDF Writer requires PS2PDF converter. You may get a free converter here.

Download

CutePDF Writer - Welcome Screen
CutePDF Writer – Welcome Screen
CutePDF Writer - License Agreement
CutePDF Writer – License Agreement
CutePDF Writer - Free Ask Toolbar - Avoid
CutePDF Writer – Free Ask Toolbar – Avoid
CutePDF Writer - PC Tools Registry Mechanic
CutePDF Writer – PC Tools Registry Mechanic
CutePDF Writer - Installing
CutePDF Writer – Installing
CutePDF Writer - PS to PDF Converter
CutePDF Writer – PS to PDF Converter

Click On Yes and Allow to Download.

Now Open Any Document. E.g. PDF Document.

Go to File -> Print

7.Print Doc to CutePDF Writer

Click Ok -> It will ask to save the PDF and Done.

 

 

 

Advertisements
Posted in Java, JEE / J2EE / JSP / Servlets, Tomcat, Windows

How to debug Web Application remotely with Eclipse Indigo and Tomcat 7.0.22?


Lets create and simple Web Application with Single Servlet.

Java – Download Free EBooks and Whitepapers

Visit How to Create and Run Web Project (Java) in Eclipse

Once the Web Application is ready, lets export .war file to Tomcat 7.0.22.

Visit How to Export WAR file from Eclipse to Tomcat

Now let’s verify whether debug property is set or not in catalina.bat file;

it is available at apache-tomcat-7.0.22bin; By default settings are done for debugging in Tomcat 7.0.22. If it is not done or modified then do the following changes.

catalina.bat in Tomcat
catalina.bat in Tomcat

Open the Servlet source file of the web application in Eclipse and set the BREAK point.

Breakpoint in Eclipse to debug web application remotely
Breakpoint in Eclipse to debug web application remotely

Select Debug Configurations

Now. Change the Debug Configurations.

Debug Configuration in Eclipse
Debug Configuration in Eclipse

Open command prompt -> Go to the path of Tomcat distribution Directory/bin

catalina jpda start

Start Tomcat in Debug Mode
Start Tomcat in Debug Mode

Click on Debug on Eclipse

Debug in Eclipse
Debug in Eclipse

Open the Browser and enter the URL (in our case it is http://localhost:8080/JavaWebProject/HelloWorldExample)

Run Web Application Firefox
Run Web Application Firefox

The moment you press enter, you will see debug mode indicator in taskbar,

Debug Mode
Debug Mode

Now the flow will be paused on the breakpoint we created earlier.

Remote debugging of an Application in Eclipse
Remote debugging of an Application in Eclipse

Now you can use Step Into (f5), Step Over (f6), Step Return (f7) to debug as per the application code and your requirement to debug, for simplicity we have only one statement for debugging.

Debug Buttons in Eclipse
Debug Buttons in Eclipse

Now in browser you will be able to see the output.

Servlet Output
Servlet Output

Other Interesting Tomcat related Articles:

Posted in How To..., Java, JEE / J2EE / JSP / Servlets, Tomcat

How to Export WAR file from Eclipse to Tomcat


To export WAR file from the Dynamic Web Project in Eclipse, Follow below steps:

Export WAR File
Export WAR File

Java – Download Free EBooks and Whitepapers

Now select the destination where you want to deploy the WAR file; in our case, it will be Tomcat‘s “webapps” directory.

Select Destination to Deploy WAR file
Select Destination to Deploy WAR file

If you want to maintain source files (.java) then click on export source files as well.

Select Destination to Deploy WAR file
Select Destination to Deploy WAR file

Now verify the webapps directory in Tomcat’s distribution folder.

webapps directory in Tomcat's distribution folder
webapps directory in Tomcat’s distribution folder

Lets run the Web Application and verify

Run Tomcat, and you will notice that the WAR file content will be extracted into the folder

Once tomcat is Up and Running, Open Browser and open the URL http://localhost:8080/JavaWebProject/HelloWorldExample, you will see

Successful Servlet Execution in Tomcat Server in Browser
Successful Servlet Execution in Tomcat Server in Browser

Done!!! 🙂

Other Interesting Tomcat related Articles: