Havi I missed Something


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Havi I missed Something

  1. #1
    Join Date
    Dec 2006
    Location
    London
    Posts
    7

    Havi I missed Something

    Hi I'm currently teaching myself the basics of Java using a few books I bought, I've installed the lastest version of Java SDK and I'm using Textpad as my editor because of the in built compiler, but every time I try to compile an applet it keeps coming up with this error message saying system cannot find specified file ??? All the files have been saved using the .java extension. I know this is a really basic stupid question and I apologise but its driving me mad and I can't do any excersies with being able to compile the examples in the book. I think it has something to do with the folder I specified the files should be saved in...... Please help

    THANKS FROM A GRATEFUL NEWBIE

  2. #2
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    Do u mean that "Textpad" has a compiler? I don't believe that it will be as effective as a java based IDE ...
    if u want my recommendation, try the NetBeans IDE ...
    but if u just want a Text Editor, I would also recommend better the "NotePad++" ...
    both of what I mentioned are FREE + OpenSource, and I'm not advertising, I'm just Fan of them

    back to ur issue, I think the problem is that u call the javac but u don't specify the FULL file path, or vice versa [I mean u don't specify the correct javac path] ... try something like this command from the "file.java" location:

    Code:
    c:\pathToJavaInstallation\javac "%CD%\file.java"
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  3. #3
    Join Date
    Jan 2009
    Posts
    2

    Add path to windows environment manually

    I believe you did not add path to environment.
    You may double check by yourself. You can
    open control panel, double click "system" icon.
    from system property, click "Advanced" tab,
    at the bottom click the "Environment variables" button
    from the "system variable", select "path", click "edit" button
    add the path (java compiler) to the end of the "valuable value".

    for example
    %SystemRoot%\system32;%SystemRoot%;C:\Program Files\Java\jdk1.5.0_17\bin
    I hope this help

    Ken

  4. #4
    Join Date
    Jan 2009
    Posts
    2
    Try JCreator LE (Free)
    http://www.jcreator.com/download.htm

    *shrug* I find it easy to use.

  5. #5
    Join Date
    Jan 2009
    Posts
    11
    Can you compile a simple Hello World application?

  6. #6
    Join Date
    Feb 2009
    Posts
    2
    Hi royal... save your java files inside bin folder. and also mention path in enviroment variable named JAVA. then from command promt, go to that location and then compile. it will work.

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