I use the program BlueJ to code java and have recently finished a project and wish to make it into an Executable Jar file. I create one but I does Not work when I double click it. Do I have to do something specific in the program before creating the jar file? Do I have to download software for it to work?
            Asked
            
        
        
            Active
            
        
            Viewed 6,910 times
        
    1 Answers
0
            
            
        If properly configured the double click should execute the jar.
Check the following:
- If the jar manifest contains the Main-Class attribute.
 - If the main class attribute is correct (points to the correct class)
 - If your jar contains all the dependencies that your program needs to run.
 
BTW, testing with java -jar your_jar_name.jar is a good option to see if your jar is really executable.
        Daniel Sperry
        
- 4,381
 - 4
 - 31
 - 41