Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

mac, jcsp and classpath

807601Feb 9 2008 — edited Feb 12 2008
Hi!
I have a Mac and I have to make a project for the college about concurrent programming in java,
for the project I have to use the jcsp package but I have a problem to set
the CLASSPATH.
I do what the Readme says, I put the jcsp.jar in my folder,
then add the path in the classpath editing the file .profile
in this way

CLASSPATH=$CLASSPATH:/System/Library/Java/Extensions/jcsp.jar
export CLASSPATH

I do
echo $CLASSPATH
and really says
:/System/Library/Java/Extensions/jcsp.jar

but when I try to compile my code :

package jcsp.lang does not exist
import jcsp.lang.*;
^
MyProcess.java:3: cannot find symbol
symbol: class CSProcess
public class MyProcess implements CSProcess {
^

I tried to launch javac with argument
javac -classpath /System/Library/Java/Extensions/jcsp.jar MyProcess.java

but nothing, same error..
what's wrong?
Thank you so much for your help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 11 2008
Added on Feb 9 2008
3 comments
214 views