This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Actors don't work with Java 1.5

4 replies
Sciss
Joined: 2008-12-17,
User offline. Last seen 28 weeks 5 days ago.

hi,

using a recent nightly from scala, my previously working code breaks
with

java.lang.NoSuchMethodError:
java.util.concurrent.locks.LockSupport.park(Ljava/lang/Object;)V
and
java.lang.NoClassDefFoundError: java/util/concurrent/RunnableFuture

when calling the actor method... seems some java 1.6 stuff sneaked in
here?

ciao, -sciss-

dcsobral
Joined: 2009-04-23,
User offline. Last seen 38 weeks 5 days ago.
Re: Actors don't work with Java 1.5
There are two distributions, 1.5 and 1.6. Are you sure you got the 1.5 distribution?

On Thu, Nov 26, 2009 at 3:49 PM, Sciss <contact@sciss.de> wrote:
hi,

using a recent nightly from scala, my previously working code breaks with

java.lang.NoSuchMethodError: java.util.concurrent.locks.LockSupport.park(Ljava/lang/Object;)V
  and
java.lang.NoClassDefFoundError: java/util/concurrent/RunnableFuture

when calling the actor method... seems some java 1.6 stuff sneaked in here?

ciao, -sciss-




--
Daniel C. Sobral

Veni, vidi, veterni.
Sciss
Joined: 2008-12-17,
User offline. Last seen 28 weeks 5 days ago.
Re: Actors don't work with Java 1.5

i have always been using http://www.scala-lang.org/scala-eclipse-
plugin-nightly ... is there a separate eclipse plug-in site for java
1.5?

thanks, -sciss-

Am 26.11.2009 um 17:57 schrieb Daniel Sobral:

> There are two distributions, 1.5 and 1.6. Are you sure you got the
> 1.5 distribution?
>
> On Thu, Nov 26, 2009 at 3:49 PM, Sciss wrote:
> hi,
>
> using a recent nightly from scala, my previously working code
> breaks with
>
> java.lang.NoSuchMethodError:
> java.util.concurrent.locks.LockSupport.park(Ljava/lang/Object;)V
> and
> java.lang.NoClassDefFoundError: java/util/concurrent/RunnableFuture
>
> when calling the actor method... seems some java 1.6 stuff sneaked
> in here?
>
> ciao, -sciss-
>
>
>
>

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: Actors don't work with Java 1.5

On Thu, Nov 26, 2009 at 6:08 PM, Sciss wrote:
> i have always been using
> http://www.scala-lang.org/scala-eclipse-plugin-nightly ... is there a
> separate eclipse plug-in site for java 1.5?

At the moment, no ... there probably should be.

What JDK are you using to build your application? Even if the IDE code
was built with 1.6 you should be able to select 1.5 for building your
own projects.

Cheers,

Miles

dcsobral
Joined: 2009-04-23,
User offline. Last seen 38 weeks 5 days ago.
Re: Actors don't work with Java 1.5
The question is the Scala distribution being used. A 1.6 Scala distribution won't work with Java 1.5, particularly concerning Actors.

On Thu, Nov 26, 2009 at 4:14 PM, Miles Sabin <miles@milessabin.com> wrote:
On Thu, Nov 26, 2009 at 6:08 PM, Sciss <contact@sciss.de> wrote:
> i have always been using
> http://www.scala-lang.org/scala-eclipse-plugin-nightly ... is there a
> separate eclipse plug-in site for java 1.5?

At the moment, no ... there probably should be.

What JDK are you using to build your application? Even if the IDE code
was built with 1.6 you should be able to select 1.5 for building your
own projects.

Cheers,


Miles

--
Miles Sabin
tel: +44 (0)7813 944 528
skype:  milessabin
http://www.chuusai.com/
http://twitter.com/milessabin



--
Daniel C. Sobral

Veni, vidi, veterni.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland