Hi all- I've been working the past few days on refactoring a Java RCP application to run on the C5v tabletyet running into an issue that has me stumped. I was hoping someone might be able to offer some words of wisdom or point me towards something/someone who might be able to.
Specifically, I'm getting a NullPointerException as follows:
java.lang.NullPointerException
at com.intel.healthcare.VersionCheck.getJavaVersionInfo(VersionCheck.java:146)
at com.intel.healthcare.VersionCheck.(VersionCheck.java:76)
at com.intel.healthcare.button.Buttons.(Buttons.java:128)
at doc.scheduletrack.entities.McaScanner.configureScanner(McaScanner.java:72)
at doc.scheduletrack.entities.McaScanner.(McaScanner.java:63)
at doc.scheduletrack.model.db.Scanner.activate(Scanner.java:192)
......
My source code looks like:
public class McaScanner {
public static java.awt.Frame mcaComponent;
...
Composite swtComposite = new Composite(parent, SWT.EMBEDDED);
mcaComponent = SWT_AWT.new_Frame(swtComposite);
scannerButton = new Buttons(mcaComponent); <---- line # 72
...
}I've checked the MCA SDK help documents/examples/forums, and can't find any mention of this. If you have worked with RCP (Eclipse) plugins before, this is being implemented within an RCP application, which is why I have to obtain the Frame component the way shown above. Preferrably I'd like to add the IBarcodeScannedEventListener to something other than a GUI Component, but since this doesn't appear possible I'm using the Frame instance as shown above.
An interesting twist is that this code runs with no exception on a WinXP desktop machine which has the SDK installed...
Thanks in advance for any info possible =)
Thomas


