problems locating the concurrent EDU.oswego.cs.dl.util.concurrent package

P

Pep

I have a test java program that has this at the top

import EDU.oswego.cs.dl.util.concurrent.*;

but when I compile it I get this error

$ javac -classpath concurrent/ test.java
test.java:17: package EDU.oswego.cs.dl.util.concurrent does not exist
import EDU.oswego.cs.dl.util.concurrent.*;
^
test.java:169: cannot access SynchronizedBoolean
bad class file: concurrent/SynchronizedBoolean.class
class file contains wrong class:
EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean
Please remove or make sure it appears in the correct subdirectory of the
classpath.
private static SynchronizedBoolean x = new
SynchronizedBoolean(false);
^
2 errors

I have downloaded and compiled the concurrent package in to the concurrent/
directory so it should exist?

Cheers,
Pep.
 
J

jan V

Hi Pep, for the 1.5 JDK the bulk of this concurrent.* package got promoted
by Sun to java.util.concurrent. This info should take you a step closer to
compiling.. though it will require renaming of the imports.
 
P

Pep

jan said:
Hi Pep, for the 1.5 JDK the bulk of this concurrent.* package got promoted
by Sun to java.util.concurrent. This info should take you a step closer to
compiling.. though it will require renaming of the imports.

Unfortunately I am using java 1.4
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top