Skip to main content

Posts

Showing posts with the label eclipse

How to remotly debug java program using Eclipse

Eclipse provides a facility to debug your java programs remotely. To demonstrate how you can remotely debug java programs remotely, I will do the following: Create a .bat file that calls the java program Configure the arguments to the JVM so that the JVM will be capable of being remotely debugged Configure Eclipse to connect to the remote JVM 1. Create a bat file calling the java program I create a java class given below: public class RemoteDebugDemo { public static void main(String[] args) { System.out.println("STEP 1"); System.out.println("STEP 2"); System.out.println("STEP 3"); System.out.println("STEP 4"); System.out.println("STEP 5"); System.out.println("STEP 6"); } } Now I wish to run this program in batch mode.So I write a file called RemoteDebugDemo.bat file with following content. java -jar RemoteDebugDemo.jar I create a jar file named RemoteDebugDe...

How to create a jar file using eclipse in 3 easy steps

A jar file is a J ava AR chive file that contains many java .class files as well as other resource files in a compressed format. It is similar to a tar or zip format. Here are three simple steps with illustrations to create your jar file in Eclipse IDE. Step 1 : Create your java class(es) I have written a java class HelloWorld.java in Eclipse in a package called HelloWorld as shown below. Step 2 : Choose the export file format Now I want to put entire project in a jar file. Right-click on the package and select export. Now select under Java icon JAR as shown. Step 3 : Specify the jar file name and location I give the jar file name as C:\amol\HelloWorld.jar as shown I check 'Export generated class files and Resources' and 'compress the contents of jar file' checkboxes. Thats it. Now just click finish and your jar file will be created at the given location. CGTUXEU3CDMS

Beginning Java developement with Eclipse

Eclipse is a very popular and widely used software development environment. It can be used to develop applications in various languages like Java ,C++,PHP and many more. Here we will discuss about the use of Eclipse to develop Hello World program in 6 simple steps . STEP 1. Download and Install JDK JDK(Java Development Kit) will be required to run Eclipse as well as develop and test your application.Various versions of JDK are available, I recommend you to download JDK 1.6 JDK can be downloaded here ---> http://www.oracle.com/technetwork/java/javase/downloads/index.html STEP 2 : Download and Install Eclipse Eclipse is available in a zip format. Just unzip it to install. You can download and install it from this link. http://www.eclipse.org/downloads/moreinfo/java.php STEP 3 : Starting and Configuring Eclipse Eclipse can be run by launching eclipse.exe in the installation directory. On starting eclipse, you will be prompted to choose a workspace.This is a folder location where you...