To have Eclipse use a particular Java VM :
Edit the eclipse.ini file and add the vm argument below the line org.eclipse.platform
-vm /absolute/path/to/your/java/executable
I’ve found this particularly useful on Windows when I’ve installed and removed various versions of JDK and eclipse appears completely lost and confused.
Archive for the ‘Java’ Category
To have Eclipse use a particular Java VM
Posted in Java, Linux on February 10, 2009 | Leave a Comment »
versus
Posted in Java on August 30, 2007 | Leave a Comment »
Run time polymorphism vs. Compile time polymorphism
Overriding is polymorphism. Obvious enough. But how the heck is Overloading polymorphism? Which Overloaded method is called isn’t decided at runtime, that is already determined at compile time. So is Overloading polymorphism simply because, although the signatures vary all over the place, the method name is the same?
Abstract classes [...]
basic oo concepts
Posted in Java on August 30, 2007 | 1 Comment »
Is Java pure OO? Not exactly, since primitives are not implemented as objects. Smalltalk for example, is purely OO.
Abstraction:
- Extract all the common attributes and behaviour for a given set of classes and move them one level up and that will be your first level of abstraction.
- [...]
insider humour
Posted in Java on July 5, 2007 | Leave a Comment »
A long time ago, I’d come across (in Reader’s Digest, I think) these :
Two atoms are sitting at a bar. One is looking really downcast.
“I think I have lost an electron”.
“Are you sure?”
“I’m positive.”
A neutron walks into a bar, asks for a stiff one, swigs it down in one gulp and asks the bartender “How [...]