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

Scala + lwjgl

3 replies
f.nord
Joined: 2009-03-27,
User offline. Last seen 42 years 45 weeks ago.

Hi, I'm quite new to scala and after some experiments to get used to the
language now trying to use lwjgl in scala.
After quite some trial and error I managed to compile my code with this
command:

fsc Design1.scala Abstract.scala -classpath ./lwjgl/lwjgl.jar,

however trying to run the code I recieve following error:
java.lang.NoClassDefFoundError: org/lwjgl/opengl/Display
tried to add lwjgl.jar to the classpath + adding the platformdependent *.so
via -Djava.libary.path= etc.
Any hints how to make this work?
Thx in advance fnord

david.bernard
Joined: 2009-01-08,
User offline. Last seen 1 year 27 weeks ago.
Re: Scala + lwjgl
To use lwjgl (with java or scala) you need to have native library .dll or .so
and you should specify the location of the directory with library, one way is to launch jvm with the jvm argument -Djava.library.path=/path/of/my/lwjgl/lib

scala and lwjgl work fine.

On Fri, Mar 27, 2009 at 15:25, f.nord <c448625 [at] bsnow [dot] net> wrote:

Hi, I'm quite new to scala and after some experiments to get used to the
language now trying to use lwjgl in scala.
After quite some trial and error I managed to compile my code with this
command:

fsc Design1.scala Abstract.scala   -classpath ./lwjgl/lwjgl.jar,

however trying to run the code I recieve following error:
java.lang.NoClassDefFoundError: org/lwjgl/opengl/Display
tried to add lwjgl.jar to the classpath + adding the platformdependent *.so
via -Djava.libary.path= etc.
Any hints how to make this work?
Thx in advance fnord
--
View this message in context: http://www.nabble.com/Scala-%2B-lwjgl-tp22742746p22742746.html
Sent from the Scala - User mailing list archive at Nabble.com.


f.nord
Joined: 2009-03-27,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala + lwjgl

David Bernard-3 wrote:
>
> To use lwjgl (with java or scala) you need to have native library .dll or
> .so
> and you should specify the location of the directory with library, one way
> is to launch jvm with the jvm argument
> -Djava.library.path=/path/of/my/lwjgl/lib
>
> scala and lwjgl work fine.
>
> On Fri, Mar 27, 2009 at 15:25, f.nord wrote:
>
>>
>> Hi, I'm quite new to scala and after some experiments to get used to the
>> language now trying to use lwjgl in scala.
>> After quite some trial and error I managed to compile my code with this
>> command:
>>
>> fsc Design1.scala Abstract.scala -classpath ./lwjgl/lwjgl.jar,
>>
>> however trying to run the code I recieve following error:
>> java.lang.NoClassDefFoundError: org/lwjgl/opengl/Display
>> tried to add lwjgl.jar to the classpath + adding the platformdependent
>> *.so
>> via -Djava.libary.path= etc.
>> Any hints how to make this work?
>> Thx in advance fnord
>> --
>> View this message in context:
>> http://www.nabble.com/Scala-%2B-lwjgl-tp22742746p22742746.html
>> Sent from the Scala - User mailing list archive at Nabble.com.
>>
>>
>
>

yeah as mentioned i did try to do that.. (without success) could you maybe
be a bit more specific?
thx

david.bernard
Joined: 2009-01-08,
User offline. Last seen 1 year 27 weeks ago.
Re: Scala + lwjgl
What is you command line to start/launch the application

On Fri, Mar 27, 2009 at 16:48, f.nord <c448625 [at] bsnow [dot] net> wrote:



David Bernard-3 wrote:
>
> To use lwjgl (with java or scala) you need to have native library .dll or
> .so
> and you should specify the location of the directory with library, one way
> is to launch jvm with the jvm argument
> -Djava.library.path=/path/of/my/lwjgl/lib
>
> scala and lwjgl work fine.
>
> On Fri, Mar 27, 2009 at 15:25, f.nord <c448625 [at] bsnow [dot] net> wrote:
>
>>
>> Hi, I'm quite new to scala and after some experiments to get used to the
>> language now trying to use lwjgl in scala.
>> After quite some trial and error I managed to compile my code with this
>> command:
>>
>> fsc Design1.scala Abstract.scala   -classpath ./lwjgl/lwjgl.jar,
>>
>> however trying to run the code I recieve following error:
>> java.lang.NoClassDefFoundError: org/lwjgl/opengl/Display
>> tried to add lwjgl.jar to the classpath + adding the platformdependent
>> *.so
>> via -Djava.libary.path= etc.
>> Any hints how to make this work?
>> Thx in advance fnord
>> --
>> View this message in context:
>> http://www.nabble.com/Scala-%2B-lwjgl-tp22742746p22742746.html
>> Sent from the Scala - User mailing list archive at Nabble.com.
>>
>>
>
>

yeah as mentioned i did try to do that.. (without success) could you maybe
be a bit more specific?
thx
--
View this message in context: http://www.nabble.com/Scala-%2B-lwjgl-tp22742746p22744385.html
Sent from the Scala - User mailing list archive at Nabble.com.


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