I fixed the problem by:
- Uninstalling the RIM JDE
- Uninstalling J2EE SDK
- Installed J2SE SDK (the JDE says it needs that)
- Reinstalled JDE
Now I can compile, it appears without problem. I was unable to sucessfully run the HelloWorld app, I am missing something with the Resource file, I'm not sure. I did however create my own HelloWorld Program.
1. Create a New Workspace (I called it, HelloWorld)
2. Create a new Project in the Workspace (again, called HelloWorld)
3. Add a New *.java File (and you guessed it, HelloWorld.java)
Code:
import java.lang.*;
import net.rim.device.api.system.*;
import net.rim.device.api.ui.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;
class HelloWorld extends UiApplication xxx123;
public static void main xxx40;Stringxxx91;xxx93; argsxxx41;xxx123;
HelloWorld theApp = new HelloWorldxxx40;xxx41;;
theApp.enterEventDispatcherxxx40;xxx41;;
xxx125;
HelloWorldxxx40;xxx41; xxx123;
MainScreen screen = new MainScreenxxx40;xxx41;;
screen.setTitlexxx40;new LabelFieldxxx40;"HelloWorld"xxx41;xxx41;;
LabelField lblHello = new LabelFieldxxx40;"This is my first BlackBerry Application!"xxx41;;
screen.addxxx40;lblHelloxxx41;;
// Write to screen! Wooya!
pushScreenxxx40;screenxxx41;;
xxx125;;
xxx125;
4. Copy the compiled code (*.cod) file into your simulator/java directory(with my experimentation, it should also be in your simulator directory)
I hope this is helpfull to others?