Saturday, May 17, 2014

Voting today for French Conseil des Francais a l'etranger

Hi,

I am voting today for the French Conseil des Francais a l'etranger.

The vote is implemented by an applet which seems to want to run only with JRE 1.7.51

I looked in my Java Control Panel on the Mac, it displays the version which of the JRE which is installed but does not give the possibility to switch JRE.

The JRE used by the applet is under /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin . It looks like this is an actual copy of the JRE - currently I have a JDK 1.9, so there does not seem to be a soft way of switching the JRE version used to run the applets on the Mac.


So I have do download again a Java SE Runtime Environment 7u51.

I do that, and I try to install the DMG. Now I am getting an error message saying "newer version exists, refer to java.com/newerversionexists" which is a non existent URL.

Wednesday, April 9, 2014

Installing Java 1.9

Java 1.9


In order to be able to help implementing initial support for Java 1.9 inside Apache Ant,.I have downloaded and installed JDK 1.9 on my Mac.

Here is the Java 1.9 download site : https://jdk9.java.net/download/

In order not to be caught off guard with software starting suddenly to use Java 1.9 spontaneously, this Stack Overflow page : How can I change Mac OS's default Java VM returned from /usr/libexec/java_home comes in handy.

Now I can set  JAVA_HOME to /Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home and see for myself the test failures that Jan Matèrne has reported on the Ant Dev list.


Sunday, March 16, 2014

Upgrading Emacs on my Mac, using Homebrew

Yesterday, I realized that my Mac was slowed down by a process called distnoted.

A Google search taught me that Emacs was to blame for this issue.

I found this article on Stack Exchange. This is also mentioned on an emacs distribution list.

So I decided to upgrade Emacs from the 23.x build I got from EmacsForMacOSX.

I first tried the method described on The Wicked Dutch blog, building Emacs for Mac OS X.

This did not work for me.

I got this error :

configure: error: C compiler cannot create executables
See `config.log' for more details


This was happening after 10 minutes of build, pretty much in the last step, and I did not find an easy way to debug this, since especially the build directory gets deleted by the build script.

What did work was to use the methods described on the Installing Emacs on OS X wiki page of emacswiki.

Tuesday, February 4, 2014

Using the IntelliJ SBT plugin, and fighting the default Java version on MacOSX


I have downloaded the IntelliJ SBT plugin from this location.

The plugin's Github page is here : orfjackal/idea-sbt-plugin

I am running this on Mac OS X Mavericks.

I noticed a problem when opening the console : the Java version used to run the console was 1.8, which was generating a lot of errors. It looks like some scala or sbt basic libraries do not work fine with Java 1.8, or maybe it is the plugin.

So I was wondering where the SBT Console is pulling the Java version to use from. After a little bit of Googling, I found this article on Stack Overflow : How can I change Mac OS's default Java VM returned from /usr/libexec/java_home

This suggestion :

I think the only thing we might do is to change the plist:  
sudo vi /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Info.plist 
and then modify the JVMVersion from 1.8.0 to something else that makes it sort it to the bottom instead of the top, like !1.8.0.

has allowed me to run the SBT console under Java 1.7.0 until all issues related with Java 1.8.0 are solved.

Monday, November 4, 2013

Emacs

I cannot really work without emacs. I am using emacs since about 1994 when a colleague introduced me to emacs. For me, the true meaning of emacs is "editore maximo" - the best editor. Anyway, today I was trying some scala code and got frustrated that I could not get out of :paste mode by typing Ctrl-D in my emacs 22. I just downloaded an emacs 24.x found on the railwaycat / emacs-mac-port|download page and this is great.

Sunday, November 3, 2013

Play Framework

Learning to use the Play framework

I am trying to learn the Play framework today as a colleague recommended it.

I just installed play by typing brew install play on my Mac.

I just created a hello play project but I cannot import it directly in intellij.

I am being hit by the fact that the sbt plugin of IntelliJ does not support yet sbt 0.13. see http://youtrack.jetbrains.com/issue/SCL-6070

So one has to use the "com.github.mpeltonen" % "sbt-idea" % "1.0.0" plugin and its gen-idea task to create the IntelliJ Idea module definition for a play application.

Sunday, October 13, 2013

Learning Scala

Today, I am installing Scala 2.10.3 on my Mac at home.
I have also upgraded my IntelliJ Idea and installed the Scala IntelliJ plugin of JetBrains.
I want to read the code source of lift - the web framework - from inside IntelliJ.
Will install sbt too.
I am installing scala using brew, doing the same for sbt.
I am adding to IntelliJ the sbt-intellij-bin plugin

The sbt-intellij-bin plugin complains with a Resolve Error that it does not find the lift-common module dependency.

Let me try now the sbt-idea sbt plugin referenced by the Stack Overflow page "How to create SBT project with IntelliJ Idea ?"