Executing a Java Application in an End User System

Executing a Java Application in an End User System

The Java 2 Runtime Environment is the minimum standard Java computing environment for running applications written in the Java programming language. It contains the Java virtual machine, Java core classes, and supporting files. It does not contain any of the development tools (such as applet viewer or javac) or classes that pertain only to a development environment. By default, the installer puts copies of the java and javaw in the Windows directory.

To execute a Java program in a end user system which does not have JDK installed, you should pack the .class files and other resources (like icons) in a .jar file. While creating your .jar file, you have to specify your application’s starting point (i.e. main method). The manifest file takes care of it and should contain following code:

 Main-Class: 

The .jar file can be created by passing:

 Jar cfm   

Just by clicking the .jar file, the java program can be executed. The end user system should have JRE installed. If you want, the .jar file can be zipped to contain additional files, such as the readme file, by passing:

 Jar cfM  
Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes