ProjectBuilder help

Hi, Im using ProjectBuilder (OS X 10.3.2) and I’m trying to run a fullscreen example from java.sun.com. The code does compile but when the app actually runs I get this error:

[JavaAppLauncher Error] CallStaticVoidMethod() threw an exception
java.lang.NoClassDefFoundError: java/awt/DisplayMode
at MultiBufferTest.(MultiBufferTest.java:21)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at apple.launcher.LaunchRunner.loadMainMethod(LaunchRunner.java:55)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:84)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
Exception in thread “main”
MultiBufferTest has exited with status 1.

A little help please?

You are likely running the code with the 1.3.1 JRE. Make sure you set the code to run with the 1.4.x JRE. This is a common mistake with PB (I don’t use it personally).

I used to use Project Builder, until folks around here told me to switch to Eclipse.

It’s a free development environment from IBM. It’s a billion zillion times better for Java than Project Builder. I was resistant to making the change, because it took a little effort to learn how to use Eclipse, but once I put the time in (really all it took was reading the help screens) I was hooked. I highly, highly recommend that you check it out.