Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8204266

jdk-10.0.1 can not export runnable Jar file

XMLWordPrintable

    • jar
    • x86_64
    • windows_10

      ADDITIONAL SYSTEM INFORMATION :
      JAR creation failed. See details for additional information.
        No resources selected
        Jar export finished with problems. See details for additional information.
          Could not find main method from given launch configuration.


      A DESCRIPTION OF THE PROBLEM :
      jdk-10.0.1 can not export runnable Jar file, while jdk1.8.0_172 work well.

      I used [Spring Tool Suite ,Version: 3.9.4.RELEASE, Build Id: 201804120921, OS: Windows 10, v.10.0, x86_64 / win32]

      project-->right click-->Export--> Runnable JAR file
      Launch configuration is ok,
      Library handling: is Package required ...

      use jdk1.8.0_172, I can get the right jar
      use jdk-10.0.1, the message is
      JAR creation failed. See details for additional information.
        No resources selected
        Jar export finished with problems. See details for additional information.
          Could not find main method from given launch configuration.


            fmatte Fairoz Matte
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: