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 5 of 5

Thread: create a file

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default create a file

    i'm a beginner in java
    after studying in GUI concepts i wants to create a files to my codes to be executable by other users
    actuallly what's the topics must be learned to accomplish this??


  2. #2
    Member Truffy's Avatar
    Join Date
    May 2009
    Location
    Philippines
    Posts
    93
    Thanks
    2
    Thanked 9 Times in 7 Posts

    Default Re: create a file

    Hi,

    You can try this:

    http://www.javaprogrammingforums.com...sing-java.html

    or if its not what you want, you can go to this section:

    Java Tips & Tutorials - Page 2 - Java Programming Forums

    Many tips regarding a file, reading, writing, creating directory, reading last line.

    Cheers,
    Truffy

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: create a file

    Are you referring to writing files, or creating an executable? Truffy answered the first possibility, if you are looking for how to accomplish the second, you should create an executable jar. Search the forums for executable or visit Sun's site:
    Lesson: Packaging Programs in JAR Files (The Java™ Tutorials > Deployment)
    Setting an Application's Entry Point (The Java™ Tutorials > Deployment > Packaging Programs in JAR Files)

  4. #4
    Junior Member
    Join Date
    Nov 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: create a file

    thanks copeg and also Truffy
    but i need to make the created file is independent from my PC,the JAR file still not working on other PCs

  5. #5
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: create a file

    Are you talking about creating JAR files rather than an actual text file?

    Take a look here:

    Lesson: Packaging Programs in JAR Files (The Java™ Tutorials > Deployment)
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

Similar Threads

  1. Java error "could not create java virtual machine"
    By aubrey4444 in forum Java Theory & Questions
    Replies: 17
    Last Post: October 3rd, 2010, 12:51 PM
  2. create buttons in a JEditorPane
    By seeker in forum AWT / Java Swing
    Replies: 4
    Last Post: December 5th, 2009, 09:01 AM
  3. Unable to create a new connection!
    By fh84 in forum JDBC & Databases
    Replies: 1
    Last Post: November 20th, 2009, 05:58 PM
  4. How to create exe file
    By sirimalla in forum Java Theory & Questions
    Replies: 6
    Last Post: November 1st, 2009, 04:07 AM
  5. how to create exe jar
    By ttsdinesh in forum Java Theory & Questions
    Replies: 1
    Last Post: September 27th, 2009, 08:21 AM