Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. executive java program

executive java program

Scheduled Pinned Locked Moved Java
javahelptutoriallearning
10 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    OmarSH
    wrote on last edited by
    #1

    Hello Everyone iam learning programming in java i started in GUI programming i need to know how to make programs executable i use eclipse i tried to export it as a .jar but it didnt work pls help :) thanks.

    L S 2 Replies Last reply
    0
    • O OmarSH

      Hello Everyone iam learning programming in java i started in GUI programming i need to know how to make programs executable i use eclipse i tried to export it as a .jar but it didnt work pls help :) thanks.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      OmarSH wrote:

      i tried to export it as a .jar but it didnt work

      You need to provide more details than that. Remember, we cannot see your screen or the commands you may have used to create the .jar file. Please explain what you did to create the jar, what output you got, and what happened when you tried to run it.

      One of these days I'm going to think of a really clever signature.

      O 1 Reply Last reply
      0
      • O OmarSH

        Hello Everyone iam learning programming in java i started in GUI programming i need to know how to make programs executable i use eclipse i tried to export it as a .jar but it didnt work pls help :) thanks.

        S Offline
        S Offline
        Stephen Dycus
        wrote on last edited by
        #3

        Does it run if you hit the green arrow at the top? If so, just right click your project and export it Export -> Java --> Runnable Jar

        O 1 Reply Last reply
        0
        • S Stephen Dycus

          Does it run if you hit the green arrow at the top? If so, just right click your project and export it Export -> Java --> Runnable Jar

          O Offline
          O Offline
          OmarSH
          wrote on last edited by
          #4

          it is run when i press the green button but when i export it ass jar it didnt run

          1 Reply Last reply
          0
          • L Lost User

            OmarSH wrote:

            i tried to export it as a .jar but it didnt work

            You need to provide more details than that. Remember, we cannot see your screen or the commands you may have used to create the .jar file. Please explain what you did to create the jar, what output you got, and what happened when you tried to run it.

            One of these days I'm going to think of a really clever signature.

            O Offline
            O Offline
            OmarSH
            wrote on last edited by
            #5

            i didnt use any commands ,i export it as a .jar file using eclipse IDE

            L 1 Reply Last reply
            0
            • O OmarSH

              i didnt use any commands ,i export it as a .jar file using eclipse IDE

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Well you still have not explained what happens. Please show us exactly what commands you use to run it, and what results you see?

              One of these days I'm going to think of a really clever signature.

              O 1 Reply Last reply
              0
              • L Lost User

                Well you still have not explained what happens. Please show us exactly what commands you use to run it, and what results you see?

                One of these days I'm going to think of a really clever signature.

                O Offline
                O Offline
                OmarSH
                wrote on last edited by
                #7

                hi i open eclipse IDE i select on the class(in project explorer) by right click in the mouse ,i pressed export as a jar(one time as a runnable jar file and other as jar file) then next select the export destination the program made a jar file on desktop i click on it it is open like explorer ) by the way i am using linux mint thanks

                L 1 Reply Last reply
                0
                • O OmarSH

                  hi i open eclipse IDE i select on the class(in project explorer) by right click in the mouse ,i pressed export as a jar(one time as a runnable jar file and other as jar file) then next select the export destination the program made a jar file on desktop i click on it it is open like explorer ) by the way i am using linux mint thanks

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  You cannot run java programs by clicking them, you have to use the java command, e.g.

                  java -jar myjavaprogram.jar

                  One of these days I'm going to think of a really clever signature.

                  O 1 Reply Last reply
                  0
                  • L Lost User

                    You cannot run java programs by clicking them, you have to use the java command, e.g.

                    java -jar myjavaprogram.jar

                    One of these days I'm going to think of a really clever signature.

                    O Offline
                    O Offline
                    OmarSH
                    wrote on last edited by
                    #9

                    Thank you it is really worked :) but how to make it like a program (install ,desktop icon, etc)

                    L 1 Reply Last reply
                    0
                    • O OmarSH

                      Thank you it is really worked :) but how to make it like a program (install ,desktop icon, etc)

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #10

                      Java is not designed to operate that way by default. However, there are some converters that may help[^].

                      One of these days I'm going to think of a really clever signature.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups