SkyAnthrax94
SkyAnthrax94

Reputation: 73

Jar runnable eclipse not working

This is a tryout app really, nothing big, it has 119 lines of code. I'm just messing with java fx, trying to create a GUI java app runnable. So, in eclipse, right click on my project

export > java application > jar runnable isn't working

Jar file won't generate and it gives me "No resources selected" and "Can't find main method" error I've tried the following (none of which worked):

Manifest:

Manifest-Version: 1.0
Main-Class: application.Main

After I tried all of that I still get the error. Does anyone know why, and could you please help?

Upvotes: 0

Views: 1609

Answers (1)

Mr. Rit Makston
Mr. Rit Makston

Reputation: 126

  1. In a Package Explorer right click on a project and selecting Export...

  2. Among possible options select Java/JAR file

  3. Here we have big window:

    enter image description here

Check that right project selected in a left list

Write a path to a destination file (it will be created if not exists) in JAR file field ... and click next

  1. Click next again

  2. In such window:

enter image description here

We should select the main class that will be executed in a start of application (You can click Browse to make your life easyer). This screen determines whether JAR will be runnable or not (if main class is not set up -> it would be just a library JAR file)

Upvotes: 2

Related Questions