Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: How to make an Eclipse program stand alone and more

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to make an Eclipse program stand alone and more

    This will probably come off as a confusing or illogical question, but I'll ask it anyway!

    I have made a Java program using Eclipse, and I would like to make it so that some variable values are stored after the program is closed.
    First off, do I need to make the program a ".exe" for this to work?
    If so, how?

    I need only to store a few integers, some arrays, and a couple strings.

    I do apologize if this question is incorrectly categorized, or just doesn't make sense.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,126
    My Mood
    Mellow
    Thanks
    186
    Thanked 658 Times in 645 Posts

    Default Re: How to make an Eclipse program stand alone and more

    Small (but important) point: The program's variables are stored BEFORE the program closes. No, you don't need to make the program an .exe. That extension means something in the Windows OS environment, but it doesn't mean anything in a Mac or Linux OS, except the name of a program that won't run.

    Important program variables that will be used the next time the program is run are typically stored in a file on the running or host computer's non-volatile mass storage, on a network server, on the cloud, somewhere the program can access when it next starts. Learn about Java I/O, especially reading from and writing to a file.

  3. #3
    Junior Member
    Join Date
    Jul 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to make an Eclipse program stand alone and more

    What does I/O mean?

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,126
    My Mood
    Mellow
    Thanks
    186
    Thanked 658 Times in 645 Posts

    Default Re: How to make an Eclipse program stand alone and more

    What happens if you Google 'java i/o'? Please, don't be helpless.

  5. The Following User Says Thank You to GregBrannon For This Useful Post:

    AlexHail (August 3rd, 2013)

Similar Threads

  1. How do you make a console program a .jar in Eclipse?
    By Programmer142 in forum Java Theory & Questions
    Replies: 9
    Last Post: January 12th, 2012, 11:13 PM
  2. How to make Eclipse work with txt file?
    By Prostak in forum What's Wrong With My Code?
    Replies: 6
    Last Post: November 4th, 2011, 05:43 PM
  3. Replies: 3
    Last Post: September 19th, 2011, 03:42 AM
  4. How to make a program into a working .jar? (eclipse)
    By ynnad95 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 16th, 2011, 08:29 PM