Affichage des articles dont le libellé est eclipse. Afficher tous les articles
Affichage des articles dont le libellé est eclipse. Afficher tous les articles

lundi, mars 07, 2011

Scala and Java libraries in Eclipse

Don't try to mix scala and java in the same scala project in eclipse. You will 1st have the feeling that it works, but as they are not compiled the same way, it's better to have java and scala files in separate projects. Scala project should have the java project as a dependency.

To get it working, you have to do a lot of project cleaning, to "synchronize" both projects.

A Scala file using a Java class:
   import kbdmatrix_java._
   class KbdMatrix(val L: MyLog) {

The Java file:
   package kbdmatrix_java;
   public class MyLog {

Do not forget to advertize the Java class and its methods as public.

vendredi, mars 19, 2010

Getting Haskell Running on Eclipse - 2010 updated

I wanted to get Haskell running on Eclipse so I tried to do as the video below is saying:

The problem I got when following the video is that it did not work exactly as shown, so, here is my modest contribution to give additional hints on how to have Haskell running on eclipse.

install haskell eclipse plugin
get http://hackage.haskell.org/platform/
install
get http://cvs.haskell.org/Hugs/pages/downloading.htm
install
get http://www.haskell.org/cabal/download.html
execute "cabal" in a dos windows and follow instructions
http://imonad.com/blog/2009/10/installing-haskell-plugin-for-eclipse/
in C:\Program Files\Haskell\bin
execute "cabal update" in a dos windows
execute "cabal install scion" in a dos windows
in C:\Program Files\Haskell\bin you should find scion-server.exe that you'll need it in haskell preferences.

mardi, février 17, 2009

Developing Java Agents for Lotus Notes under Eclipse

I started developing some java agent for Lotus Notes 8.5 .

The native Lotus Notes eclipse environment does not really meet my needs.

I usually use a regular eclipse environment to develop my java applications with all its nice help features.

I wanted to develop these Lotus Notes java agents under the same environment, but when calling Lotus specific java classes, I got some errors because eclipse could not reference the right jar.

I fixed the problem by just adding Notes.jar (that I found in LotusNotes program directory) as an external jar in the build path of my eclipse project.