View Single Post
  #1 (permalink)  
Old February 3rd, 2005, 03:29 AM
dglnz dglnz is offline
Authorized User
Join Date: Feb 2005
Location: chch, n/a, New Zealand.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Java 2 j2sdk1.4.2 for linux problem

Well starting to get my feet wet after @ 3 attempts at it last year.

did a simple OurFirstProgram (code below) and getting errors!!!

public class OurFirstProgram
    public static void main(String[] args)
       System.out.println(¨this is my first program !¨);

Errors seem to be related to how i have quoted the string text
I have tried NO qoutes, single quotes and as seen above double quotes
and each give the same errors and error nos.

Is this because i HAVE got to use the JDK or the updated sdk and not the net beans version ?? (tho i think alls i have done is put the java 2 sdk under the netbeans dir).


errors as per terminal screen are ....

[dave@localhost my console java apps]$ /home/j2sdk_nb/j2sdk1.4.2/bin/javac illegal character: \168
           System.out.println(¨this is my first program !¨);
                              ^ illegal character: \168
           System.out.println(¨this is my first program !¨);
                                                         ^ ')' expected
           System.out.println(¨this is my first program !¨);
3 errors
Reply With Quote