Michael Ruebusch

Greenhorn
+ Follow
since Aug 05, 2014
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Michael Ruebusch

I downloaded Sublime Text and it worked perfectly the first try. Thanks Bear.
10 years ago
I am using Text Edit on my Mac. I formatted it to be plain text. I don't know why it isn't working. It worked just fine for the fist program that I wrote, but not this one. I didn't think I did anything different. Does anyone have any ideas for Mac, not windows?
10 years ago
So when writing my first "Hello World" app everything seemed to work just fine. I wrote the code, compiled it, and then ran the class file and it worked, I got the return Hello World! But when I tried to write another app which is basically the exact same thing just a different sentence, I keep getting a bunch of error codes saying illegal character. I did everything the exact same. I am using Text Edit on a Mac and using Terminal to execute the Java code. Here is what I wrote....

public class MyFirstApp
{
public static void main( String[] args )
{
System.out.println(“i rule the world!”);
}
}

When I type javac MyFirstApp.java in Terminal, I get this response....
Michaels-iMac:java michaelruebusch$ javac MyFirstApp.java
MyFirstApp.java:5: error: illegal character: '\u201c'
System.out.println(“i rule the world!”);
^
MyFirstApp.java:5: error: ';' expected
System.out.println(“i rule the world!”);
^
MyFirstApp.java:5: error: ';' expected
System.out.println(“i rule the world!”);
^
MyFirstApp.java:5: error: not a statement
System.out.println(“i rule the world!”);
^
MyFirstApp.java:5: error: ';' expected
System.out.println(“i rule the world!”);
^
MyFirstApp.java:5: error: illegal character: '\u201d'
System.out.println(“i rule the world!”);
^
6 errors

Anyone have any thoughts?
10 years ago
When you say "use Java" what do you mean? How do you use Java? It's not an application that you open like Safari or Quicktime player. Do you mean the first time I try to compile a program like "hello world" using Terminal or TextEdit? Thanks for the help.
10 years ago
I am starting a Java programming class and they recommend the Head First Java book. After buying the book and going through the instruction for installing the Java SDK, it reads, "if you have a Mac then you don't need to do anything, the Java SDK is already on your machine." The next few bullet points go on to discuss API documentation, setting the PATH, and so on. Are these steps only for Windows installation or do I need to worry about them if I am using a Mac? Can anyone help me with this, and please don't attach a link to the Oracle page and tell me to follow the instructions, because the Oracle page is cluttered with so much information it just frustrates me. Some actual instructions for Mac users would be helpful. Thank you in advance.
10 years ago
That is a very general link with no specific instructions so maybe provide more information next time,
10 years ago