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

[netbeans] Netbeans Platform and Scala

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

hi,

are there any existing / recommended projects that build on the netbeans platform (RCP) using scala? any tutorials?

thanks, -sciss-

Sciss
Joined: 2008-12-17,
User offline. Last seen 28 weeks 5 days ago.
Re: [netbeans] Netbeans Platform and Scala

that is to say, if i create a new "NetBeans Platform Application" project using the netbeans wizard, how can i transform that project to use scala instead of java? like the equivalent of adding the scala-nature to an eclipse project...? or do i go the opposite way, starting with a scala project and then somehow telling it that it becomes a platform app?

thanks, -sciss-

Am 28.12.2009 um 21:26 schrieb Sciss:

> hi,
>
> are there any existing / recommended projects that build on the netbeans platform (RCP) using scala? any tutorials?
>
> thanks, -sciss-

Lalit Pant
Joined: 2009-01-05,
User offline. Last seen 2 years 7 weeks ago.
Re: [netbeans] Netbeans Platform and Scala

I did this a few months ago for my 'Educational' App - Kojo. You can browse
the current source at:
http://code.google.com/p/kojo/

If I remember correctly, here are the steps that you need to follow:

- Create a Netbeans platform App using the Netbeans Wizard. This is the
Module Suite for your application
- Create a new Module within this Suite that will house your Scala code
- Swap out the build.xml within this new Module with a new one that knows
how to compile/build Scala (and Java) code (I looked at the Netbeans Scala
plugin to figure this one out)
- Add inter-mixed Scala and Java code within this module as needed (the Java
code could include stuff like Netbeans Wizard generated TopComponents etc)

Cheers,
- Lalit

PS. The build script for the Scala based module in my project needs
improvement. The main drawback right now is that it needs to do a clean
build (because the Netbeans build script clobbers previously generated
classfiles) every time I recompile the module; I have not been able to
summon the energy to try to figure this one out ;(. But it does get the job
done.

Sciss-3 wrote:
>
> that is to say, if i create a new "NetBeans Platform Application" project
> using the netbeans wizard, how can i transform that project to use scala
> instead of java? like the equivalent of adding the scala-nature to an
> eclipse project...? or do i go the opposite way, starting with a scala
> project and then somehow telling it that it becomes a platform app?
>
> thanks, -sciss-
>
>

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