Home TechnologyProgrammingJava Subscribe to RSS

How To Compile Java Package Program With -d?

Answer Question

1 Answer - Sort by: Date | Rating

    Compile the program e.g. Hello.java as follows:-

    javac -d . Hello.java

    Note that this program contain package declarations and classes which is included in that package.

    After compilation it will create folders having same name as that of package name & place .class file it in automatically.e.g.If u have defined package shivaji and in that u have defined class tanaji
    then after compilation it will create folder name as shivaji.It will place class file tanaji.class into this folder automatically.
    0 0
    Guest

    Guest 

    answered 4 months ago

      Answer Question - Answers are editable for 5 min.

      If you do not Sign-in or Register your answers will

      be anonymous, your answers may also be

      checked before going online.

      0

      More

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International