Results 1 to 3 of 3
  1. #1
    jemy09 is offline Member
    Join Date
    Jul 2014
    Posts
    1
    Rep Power
    0

    Default Application works, what now?

    Hi,

    I have finished programming my "first" nice application, a collection of 6 classes meant to be called from the command line.
    I have put these in a folder and compiled, and it works (with a few little bugs to be solved)..
    But now:

    1) how do I add the package name? When I do so, I get errors. I don't really understand how to define the package and where to set the code.

    2) how do I put all these files together, so that I can copy them on usb and give to test on other computers

    3) is it possible to call an application from command line without the command "java" in front?
    so, instead of: java myapp
    just: myapp

    I'm working on linux.

    Thanks for answers.

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,030
    Rep Power
    6

    Default Re: Application works, what now?

    1) so research that; its not like it is a big secret, how to work with packages is documented all over the net and in any book on Java. Clearly, you don't have a book. You should get one.

    2) Unclear what the problem is

    3) Yes; create a shell script which invokes the java command for you. That's something any engineer using Linux should know.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    milovan is offline Senior Member
    Join Date
    Jan 2011
    Location
    Belgrade, Serbia
    Posts
    301
    Rep Power
    4

Similar Threads

  1. Replies: 18
    Last Post: 03-26-2014, 10:43 PM
  2. Need GUI Help everything else works
    By alminster in forum Eclipse
    Replies: 1
    Last Post: 04-04-2013, 09:26 AM
  3. Application only works when executed from netbeans
    By TijVoe in forum Advanced Java
    Replies: 4
    Last Post: 10-02-2012, 03:06 PM
  4. How this works
    By snowed in forum New To Java
    Replies: 2
    Last Post: 04-02-2012, 02:08 AM
  5. Anyone know how GroupLayout works?
    By ProgrammingPup in forum Advanced Java
    Replies: 5
    Last Post: 12-01-2009, 11:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •