Results 1 to 10 of 10
  1. #1
    fawzan is offline Member
    Join Date
    Dec 2010
    Posts
    8
    Rep Power
    0

    Default Java app without interface

    Hi
    I need to create a java app which should not have any interfaces. how can i do it??
    Thanks in advance.

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,447
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by fawzan View Post
    Hi
    I need to create a java app which should not have any interfaces. how can i do it??
    Thanks in advance.
    Don't mention anything about its public methods in your documentation.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    fawzan is offline Member
    Join Date
    Dec 2010
    Posts
    8
    Rep Power
    0

    Default

    Need more explanation please.

  4. #4
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,447
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by fawzan View Post
    Need more explanation please.
    No, you go first: don't you want to use any Java interface? Please elaborate.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    fawzan is offline Member
    Join Date
    Dec 2010
    Posts
    8
    Rep Power
    0

    Default

    Yes exactly. i do not need any interface while itz running. i need run this as a kind of hidden process. Like kaspersky anti-virus runs.

  6. #6
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,447
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by fawzan View Post
    Yes exactly. i do not need any interface while itz running. i need run this as a kind of hidden process. Like kaspersky anti-virus runs.
    If you don't want your application to have any visual interface simply don't use it. To make your application run in the background you have to check your operating system manual.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  7. #7
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    The following has no user interface:

    Java Code:
    public class Junk {
      public static void main(String[] args) {
        // the end
      }
    }

  8. #8
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,197
    Rep Power
    19

    Default

    The following has no user interface:
    This goes one better. It not only has no user interface, but it maxes out the processor!
    Java Code:
    public class Junk {
      public static void main(String[] args) {
        while (true);
      }
    }
    db

  9. #9
    fawzan is offline Member
    Join Date
    Dec 2010
    Posts
    8
    Rep Power
    0

    Default

    But it will be having a console interface. i need to create like a hidden process. In other like a windows service or unix daemon.

  10. #10
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    On windows, you create a console-less java app by using 'javaw' instead of 'java' on the command line.

Similar Threads

  1. Replies: 1
    Last Post: 05-31-2009, 10:57 PM
  2. Replies: 1
    Last Post: 05-31-2009, 02:17 PM
  3. Replies: 16
    Last Post: 05-28-2009, 03:41 PM
  4. Java Debug Interface
    By jbabe in forum Advanced Java
    Replies: 2
    Last Post: 09-02-2008, 05:04 AM
  5. Interface java.io.Externalizable
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-19-2007, 05:53 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
  •