.Jar does not execute

3

I have a problem at the time of running a file.jar that I did.

When I click run nothing simply happens, no window opens, no error message or anything.

In the Meta-INF folder you have the MANIFEST.MF containing only Manifest-Version: 1.0 .

The name of the PACK is REDE and the class that has the main that I want to execute is chatserver .

What should I do to get it to run?

    
asked by anonymous 23.05.2015 / 19:59

1 answer

1

As you say already have the MANIFEST.MF file inside the META-INF folder, what you are missing now is to indicate in this file the full address of your main class, like this:

  

Main-Class: with.pacote.Class

For your case it would be:

  

Main-Class: REDE.chatserver

However, note that both your package name and your class name are outside the naming convention defined by JavaBeans Standard, which says that packages should be written in lower case, whereas classes must follow the PascalCase , logo , the most appropriate would be for the complete address of your class to be: rede.ChatServer

    
24.05.2015 / 09:19