Wednesday, November 17, 2010

Fork Join Error message

Exception in thread "main" java.lang.SecurityException: Prohibited package name: java.util.concurrent

What to do?

You have to go to Doug Lea's webpage where he has this cryptic comment:
You may be able to use these versions now, without waiting for JDK releases, by obtaining jsr166 jar and running java using the option -Xbootclasspath/p:jsr166.jar (You may need to precede "jsr166.jar" with its full file path.)

and add to VM Arguments under Run configurations
-Xbootclasspath/p:C:\Users\dc\Downloads\grossmanSPAC_project_files_nogui\jsr166.jar

1 comment:

  1. wow thanks, i was trying to fix this issue for about 2 hours before i found your blog

    ReplyDelete