Eclipse Helios Crash on Linux

I have eclipse Helios installed in a opensuse 10.3 box. it seems the eclipse editor keeps crashing eclipse application every time i type a dot ‘.’ to access object methods.
if you experience same problem you can try the following two fixes:

  • if you don’t have xulrunner package then install it (example using Yast2 in opensuse).
    make sure you only install latest xulrunner version. if you install two different xulrunner versions in your linux OS the two versions might conflict and cause eclipse to crash again. this was my problem. when i removed old xulrunner 191 and only kept xulrunner 192 then eclipse helios stops crashing and works well.
  • The second fix (that doesn’t require to install xulrunner but seamonkey) is to specify to the Java VM the location of xulrunner .
    To do this :
    1-Edit file : ~/eclipse/eclipse.ini
    2- add the following text below the ‘-vmargs’ line :

    -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/seamonkey 

    For further information on this second fix see this thread discussion.

Can Science Tell Us Right From Wrong?

This was the title of ACM news article today. My first impression is to suggest a definitive NO to the question above. A simplistic argument would be because Science deals with matter while Ethics are out the scope of scientific investigation. ethics relates to spiritual and intuition experience while science relates to logical and rational experience. It’s a matter of Rational vs Intuitive (spiritual) ; two aspects that is really hard to connect. when for example, Max Plank was asked what science could contribute to resolving conflicts of values , his response was simple: ” Science is not qualified to speak to this question”
This question will be a subject of important debate soon. and i’m quoting the whole story below ( credit to acm.org).

Can Science Tell Us Right From Wrong?
Arizona State University

November 3, 2010

If human morality is an evolutionary adaptation and if neuroscientists can identify specific brain circuitry governing moral judgment, can scientists determine what is, in fact, right and wrong? A distinguished panel of scientists, philosophers and public intellectuals will explore this and other questions as part of a public discussion on the origins of morality at Arizona State University.

“The Great Debate: Can Science Tell Us Right From Wrong?” will take place Saturday (Nov. 6) at ASU Gammage in Tempe, AZ.

“Perhaps no topic at the interface of philosophy, biology and psychology currently evokes more interest than the question of whether morality has any external meaning beyond that determined by our evolutionary development,” notes Lawrence Krauss, a theoretical physicist and director of the ASU Origins Project. “At the same time, for the public, morality is at the heart of much of what we think about and act upon.”

Joining Krauss on stage to debate the subject will be bioethicist Peter Singer, psychologist Steven Pinker, author Sam Harris, philosopher Patricia Churchland and philosopher Simon Blackburn. They represent some of today’s leading minds exploring the boundaries between science and morality.

The debate will include a moderated discussion as well as a question and answer session, during which audience members will have an opportunity to submit questions. A book signing will follow the discussion.

“To have a debate that cuts directly at the heart of this issue by some of the most eloquent and thoughtful individuals on the planet should be fascinating,” says Krauss. “It should be a lot of fun. I cannot wait to see what transpires.”

The “debaters” on stage will include:

(stage debaters list was removed for shorteness)

“The Great Debate” is sponsored by the ASU Origins Project in collaboration with the ASU Sandra Day O’Connor College of Law Center for Law, Science and Innovation; the Faculty of Philosophy at the University of Cambridge; and the Science Network.

Krauss cites Jean-Jacques Rousseau to explain why the ASU Origins Project is sponsoring this discussion. “Rousseau said ‘We are born free, but live forever in chains.’ Is that true? Is our morality imposed by our social circumstances or is it innate?”

As an organization focused on getting people to explore their place in the cosmos, Krauss notes that the ASU Origins Project is naturally drawn to asking questions about the nature of morality. “These are precisely the kind of questions we need to be asking,” he says. “And, these are the kind of questions that form the heart of the intellectual journey that the Origins Project hopes to offer to students, faculty and the public.”

“The Great Debate” is connected to a workshop at Arizona State University on the origins of morality. Co-sponsor, James Weinstein, professor of constitutional law at ASU, explains that the workshop will “consider the implications, if any, that evolutionary psychology and neuroscience have for normative ethics or meta-ethics.”

The move from OpenOffice To LibreOffice For Java Developers

After Sun Inc had been acquired by Oracle ; and because of some clashes between Sun’s open source projects communities and the -somewhat unfriendly- Oracle attitude towards Sun’s open source projects; OpenOffice has been forked to LibreOffice. This Effort is being Led by document foundation probably with joint efforts to come from major Linux companies Like Novel ,Ubuntu and RedHat .

For Java OpenOffice API developers , the move to Libreoffice should be straightforward. the basic idea is just replace OpenOffice installation and sdk with corresponding Libreoffice ones. If you consider doing serious Java Libreoffice extension development it is advised to use an IDE plugin for Libreoffice.

The only two available Libreoffice/openoffice java IDE plugins are OOEclipseIntegration and Netbeans 6.8 OpenOffice.org API Plugin . While the eclipse OO plugin is available in eclipse marketplace repos from eclipse IDE (3.6+) and is still undergoing active development; It seems the netbeans OO plugin doesn’t get upgraded into higher netbeans versions anymore. So you are stuck using the old netbeans version 6.8.

To set up your Netbeans OpenOffice.org development environment with Libreoffice do the following steps:

  1.   Get netbeans IDE 6.8 and then install plugin “OpenOffice.org API Plugin” from netbeans IDE plugins dialog.
  2.   Downlaod and Install Libreoffice and Libreoffice SDK.
  3. In Netbeans IDE select “Tools->Options->Miscellaneous”. select Tab “OOo API Plugin”. then in fields “Openoffice.org installation” and “Openoffice.org SDK installation” browse to the folder where you installed Libreoffice and libreoffice SDK respectively as described in image below:

When you create a new Project for OpenOffice.org API the currently specified Libreoffice sdk library will be automatically added to your Netbeans OpenOffice Project classpath (for example Libreoffice 3.4 library )

For a Detailed tutorial on java netbeans OpenOffice API development refer to Kay Kroll on Netbeans OpenOffice integration .  I have also included a presentation by jurgen Shmidt included in the ‘Additional Resources’ section at the bottom of this post. These two tutorials although for OpenOffice.org they also apply to Libreoffice java development in Netbeans as the same process applies for both OpenOffice and LibreOffice.

UPDATE:

For people using linux (specifically opensuse 12.+) upgrading to Libreoffice version 3.5+ causes some issues. In  netbeans 6.8 IDE the automatically added  library ‘LibreOffice 3.5 or 3.6’ to the project classpath  misses other important jars for some unknown reasons. I had to manually add the following jars from the directory ‘Your_LO_Home/ure/share/java’ :


	juh.jar
	jurt.jar
	ridl.jar
	unoloader.jar

For some unkown reason the netbeans library LibreOffice 3.5 doesn’t contains these jars and i had to add them manually to project classpath.

Another issue with netbeans OO plugin and LO sdk 3.5+ is when you clean and build your OO project and try ‘debug extension in OO Target’ there is a wiered error massage stating:

‘user doesn’t have write permission to install this extension’.

you simply overcome this error message by running again the ‘debug extension in OO Target’.


Additional Resources:


Java's Age of Anxiety

The collapse of Sun Inc. , steward of Java technology, was a saddening and frightening event. After Oracle bought Sun and addressed java community with their optimistic plans for advancing Java; most community looked forward for happier times. they hoped that java developers lives would return to normal after the trauma of Sun collapse. they hoped that once again Java development would make sense in the familiar pre-Oracle terms of openness, community participation and freedom. These hopes were in vain. The Break of Sun, dismantling of multiple open source java/Sun based projects and the patent war that waged between giant software building competitors had mangled too many things beyond repair. Java Development would no longer fit neatly into the old molds.
Great numbers of us feel themselves increasingly adrift in a strange , uncertain and uncontrollable world. even the father of Java has expressed these same feelings in very similar words : Quite the firestorm!. No doubt Java is living now in an age of anxiety, an age of continual crisis.

In fact i used Java as an example to express a wider and broader sentiment of the return of the so called Age of Anxiety. In almost every area of human experience today , people are searching for ways to put meaning back into life. am i the only one who have this sentiment? or is it a realistic fact?
I hate to be pessimistic but that’s how i see the world today ;and i hope deeply I’m wrong.