Running a Simple Hello World Java Jar File

I am a C# developer and have no Java knowledge as such I need your help. I need someone to teach me how to run a jar file in cmd.

I have a hello world java project that uses Maven (maven is not necessary here) using Visual Studio Code:

package [login to view URL];

public class App {

public static void main(String[] args) {

[login to view URL]("Hello World!");



I then used the plugin called "Build Jar" to compile the code into a jar file.

In the [login to view URL] file I also put:


<!-- Build an executable JAR -->

<groupId>[login to view URL]</groupId>






<mainClass>[login to view URL]</mainClass>





When I use >java -jar [login to view URL] it returned: "no main manifest attribute, in [login to view URL]"

When I use java -classpath [login to view URL] [login to view URL], it returned: "Error: Could not find or load main class [login to view URL]".

I need someone to help me compile in Visual Studio code & run the jar file in cmd hence I have this simple task. It should be easy enough for an experienced Java developer to tell me how to do it.

The solution has to run on Windows 10, Visual Studio Code (sorry I don’t do Ellipse I am a Windows guy)


Kemahiran: Java

Lihat lagi: convert jar file java code, convert java classes jar file, executing java jar file perl script, can convert code java jar file, perl lnline java jar file, use java jar file perl, java jar file application mobile, java jar file application site mobile, example mobile application java jar file, deobfuscate java jar file, create a java jar file, mysql connector java jar file download, selenium java jar file download, error in pom.xml file in eclipse, how to get a path to a resource in a java jar file, java -jar file location

Tentang Majikan:
( 0 ulasan ) London, United Kingdom

ID Projek: #30939253

Dianugerahkan kepada:


Hey, I can start now to help you on creating and running the Jar file. Let's chat and finish it immediately. I have worked on Java projects for building Web Applications using Java Spring Framework, Spring Boot, Sprin Lagi

£10 GBP dalam sehari
(127 Ulasan)

22 pekerja bebas membida secara purata £15 untuk pekerjaan ini


why dont you compile just using the command javac ? You dont need any IDE to compile I think. Let me know

£30 GBP dalam 2 hari
(52 Ulasan)

Thanks for posting " Running a Simple Hello World Java Jar File " project My name is Avin, an experienced app, web and software developer with many years of experience, you can read my profile and notice my qualificati Lagi

£10 GBP dalam sehari
(42 Ulasan)

Hello, Warm Greetings! I am a Java developer working on Java technology since 7+ years having hands on windows and web development experience. I would like to help in your application development. To proceed further, Lagi

£20 GBP dalam sehari
(73 Ulasan)

Hi Greetings Experienced with developing applications with maven and visual stuideo code as ide Please inform further details i will help to resolve the issue I see issue in your maven Thanks

£15 GBP dalam sehari
(48 Ulasan)

Let's start NOW Lagi

£10 GBP dalam sehari
(17 Ulasan)

Hi, Hope you are doing well, I went through your requirements, I am pretty much confident that I can complete this task as I have done similar kind of projects already I have 10+ years’ hands on experience in software Lagi

£24 GBP dalam sehari
(24 Ulasan)

I can help you with this project. Let's discuss more details in private. Looking forward to working with you!

£20 GBP dalam sehari
(21 Ulasan)

Hi, I am a professional programmer and trader and will give you the best work I have innovative tech mind with 10 years of experience working as a computer programmer. Capable of working with a variety of technology an Lagi

£15 GBP dalam sehari
(2 Ulasan)

I'm glad to bid to this project Check [login to view URL] , [login to view URL] ,[login to view URL] and [login to view URL] develop spring boot+hibernate+ payment gateway integration develop by me. [login to view URL] Lagi

£20 GBP dalam 7 hari
(7 Ulasan)

Hi, I have around 16 years of experience in Java..please let me know when I can start Regards [login to view URL]

£10 GBP dalam sehari
(9 Ulasan)

Hi, It seems a very interesting project for me. I have a deep understanding and experience in the areas of Java, ************************************************************************* I've also worked on several sim Lagi

£15 GBP dalam sehari
(2 Ulasan)

★★★★★ JAVA EXPERT ★★★★★ Hello, there? I can start right now. I have read your description. I am appropriate to your description. I am full-stack, full-time senior developer and have rich experience with the similar pro Lagi

£15 GBP dalam sehari
(0 Ulasan)

Hello, there I have read your project description and have found the SOLUTION. PLEASE create milestone and award me. I can complete your task within 30 minutes. Thanks.

£15 GBP dalam 7 hari
(0 Ulasan)

Hello I have good experiences for JAVA coding. I can do it in a few hours, please contact with me and start work Thank You

£15 GBP dalam sehari
(0 Ulasan)

Hi my friend, I am an software engineer with several experience years in Java. I am new with Freelancer and I want to earn jobs for my profile. I can help you for free if you want.

£10 GBP dalam sehari
(0 Ulasan)

I can definitely help you as i have understood the issue and help you with teaching and providing necessary resolution within stipulated time frame and in cost effective manner

£10 GBP dalam sehari
(0 Ulasan)

I can able to help you please reach me for further discussion. I have a good knowledge on java development.

£20 GBP dalam sehari
(0 Ulasan)

Hi Recruiter, I'm Ajay Bondugula . I've a good enough knoweldge on Java and IDE's So, that I will definitely helps you to get it. Hope you're like it . Thanks, Ajay Bondugula.

£15 GBP dalam sehari
(0 Ulasan)

Hi I am a java developer, recently created web-app in spring-boot. I can help you with this project. Looking forward to working with you. With regards Keshav

£10 GBP dalam 2 hari
(0 Ulasan)

Hi, I'll do it for free, just send me a message when you can and I'll help you. You need the Java jdk installed on you system. Then proceed to download the Microsoft Java extension pack in vs code. This will allow you Lagi

£10 GBP dalam sehari
(0 Ulasan)