Java Wanna Be


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 8 of 8

Thread: Java Wanna Be

  1. #1
    CoolGuy Guest

    Java Wanna Be


    I would love to learn Java.
    I have purchased Java for Dummies, which includes the Borland Java Builder.
    And I have read online tutorials.
    My big problem is that at work I try to go through tutorials, and when I
    save for example...Program.java.
    It saves as Program.java.txt

    I know this shows my complete ignorance but can anyone help?? Please e-mail
    me at superwebmonkey@hotmail.com

    Also, any good advise on geting started??

  2. #2
    Tom Duffy Guest

    Re: Java Wanna Be


    Sounds like you're using Notepad. Make sure the Files of Type dropdown reads
    "All Files" - that should take care of it.

    Tom Duffy

    "CoolGuy" <superwebmonkey@hotmail.com> wrote:
    >
    >I would love to learn Java.
    >I have purchased Java for Dummies, which includes the Borland Java Builder.
    >And I have read online tutorials.
    >My big problem is that at work I try to go through tutorials, and when I
    >save for example...Program.java.
    >It saves as Program.java.txt
    >
    >I know this shows my complete ignorance but can anyone help?? Please e-mail
    >me at superwebmonkey@hotmail.com
    >
    >Also, any good advise on geting started??



  3. #3
    Andrew Guest

    Re: Java Wanna Be


    Try enclosing the file in double quotes Ex. "program.java"

    "CoolGuy" <superwebmonkey@hotmail.com> wrote:
    >
    >I would love to learn Java.
    >I have purchased Java for Dummies, which includes the Borland Java Builder.
    >And I have read online tutorials.
    >My big problem is that at work I try to go through tutorials, and when I
    >save for example...Program.java.
    >It saves as Program.java.txt
    >
    >I know this shows my complete ignorance but can anyone help?? Please e-mail
    >me at superwebmonkey@hotmail.com
    >
    >Also, any good advise on geting started??



  4. #4
    Paul Clapham Guest

    Re: Java Wanna Be

    I use NoteTab as my text editor. You can get it from www.notetab.com
    (there's a low-end free version which works just fine). Much better than
    Notepad.

    CoolGuy <superwebmonkey@hotmail.com> wrote in message
    news:390c5445$1@news.devx.com...
    >
    > I would love to learn Java.
    > I have purchased Java for Dummies, which includes the Borland Java

    Builder.
    > And I have read online tutorials.
    > My big problem is that at work I try to go through tutorials, and when I
    > save for example...Program.java.
    > It saves as Program.java.txt
    >
    > I know this shows my complete ignorance but can anyone help?? Please

    e-mail
    > me at superwebmonkey@hotmail.com
    >
    > Also, any good advise on geting started??




  5. #5
    Rob Llewellyn Guest

    Re: Java Wanna Be


    If using Win 95,98 or NT, a text editor like Notepad may add a *.txt* file
    extenon to the filename of any Java source files you save. So *helloworld.java*
    becomes *helloworld.java.txt*.

    To resolve the problem, place quotation marks around the filename you're
    saving as a source file. That'll avoid inheriting any possible *.txt* extention.
    -------------------------------------------------------

    "CoolGuy" <superwebmonkey@hotmail.com> wrote:
    >
    >I would love to learn Java.
    >I have purchased Java for Dummies, which includes the Borland Java Builder.
    >And I have read online tutorials.
    >My big problem is that at work I try to go through tutorials, and when I
    >save for example...Program.java.
    >It saves as Program.java.txt
    >
    >I know this shows my complete ignorance but can anyone help?? Please e-mail
    >me at superwebmonkey@hotmail.com
    >
    >Also, any good advise on geting started??



  6. #6
    tan Guest

    Re: Java Wanna Be


    You are doing the same thing as I always do. Here is my stupid solution. go
    to the console(ms-prompt), change the directory to the the one that your
    file resides, and do this:
    rename Program.java.txt Program.java
    it will solve your prob. simply saving the file by dropping the file type
    to "all files" doesn't work, and simply renaming the file by right clicking
    on the file also doesn't seem to work

    "CoolGuy" <superwebmonkey@hotmail.com> wrote:
    >
    >I would love to learn Java.
    >I have purchased Java for Dummies, which includes the Borland Java Builder.
    >And I have read online tutorials.
    >My big problem is that at work I try to go through tutorials, and when I
    >save for example...Program.java.
    >It saves as Program.java.txt
    >
    >I know this shows my complete ignorance but can anyone help?? Please e-mail
    >me at superwebmonkey@hotmail.com
    >
    >Also, any good advise on geting started??



  7. #7
    Aric Guest

    Re: Java Wanna Be


    An easier way is to save the file with quotes around it. It will not appent
    .txt to it.
    "tan" <kevin_tom@hotmail.com> wrote:
    >
    >You are doing the same thing as I always do. Here is my stupid solution.

    go
    >to the console(ms-prompt), change the directory to the the one that your
    >file resides, and do this:
    >rename Program.java.txt Program.java
    >it will solve your prob. simply saving the file by dropping the file type
    >to "all files" doesn't work, and simply renaming the file by right clicking
    >on the file also doesn't seem to work
    >
    >"CoolGuy" <superwebmonkey@hotmail.com> wrote:
    >>
    >>I would love to learn Java.
    >>I have purchased Java for Dummies, which includes the Borland Java Builder.
    >>And I have read online tutorials.
    >>My big problem is that at work I try to go through tutorials, and when

    I
    >>save for example...Program.java.
    >>It saves as Program.java.txt
    >>
    >>I know this shows my complete ignorance but can anyone help?? Please e-mail
    >>me at superwebmonkey@hotmail.com
    >>
    >>Also, any good advise on geting started??

    >



  8. #8
    Rob Llewellyn Guest

    Re: Java Wanna Be


    >I save for example...Program.java.

    it saves as Program.java.txt <

    Put your file name EG: myProgram.java
    In quotation marks EG: "myProgram.java"

    This will ensure that ...
    1) The .txt extension is not added.
    2) Only the .java extension is added.

    For REAL beginners to OOP / programming I personally recommend BEGINNING
    JAVA 2 from WROX - By Ivor Horton.
    (See reviews at Amazon.com)
    1000 pages long but it does seem to explain everything from a very basic
    level up.

    Rob


    "Aric" <aric@cybersystems.net> wrote:
    >
    >An easier way is to save the file with quotes around it. It will not appent
    >.txt to it.
    >"tan" <kevin_tom@hotmail.com> wrote:
    >>
    >>You are doing the same thing as I always do. Here is my stupid solution.

    >go
    >>to the console(ms-prompt), change the directory to the the one that your
    >>file resides, and do this:
    >>rename Program.java.txt Program.java
    >>it will solve your prob. simply saving the file by dropping the file type
    >>to "all files" doesn't work, and simply renaming the file by right clicking
    >>on the file also doesn't seem to work
    >>
    >>"CoolGuy" <superwebmonkey@hotmail.com> wrote:
    >>>
    >>>I would love to learn Java.
    >>>I have purchased Java for Dummies, which includes the Borland Java Builder.
    >>>And I have read online tutorials.
    >>>My big problem is that at work I try to go through tutorials, and when

    >I
    >>>save for example...Program.java.
    >>>It saves as Program.java.txt
    >>>
    >>>I know this shows my complete ignorance but can anyone help?? Please

    e-mail
    >>>me at superwebmonkey@hotmail.com
    >>>
    >>>Also, any good advise on geting started??

    >>

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center