Back to =< Netbeans 6.5.1, when you updated the JDK, and installed the new version, Netbeans wasn’t able to start due to a missing JDK. You could start Netbeans with –javahome
switch to point to the new JDK to avoid a terminal error.
Or you could open the <NetbeansInstallDirectory>\etc\netbeans.conf, and in there you would modify the netbeans_jdkhome var.
As for Netbeans 6.7M2 this is no longer necessary. It searches for another IDE when it can’t find the original one. Though this is just for THAT session. So if you want a permanent change you still have to edit >blah<\etc\netbeans.conf like stated above.
Good luck
1 Comment »
A few days ago I was walking on the streets with a friend. All of the sudden she says: “Oh look a cat under that car”, I look and I see ‘something moving’. As I walked closer the animal ran away.
And it wasn’t a cat.
It was this:

Without the snow ofcourse! It’s an opossum. Pretty cool
No Comments »
Apparently you can browse your history in Firefox by holding Shift and then scroll the wheel.
Didn’t know that
2 Comments »
Posted by Kristof in .NET, C#
(My friend Peter pointed me to this so I am writing this on his behalf)
Basic setup:
A simple application, an SDF (Microsoft SQL Server Compact file) and the Entity Framework.
So I created the project, added the files, created the tables, made a model, and wrote this class:
namespace LinqToEntities
{
class Program
{
static void Main(string[] args)
{
using (Database1Entities ctx = new Database1Entities())
{
Test myTest = new Test() { Value1 = "Blah", Value2 = "Blah2" };
ctx.AddToTestSet(myTest);
ctx.SaveChanges();
}
}
}
}
And this gives me a nice error on ctx.SaveChanges();
(Big image!!!)
The problem is not the database, like the error says. But the problem is that the EF just doesn’t understand it.
Here are some ‘workaround’, I quote it because I don’t really consider them a workaround.:
- Disable autoincrement, and manually fetch the highest id, and then insert. This could lead to corruption if you are in a multi threaded environment.
- Use a SqlCeCommand
But it’s a breaking issue I think, and I hope they fix it in the next version.
1 Comment »
public class Main
{
public static void main(String[] args)
{
Test t = new Test();
System.out.println(t.getInt());
}
public class Test
{
public Test()
{
}
public int getInt()
{
return 5;
}
}
}
While it works in C#:
class Program
{
static void Main(string[] args)
{
Test t = new Test();
Console.WriteLine(t.GetInt());
Console.ReadLine();
}
public class Test
{
public Test()
{
}
public int GetInt()
{
return 5;
}
}
}
If you move the class in Java to a seperate file it (obviously) works. But why? No idea.
4 Comments »