Hi

I am developing a plugin and my code uses API from JDK 1.4.
WSAD 5.1.2 uses IBM JRE 1.3 as default JVM and that causes my plugin not able to compile properly (all sort of unresolved references). Then I use the command
wsappdev -vm "runtimes\base_v51\java\jre\bin\java.exe"
to start WSAD using IBM JRE 1.4 VM.
But it still does not solve my problem, I still cannot refer to JDK 1.4 APIs. Furthermore, upon opening the plugin.xml (in my plug-in project), I got the following errors (copied from workspace/.metadata/.log file)
Code:
!SESSION Sep 14, 2005 14:18:36.848 ---------------------------------------------
java.fullversion=J2RE 1.4.1 IBM J9 build 20030915 (JIT enabled)
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -data c:\work\dev\java -install file:C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/eclipse/
!ENTRY org.eclipse.jface 4 2 Sep 14, 2005 14:18:36.848
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NoSuchMethodError: org/apache/xerces/parsers/DOMBuilderImpl.setFeature(Ljava/lang/String;Z)V
at java.lang.Throwable.(Throwable.java)
at java.lang.Throwable.(Throwable.java)
at java.lang.NoSuchMethodError.(NoSuchMethodError.java:53)
at org.eclipse.pde.internal.core.plugin.XMLDocumentModelBuilder.initialize(XMLDocumentModelBuilder.java:71)
at org.eclipse.pde.internal.core.plugin.XMLDocumentModelBuilder.(XMLDocumentModelBuilder.java:67)
at org.eclipse.pde.internal.core.plugin.XMLCore.createXMLModelBuilder(XMLCore.java:61)
at org.eclipse.pde.internal.core.plugin.DocumentModel.(DocumentModel.java:44)
at org.eclipse.pde.internal.core.plugin.AbstractPluginModelBase.getDocumentModel(AbstractPluginModelBase.java:51)
at org.eclipse.pde.internal.core.plugin.AbstractPluginModelBase.load(AbstractPluginModelBase.java:151)
at org.eclipse.pde.internal.core.WorkspaceModelManager.loadWorkspaceModel(WorkspaceModelManager.java:635)
at org.eclipse.pde.internal.core.WorkspaceModelManager.createWorkspacePluginModel(WorkspaceModelManager.java:161)
at org.eclipse.pde.internal.core.WorkspaceModelManager.createWorkspacePluginModel(WorkspaceModelManager.java:172)
at org.eclipse.pde.internal.core.WorkspaceModelManager.initializeWorkspacePluginModels(WorkspaceModelManager.java:487)
at org.eclipse.pde.internal.core.WorkspaceModelManager.reset(WorkspaceModelManager.java:717)
at org.eclipse.pde.internal.core.PDECore.initializeModels(PDECore.java:327)
at org.eclipse.pde.internal.core.PDECore.getWorkspaceModelManager(PDECore.java:294)
at org.eclipse.pde.internal.ui.editor.manifest.ManifestEditor.createResourceModel(ManifestEditor.java:211)
at org.eclipse.pde.internal.ui.editor.manifest.ManifestEditor.createModel(ManifestEditor.java:144)
at org.eclipse.pde.internal.ui.editor.PDEMultiPageEditor.initializeModels(PDEMultiPageEditor.java:495)
at org.eclipse.pde.internal.ui.editor.PDEMultiPageEditor.init(PDEMultiPageEditor.java:472)
at org.eclipse.pde.internal.ui.editor.manifest.ManifestEditor.init(ManifestEditor.java:291)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:604)
at org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:666)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:459)
at org.eclipse.ui.internal.EditorManager.openEditorFromInput(EditorManager.java:333)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:424)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2056)
at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:2004)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:1991)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1986)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1887)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:133)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:106)
at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:47)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:158)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:147)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:191)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:169)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:324)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$5.open(PackageExplorerPart.java:323)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:397)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java)
at org.eclipse.core.runtime.Platform.run(Platform.java)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:395)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:605)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:694)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:209)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:204)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:233)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
How can I go about solving these problem ? Any help is greatly appreciated.

Thanks

Tomas