[java] Semaphore
Hallo
I'm trying to use the java.util.concurrent.Semaphore (in eclipse), but I can't import it so I can't use it...anybody in here knows about eclipse and this problem? I have never before used eclipse, but now i kind of have to...so please anybody, somebody???
What version of Eclipse are you using? Java 5.0 is only supported from v3.1 and up. Also when you start the project you have to make sure that it is set to the 1.5 VM.
Properties-->Java Compiler-->Compiler compliance level-->5.0
Properties-->Java Compiler-->Compiler compliance level-->5.0
well i have chosen 5.0 but it does not like java.util.concurrent.Semaphore
it just does not know what it is....
it just does not know what it is....
Do you also have a v1.5 JDK installed? Also make sure it is selected in the project library settings. It should say JRE System Library[jdk5.0]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement