- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Scala + lwjgl
Fri, 2009-03-27, 15:25
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
Fri, 2009-03-27, 16:57
#2
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
Fri, 2009-03-27, 17:07
#3
Re: Scala + lwjgl
What is you command line to start/launch the application
On Fri, Mar 27, 2009 at 16:48, f.nord <c448625@bsnow.net> wrote:
On Fri, Mar 27, 2009 at 16:48, f.nord <c448625@bsnow.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@bsnow.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.
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@bsnow.net> wrote: