Server Help

Trash Talk - j2sdk 1.5.0 demo features

Helicon - Mon Feb 16, 2004 9:23 pm
Post subject: j2sdk 1.5.0 demo features
Maybe this is a stupid question, but my j2sdk 1.5.0 BETA doesn't like to compile any enumerations or generics. It gives me the old "identifier expected" or "interface or class expected" when i compile. Does the Beta not support the new features??? I have reinstalled (clean) to no avail.

Once again, i just feel as though i have missed something terribly obvious.

Code: Show/Hide
import java.util.*;

public class test{
   public test(){
      Vector<String> v = new Vector<String>();
   }
}


I just found the solution, and i suppose posting it might actually help someone out:

you must EXPLICITLY set the source versin to 1.5
IE:

>javac test.java -source 1.5

sorry for the shotgun post

All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group