Java Compiler


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Java Compiler

  1. #1
    Join Date
    Nov 2005
    Posts
    16

    Java Compiler

    I have been trying to compile an applet but when i type "javac <source file>"
    it always says "error:cannot read" and i have checked to make sure the name is exactly the same and the class in the source code is the same so would anyone know what i am doing wrong i made a pic of the things that i thought might matter.




  2. #2
    Join Date
    Sep 2005
    Location
    istanbul / Turkey
    Posts
    133
    your DrawingLines.java file in C:\Jsdk~\java directory,
    but you use command in C:\document and settings\owner directory.
    you should go to same directory with that file ( or give the full path of file in command)

    i use that free utility , right click the folder you want to work. choose "command prompt".
    it will open a console there
    http://www.rjhsoftware.com/rjhextensions/
    Last edited by mr1yh1; 11-06-2005 at 06:06 AM.

  3. #3
    Join Date
    Nov 2005
    Posts
    16
    so what would i have to type in the ms-dos prompt if my directory is C:\j2sdk1.4.2_10\java directory and my file that i want to compile is DrawingLines.java?


    Also i could not get the utility to work because after i installed it the .exe file it came with just gave me the options of what i wanted to use the ulility for and nothing else.

  4. #4
    Join Date
    Sep 2005
    Location
    istanbul / Turkey
    Posts
    133
    you can use cd ( change directory ) command to go to another directory.
    ( learn about dir and cd commands , they are most usefull ones )
    ...
    after installing that utility, you will have some extension in rightclick menu, didnt you have them .
    rightclick on a folder and choose "command prompt" ( in website i saw "dos prompt" but i guess its and old pic ).

  5. #5
    Join Date
    Nov 2005
    Posts
    16
    no it doesnt give me the right click options but the cd command worked great for me thanks a lot, prolblem solved.

Similar Threads

  1. Replies: 2
    Last Post: 06-14-2006, 03:16 PM
  2. Java vs. .Net. A questionnaire
    By Basil in forum .NET
    Replies: 1
    Last Post: 05-13-2005, 06:46 AM
  3. DevX does seem one sideded
    By Rob Abbe in forum Talk to the Editors
    Replies: 44
    Last Post: 01-13-2003, 02:57 PM
  4. learning c# very confusing.
    By Mike Tsakiris in forum .NET
    Replies: 11
    Last Post: 10-04-2002, 05:32 PM
  5. Re: VB vs. Visual Age for Java
    By JJ in forum Enterprise
    Replies: 1
    Last Post: 07-06-2000, 04:50 AM

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