Author Topic: compilation error with java manage console  (Read 9740 times)

forrestbf

  • Newbie
  • *
  • Posts: 2
    • View Profile
compilation error with java manage console
« on: January 31, 2013, 05:12:55 am »
hi,geek.I am trying to compile java manage console.the project nxmc-networkmaps and nxmc-serviceview can't pass through,it looks like errors about Zest2.0,but i download the newest zest2.0 according to your advice.can you give me some more details.thank you!

an error is can't import org.eclipse.zest.core.viewers
« Last Edit: January 31, 2013, 08:10:00 am by forrestbf »

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 7203
    • View Profile
Re: compilation error with java manage console
« Reply #1 on: January 31, 2013, 10:26:30 am »
Hi!

Are you building RCP (desktop) console or web console? Also, please show exact error message.

Best regards,
Victor

forrestbf

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: compilation error with java manage console
« Reply #2 on: February 01, 2013, 03:43:28 am »
Thank you for replying.I am building RCP (desktop) console.This is my first time to develop NetXMS.basicly I am a C++ programmer and I have maken agent behind NAT can connect server protively.But I am not very familier with java and eclipse.
There is a strange thing I can't understand.The project nxmc-networkmaps and nxmc-serviceview can't find the lib org.eclipse.zest.core_2.0.0.201210200125.jar in the directory plugins automaticly.I have to add it into the projects manually and change the Access rules.
After that I can build and run nxmc-core. But the eclipse control console show:
!SESSION 2013-02-01 09:33:51.840 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_01
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Framework arguments:  -product org.netxms.ui.eclipse.console.product en
Command-line arguments:  -product org.netxms.ui.eclipse.console.product -data C:\Users\Administrator\workspace/../runtime-nxmc.product -dev file:C:/Users/Administrator/workspace/.metadata/.plugins/org.eclipse.pde.core/nxmc.product/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -data @user.home/.nxmc/data en

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:54.452
!MESSAGE NLS unused message: ADAPTOR_DIRECTORY_REMOVE_EXCEPTION in: org.eclipse.osgi.internal.baseadaptor.ExternalMessages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:54.452
!MESSAGE NLS unused message: ADAPTOR_ERROR_GETTING_MANIFEST in: org.eclipse.osgi.internal.baseadaptor.ExternalMessages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:54.452
!MESSAGE NLS unused message: ADAPTOR_DATA_AREA_NOT_SET in: org.eclipse.osgi.internal.baseadaptor.ExternalMessages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:54.453
!MESSAGE NLS unused message: BUNDLE_CLASSPATH_PROPERTIES_ERROR in: org.eclipse.osgi.internal.baseadaptor.ExternalMessages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.143
!MESSAGE NLS unused message: ViewsPreference_currentPresentation in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.143
!MESSAGE NLS unused message: ViewsPreference_currentPresentationFormat in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.143
!MESSAGE NLS unused message: ViewsPreference_presentationConfirm_title in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.144
!MESSAGE NLS unused message: ViewsPreference_presentationConfirm_message in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.144
!MESSAGE NLS unused message: ViewsPreference_presentationConfirm_yes in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.144
!MESSAGE NLS unused message: ViewsPreference_presentationConfirm_no in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.144
!MESSAGE NLS unused message: ViewsPreference_editors in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.145
!MESSAGE NLS unused message: ViewsPreference_editors_top in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.145
!MESSAGE NLS unused message: ViewsPreference_editors_bottom in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.145
!MESSAGE NLS unused message: ViewsPreference_views in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.145
!MESSAGE NLS unused message: ViewsPreference_views_top in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.146
!MESSAGE NLS unused message: ViewsPreference_views_bottom in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.146
!MESSAGE NLS unused message: ViewsPreference_perspectiveBar in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.146
!MESSAGE NLS unused message: ViewsPreference_perspectiveBar_topRight in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.147
!MESSAGE NLS unused message: ViewsPreference_perspectiveBar_topLeft in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.147
!MESSAGE NLS unused message: ViewsPreference_perspectiveBar_left in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.147
!MESSAGE NLS unused message: ViewsPreference_traditionalTabs in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.147
!MESSAGE NLS unused message: ViewsPreference_currentTheme in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.148
!MESSAGE NLS unused message: ViewsPreference_currentThemeDescription in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.148
!MESSAGE NLS unused message: ViewsPreference_override in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.148
!MESSAGE NLS unused message: ViewsPreference_currentThemeFormat in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.osgi 2 1 2013-02-01 09:33:55.148
!MESSAGE NLS unused message: ViewsPreference_restartRequestJobName in: org.eclipse.ui.internal.messages

!ENTRY org.eclipse.e4.ui.workbench 4 0 2013-02-01 09:33:55.261
!MESSAGE Unable to retrieve the bundle from the URI: bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.cleanupaddon.CleanupAddon

!ENTRY org.eclipse.e4.ui.workbench 4 0 2013-02-01 09:33:55.262
!MESSAGE Unable to retrieve the bundle from the URI: bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.dndaddon.DnDAddon

!ENTRY org.eclipse.e4.ui.workbench 4 0 2013-02-01 09:33:55.262
!MESSAGE Unable to retrieve the bundle from the URI: bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon

!ENTRY org.eclipse.ui 4 0 2013-02-01 09:33:55.548
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
   at org.netxms.ui.eclipse.console.NXMCWorkbenchAdvisor.postStartup(NXMCWorkbenchAdvisor.java:124)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2548)
   at org.eclipse.ui.internal.Workbench.access$7(Workbench.java:2431)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:586)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
   at org.netxms.ui.eclipse.console.NXMCApplication.start(NXMCApplication.java:36)
   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
   at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
please give me some advices.Thanks.

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 7203
    • View Profile
Re: compilation error with java manage console
« Reply #3 on: February 01, 2013, 09:01:03 am »
Hi!

The correct way of adding Zest (and other dependencies) is via Help->Install Software and correct download site. There are file called eclipse_addons.txt where all necessary add-ons with appropriate download sites listed.

Best regards,
Victor