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)


Taidot: Java

Näytä lisää: 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

Tietoa työnantajasta:
( 0 arvostelua ) London, United Kingdom

Projektin tunnus: #30939253

Myönnetty käyttäjälle:


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 Lisää

£10 GBP 1 päivässä
(127 Arvostelua)

22 freelanceria on tarjonnut keskimäärin £15 tähän työhön


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

£30 GBP 2 päivässä
(52 arvostelua)

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 Lisää

£10 GBP 1 päivässä
(42 arvostelua)

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, Lisää

£20 GBP 1 päivässä
(73 arvostelua)

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 1 päivässä
(48 arvostelua)

Let's start NOW Lisää

£10 GBP 1 päivässä
(17 arvostelua)

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 Lisää

£24 GBP 1 päivässä
(24 arvostelua)

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

£20 GBP 1 päivässä
(21 arvostelua)

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 Lisää

£15 GBP 1 päivässä
(2 arvostelua)

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] Lisää

£20 GBP 7 päivässä
(7 arvostelua)

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 1 päivässä
(9 arvostelua)

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 Lisää

£15 GBP 1 päivässä
(2 arvostelua)

★★★★★ 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 Lisää

£15 GBP 1 päivässä
(0 arvostelua)

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 7 päivässä
(0 arvostelua)

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 1 päivässä
(0 arvostelua)

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 1 päivässä
(0 arvostelua)

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 1 päivässä
(0 arvostelua)

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

£20 GBP 1 päivässä
(0 arvostelua)

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 1 päivässä
(0 arvostelua)

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 2 päivässä
(0 arvostelua)

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 Lisää

£10 GBP 1 päivässä
(0 arvostelua)