Page 1 of 2 12 LastLast
Results 1 to 20 of 26
  1. #1
    quickfingers is offline Member
    Join Date
    Dec 2007
    Posts
    21
    Rep Power
    0

    Default Could some plz tell me how to write a stand alone

    Well the title says it just try to make it very simple so I can follow it

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  3. #3
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    Could some plz tell me how to write a stand alone
    Well the title says it just try to make it very simple so I can follow it
    Like a clock? it could stand alone as long as the Operating System still operates....
    freedom exists in the world of ideas

  4. #4
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    7

    Default

    :)
    be specific on what u want mr/ms quickfingers.
    what type of standalone application r u looking for?

    Our question is straight forward what all things do u want to implement in your application, as u know there are many ways of doing same thing like for GUi we can use swing or awt or swt or jide etc etc.
    To finish sooner, take your own time....
    Nivedithaaaa

  5. #5
    new_2_java is offline Member
    Join Date
    Feb 2008
    Posts
    60
    Rep Power
    0

    Default

    you mean something like this:

    Java Code:
    public class IamStandAlone {
         public static void main (String[] arg) {
              System.out.println("I am a stand alone program! haha");
         }
    }

  6. #6
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Default

    That is a standalone, what is your question.

    ( fun with newbies! )
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  7. #7
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    7

    Default

    I think he means to create the screenlets or widgets in java for the desktop.Isn't it true?

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  9. #9
    Zosden's Avatar
    Zosden is offline Senior Member
    Join Date
    Apr 2008
    Posts
    384
    Rep Power
    7

    Default

    put it in a jar.
    My IP address is 127.0.0.1

  10. #10
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    Quote Originally Posted by serjant View Post
    I think he means to create the screenlets or widgets in java for the desktop.Isn't it true?
    Wow, I'd never thing of an applet/or screenlet as a standalone. I see the "hello world" as a sample, no GUI, nothing fancy.

    If the OP wants something fancy, he's got to enlighten us.

  11. #11
    quickfingers is offline Member
    Join Date
    Dec 2007
    Posts
    21
    Rep Power
    0

    Default

    Well I know how to write applets very well just would like to have a stand alone run on my computer without the help of a Applet because I know how to write classes just don't know how to get it to run without needing a applet.

  12. #12
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    With your post I really confused. Without help of an Applet, you want to run an applet class. ???

  13. #13
    quickfingers is offline Member
    Join Date
    Dec 2007
    Posts
    21
    Rep Power
    0

    Default

    All I want to do is make so the person would have to download it to play instead playing online.

    (Hope I am clear this time :))

  14. #14
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    To run an applet you need a browser, even on off line. So what you can do it, add your application in a download link, may be as a zip file. Then user have to download it and play.

  15. #15
    quickfingers is offline Member
    Join Date
    Dec 2007
    Posts
    21
    Rep Power
    0

    Default

    Thanks for the help now just need to figure out how not to make all my code visible to the user

  16. #16
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Since applet use the class file your code not visible to the user directly. But using a decompiler can see the code.

  17. #17
    Alan-LB's Avatar
    Alan-LB is offline Member
    Join Date
    Jun 2008
    Location
    Junee, NSW, Australia
    Posts
    19
    Rep Power
    0

    Default

    Possible he means a program that will run by itself without needing a browser - ie a stand-alone program not an applet.

    He would need to make a jar file as suggested by Zosden which could then be downloaded by a user and executed by itself.

    If he wants to make all his code visible to the user why doesn't he put the source code as text on a web page or send the source code files packed in the jar file? Maybe he doesn't know the dirrerence between an executable program and source code.

    I am not clear as to what he really wants - I think that he doesn't know either. Maybe his fingers are too quick and his brain too slow for him to be able to express himself clearly :)

    Alan.
    Last edited by Alan-LB; 06-27-2008 at 06:24 AM.
    There are 10 types of people - those who understand binary and those who don't!!
    Today is the Beta version of Tomorrow!!

  18. #18
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Quote Originally Posted by Alan-LB View Post
    If he wants to make all his code visible to the user why doesn't he put the source code as text on a web page or send the source code files packed in the jar file? Maybe he doesn't know the dirrerence between an executable program and source code.
    I'm with you on this. Mainly I think he doesn't know what is jar file, and a source code(class file). Because I can't see any attempt on jar.

    If he wants to run the application on the browser, if he puts complete code as a zip, as I suggested earlier, it's not easy to hide the code from the user.

  19. #19
    Alan-LB's Avatar
    Alan-LB is offline Member
    Join Date
    Jun 2008
    Location
    Junee, NSW, Australia
    Posts
    19
    Rep Power
    0

    Default

    What do you mean by "code". Are you talking about the executable program or the source code?

    Alan
    There are 10 types of people - those who understand binary and those who don't!!
    Today is the Beta version of Tomorrow!!

  20. #20
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

Page 1 of 2 12 LastLast

Similar Threads

  1. What are you using to write your code?
    By CaptainMorgan in forum New To Java
    Replies: 989
    Last Post: 06-27-2014, 07:23 PM
  2. how to write onto a file
    By mirage_87 in forum New To Java
    Replies: 6
    Last Post: 09-08-2009, 03:54 PM
  3. Stand O' Food Game Proyect
    By piachens in forum New To Java
    Replies: 1
    Last Post: 03-24-2008, 05:28 PM
  4. How do i write this in java...?
    By johnny7white in forum New To Java
    Replies: 1
    Last Post: 11-28-2007, 07:05 PM
  5. About bean:write
    By yuchuang in forum Web Frameworks
    Replies: 1
    Last Post: 04-30-2007, 03:31 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
  •