Results 1 to 17 of 17
  1. #1
    exeye0h's Avatar
    exeye0h is offline Member
    Join Date
    Jan 2012
    Location
    Chicago, IL, USA
    Posts
    40
    Rep Power
    0

    Angry ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP!

    Essentially, I am running a Mac OS X 10.5.8 and currently in a Programming in Java course for college.
    I have some baby programming under my belt but only in Python language.
    SO my problem is I cannot seem to compile a java file via my Mac Terminal.
    "
    rmc-235-119:~ Xio$ javac Welcome.java
    error: cannot read: Welcome.java
    1 error
    "
    I don't even know what the error is! This has been driving me INSANE.
    I have a java compiler because I typed in "javac" and Terminal returned this:
    "rmc-235-119:~ Xio$ javac
    Usage: javac <options> <source files>
    where possible options include:
    -g Generate all debugging info
    -g:none Generate no debugging info
    -g:{lines,vars,source} Generate only some debugging info
    -nowarn Generate no warnings
    -verbose Output messages about what the compiler is doing
    -deprecation Output source locations where deprecated APIs are used
    -classpath <path> Specify where to find user class files
    -cp <path> Specify where to find user class files
    -sourcepath <path> Specify where to find input source files
    -bootclasspath <path> Override location of bootstrap class files
    -extdirs <dirs> Override location of installed extensions
    -endorseddirs <dirs> Override location of endorsed standards path
    -d <directory> Specify where to place generated class files
    -encoding <encoding> Specify character encoding used by source files
    -source <release> Provide source compatibility with specified release
    -target <release> Generate class files for specific VM version
    -version Version information
    -help Print a synopsis of standard options
    -X Print a synopsis of nonstandard options
    -J<flag> Pass <flag> directly to the runtime system
    "

    I could really use someone's help on how to compile and why Terminal is unable to read the java files.
    I do suspect that it "isn't in the folder". However, I can find it in that very location on screen so I don't know what's the issue.

    My professor is unable to help in that he is unfamiliar with Macs which does not help my predicament at all.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    Did you cd into the directory where the file is? The command prompt opens up to a default location, and you need to change directory (cd) to the proper location where the files you wish to work with reside (on a mac, I believe you can type 'cd ' then drag the directory that contains the file to the terminal then press return)

  3. #3
    exeye0h's Avatar
    exeye0h is offline Member
    Join Date
    Jan 2012
    Location
    Chicago, IL, USA
    Posts
    40
    Rep Power
    0

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    Yes, originally I had taken it to that folder using 'cd' yet even while I was in that folder on Terminal, it was still unable to "read" the .java file. For this post, I just pulled the file out onto my Desktop to show the "1 error" that Terminal keeps showing.
    My professor was able to somehow write a program within my Terminal using "vi" and then writing "welcome.java" then rewriting the entire program from scratch onto there but that's not what I'm trying to do. He said that it works, I'm not missing anything, but somehow the .java file I wrote is not in the directory where I saved it. Since he isn't familiar with Macs, he doesn't know how to help me. ): This is a homework assignment due in two days and I'm getting frustrated that I cannot figure out what the problem is.

  4. #4
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    Ok, so cd to the folder containing your source. Type 'ls'. Do you see the name of your file? If not, then you're in the wrong place. If so, and it still does not work, have you verified that you typed correctly? Java is case sensitive, as is OS X. Finally, if it still doesn't work, is your file part of a package? If so, you must be outside the package folder for it to compile.

  5. #5
    exeye0h's Avatar
    exeye0h is offline Member
    Join Date
    Jan 2012
    Location
    Chicago, IL, USA
    Posts
    40
    Rep Power
    0

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    So I discovered that I was in the wrong directory. After being frustrated with it the past 3 days, I decided to finally open my laptop again and I went back a folder then typed 'cd desktop' into my Terminal. It took me to my desktop! Then I sent it to the folder I created where the file was in and voila! It located the file
    UNFORTUNATELY, I now have an even bigger problem!
    "

    rmc-235-146:csc211 Xio$ javac Welcome.java
    Welcome.java:2: illegal character: \160
    ????
    ^
    Welcome.java:2: illegal character: \160
    ????
    ^
    Welcome.java:2: illegal character: \160
    ????
    ^
    Welcome.java:2: illegal character: \160
    ????
    ^
    Welcome.java:3: illegal character: \160
    ??????? public static void main( String [] args ) {
    ^
    Welcome.java:3: illegal character: \160
    ??????? public static void main( String [] args ) {
    ^
    Welcome.java:3: illegal character: \160
    ??????? public static void main( String [] args ) {
    ^
    Welcome.java:3: illegal character: \160
    ??????? public static void main( String [] args ) {
    ^
    Welcome.java:3: illegal character: \160
    ??????? public static void main( String [] args ) {
    ^
    Welcome.java:3: illegal character: \160
    ??????? public static void main( String [] args ) {
    ^
    Welcome.java:3: illegal character: \160
    ??????? public static void main( String [] args ) {
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:4: illegal character: \160
    ?????????????????????????????????????????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:5: illegal character: \160
    ?????????????? ??int one = 1 , two = 2 , three = 3, four = 4 ;?????? ???????????
    ^
    Welcome.java:6: illegal character: \160
    ???????????????? String myName = "Xiomara" ;? ?????// please replace *******by your name
    ^
    Welcome.java:6: illegal character: \160
    ???????????????? String myName = "Xiomara" ;? ?????// please replace *******by your name
    ^
    Welcome.java:6: illegal character: \160
    ???????????????? String myName = "Xiomara" ;? ?????// please replace *******by your name
    ^
    Welcome.java:6: illegal character: \160
    ???????????????? String myName = "Xiomara" ;? ?????// please replace *******by your name
    ^
    Welcome.java:6: illegal character: \160
    ???????????????? String myName = "Xiomara" ;? ?????// please replace *******by your name
    ^
    Welcome.java:6: illegal character: \160
    ???????????????? String myName = "Xiomara" ;? ?????// please replace *******by your name
    ^
    Welcome.java:6: illegal character: \160
    ???????????????? String myName = "Xiomara" ;? ?????// please replace *******by your name
    ^
    Welcome.java:6: illegal character: \160
    ???????????????? String myName = "Xiomara" ;? ?????// please replace *******by your name
    ^
    Welcome.java:6: illegal character: \160
    ???????????????? String myName = "Xiomara" ;? ?????// please replace *******by your name
    ^
    Welcome.java:6: illegal character: \160
    ???????????????? String myName = "Xiomara" ;? ?????// please replace *******by your name
    ^
    Welcome.java:6: illegal character: \160
    ???????????????? String myName = "Xiomara" ;? ?????// please replace *******by your name
    ^
    100 errors
    "
    I get 100 ERRORS and that is basically the entire program! What the?!?!?! So now it won't compile because supposedly the file has errors throughout the entire file. Not just a simple syntax or mistake anywhere in the file; no, it is the ENTIRE program. I know this because I ran the program via a public PC available on my campus. So it works. I completed my assignment via that computer. However, I want to figure this out because I can't rely on a campus PC for every assignment. Especially for midterms and finals.

  6. #6
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    Did you type the code yourself? or copy/paste it from some other source?

    I ask because it looks like you are getting a nonbreaking space (character A0 == &#160 == &nbsp;) which is evidently not valid whitespace in Java source code. The solution for this program will be to retype the source using a plain text editor (or an IDE that knows what a space should be in this context).

    [Edit] You don't say what text editor you are using, but I would have thought that if it is a *plain* text editor or IDE it would make the web->text transition smoothly. Try copy/pasting the text into an editor designed with source code in mind.

    Longer term you might make one of your first projects a utility that checks files for this character and replaces it with an ordinary space character! I don't know Macs, but since Apple changed to a real operating system maybe sed is available ;)
    Last edited by pbrockway2; 01-11-2012 at 12:28 AM.

  7. #7
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    Yeah, you have some bad text. Can you put your source file on drop box or something so we can take a look? I'd be happy to advise if I could see the code :D

  8. #8
    exeye0h's Avatar
    exeye0h is offline Member
    Join Date
    Jan 2012
    Location
    Chicago, IL, USA
    Posts
    40
    Rep Power
    0

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    This is the program in its entirety. And yes, pbrockway2, I did simply copy/paste this program. More particularly because that is what my professor said to do. :/ I definitely do not mind rewriting the code from scratch. But since quad64bit requested the exact code, here it is:




    /************************************************** ************************/
    /* */
    /* CSC211-502 */
    /* Assignment # : 1 Due: Jan 11, 2012 */
    /* */
    /* class name : Welcome.java */
    /* */
    /* Programmer : put your name here */
    /* Date : the date you complete the implementation */
    /* */
    /************************************************** ************************/



    class Welcome {

    public static void main( String [] args ) {

    int one = 1 , two = 2 , three = 3, four = 4 ;

    String myName = "*******" ; // please replace ***** by your name
    System.out.println("Hello , my name is " + myName+ "." );


    System.out.print ("Welcome to Java World!!\n");
    System.out.println( "Your lucky numbers are " + one + two + (three + four));

    System.out.println("Have a great quarter!");
    } // end main
    }// end Welcome class

  9. #9
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    It compiles and runs for me just fine. Try copying and pasting the code you pasted here into a new document. I bet your original file has goofy characters in it. What text editor are you using?

  10. #10
    exeye0h's Avatar
    exeye0h is offline Member
    Join Date
    Jan 2012
    Location
    Chicago, IL, USA
    Posts
    40
    Rep Power
    0

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    Well I'm using jEdit for Mac. But I also tried TextEdit (which is the Mac equivalent of NotePad for PC). However, I do know that for TextEdit I do not have the option to save for all file formats which NotePad does and my professor had said to do when we are going to save this file. I am not sure if that makes much a difference.

    I meant TextEdit, not TextEditor. Had to edit that!
    ALSO! I just tried running the program and it works. However, I ran the file that my professor had created from his computer. (He had us download zip files with a lot of the material we would need and provided us with the Welcome.java file also.) The goal was to create our own though. So now I am beginning to believe that his program most likely works because he saved it to be readable for all and any files and I do not have that option to save which is resulting in my Terminal being unable to read it. :/
    Last edited by exeye0h; 01-11-2012 at 07:36 AM.

  11. #11
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    Whatever text editor you use, you could look to see if there are any options along the lines of "paste special". What you are looking to do is paste as plain text. It will make your life a lot easier if you can get at the resources you need.

    (I was slightly serious about writing a program to clean the source code. But not serious about sed: that way lies regex madness.)

    -----

    You could ask your teacher not to post code with nonbreaking spaces in it. But you're not likely to have much luck. My experience of people who dump their formatted text into web pages is that their eyes glaze over when you try and explain that formatting matters. That includes teachers. In fact teachers come high up the list of them-who-won't-be-told.

  12. #12
    exeye0h's Avatar
    exeye0h is offline Member
    Join Date
    Jan 2012
    Location
    Chicago, IL, USA
    Posts
    40
    Rep Power
    0

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    pbrockway2, marry me! (:
    I just went to my TextEdit preferences and this is what I found.
    ' error: cannot read: Welcome.java      1 error ' compiling on Java for Mac, HELP!-picture-3.png
    The "plain text" is unchecked! So now I shall try this and see what results will yield :D

  13. #13
    exeye0h's Avatar
    exeye0h is offline Member
    Join Date
    Jan 2012
    Location
    Chicago, IL, USA
    Posts
    40
    Rep Power
    0

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    So I found that I am going to have to stick to using jEdit because TextEdit refuses to save with the extension of .java; it will only take .rtf yet it gives me the option of having both extensions at the end of the file (e.g. Welcome.java.rtf). I recopied the program into jEdit and this time as opposed to going to File > Save As, I went to Macros > Java > Java File Save. I then went back to my Terminal and went to the directory where the file is in, I compiled it, then I executed it and everything ran super smoothly! I am now a happy camper (:
    I s'pose I will just have to save .java files via that route rather than any other with jEdit.
    I want to thank you both, pbrockway2 and quad64bit, for helping me come to this realization (: You were an awesome help to me!
    Rest assured I will be back throughout the rest of my school quarter with tons of questions and problems!

  14. #14
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    Great. I'm glad you've got a workable solution.

  15. #15
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    I had a feeling it was rtf (rich text). I'm pretty sure rich text is XML based or something similar, so yeah, that'd ever work. Never copy/paste code:) Professors also like to hand out code digitally with broken characters in then so you cannot copy/paste/compile.

  16. #16
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    P.s. of course TextEdit will save a java document. Just not if you already wrote it in rtf. Text edit is rtf by default. The pres window shown above allows you to select the default format, txt or rtf. You can also convert an open rtf doc to txt with command shift u. You can tell its rtf, because the window will have toolbars and tab stops and such. .txt windows are plain. That being said, don't use a simple text editor for coding! It has no syntax highlighting or indenting help. For Mac, I recommend textMate, sublimeText 2, subetha edit, textwrangler or if you like jedit, that one.

  17. #17
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: ' error: cannot read: Welcome.java 1 error ' compiling on Java for Mac, HELP

    One more thing, I forgot to mention. There is noting special about a java file. It is just a .txt file with a different extension. If you put .java into the save dialog where it asks for name, it should work just fine (unless it was typed as an rtf!)

Similar Threads

  1. Error compiling java subclass from command prompt
    By littleone in forum New To Java
    Replies: 5
    Last Post: 10-26-2010, 04:45 PM
  2. Replies: 1
    Last Post: 12-05-2009, 08:28 AM
  3. Replies: 1
    Last Post: 10-26-2009, 05:38 PM
  4. Java compiling error
    By fadijava in forum New To Java
    Replies: 21
    Last Post: 10-15-2009, 09:55 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
  •