0

ZK Eclipse Plugin on UBUNTU problem

asked 2009-02-10 10:12:51 +0800

vpupkin gravatar image vpupkin
30 1

Hi,
i used the latest ZK-plugin on windows already. Nice tool! Now i installed it on Eclipse-Europa on UBUNTU 8.10 and..
..after first eclipse-restart i get exception with opening "VisualEditor"...
> org.eclipse.swt.SWTError: No more handles (java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3346 or swt-mozilla-gtk in swt.library.path, java.library.path or the jar file)

after "advice" from net that exception don't comes but...

..Eclipse says at opening the VisualEditor:

"Not Available, a Visual Editor only works with ZK supported Editor."


Some suggestions?

delete flag offensive retag edit

19 Replies

Sort by » oldest newest

answered 2009-02-10 10:25:14 +0800

vpupkin gravatar image vpupkin
30 1

updated 2009-02-10 10:25:46 +0800

Next step to "success" :
- after reopening my ZUL-file the VisualEditor shows the next "info":
------------------------------------
Fail to initiate Visual Editor for this project (Unknow Error).
Please check following condition of your project:

1. This project must be a Java Project or Dynamic Web Project
2. Preferences in 'Project > Properties > Visual Editor' has been configured correctly.
* A Java Project must associate to a validate ZK package.
* or, A Dynamic Web Project must has validate zk jars in WEB-INF/lib or associates to a validate ZK package.
The minimum set of jar to run zk:
o commons-collections.jar
o commons-logging.jar
o zcommon.jar
o zcommons-el.jar
o zk.jar
o zul.jar
o zweb.jar

-----------------


So - putting listed jars into project-WEB-INF/lib helps.
Just now the project has conflict with already defined dependencies from maven-pom, but already usable state.
The only the Q - how to setup ZK-Studio to accept eclipse-project-class-path, already tuned by maven-plugin? Otherwise it gets duplicated, and possible different versions of ZK-libs. As effect - lib-dir has to be "stored" into SVNtogether with project, but only used for development phase :( . Runtime use deps from POM.

link publish delete flag offensive edit

answered 2009-02-10 11:00:34 +0800

vpupkin gravatar image vpupkin
30 1

So - this story has next "Part"...
Now - by opening ZUL Paletter :((( ::::

eclipse.buildId=M20070921-1145
java.version=1.5.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: –launcher.XXMaxPermSize 328m
Command-line arguments: -os linux -ws gtk -arch x86 –launcher.XXMaxPermSize 328m

Error
Tue Feb 10 11:48:51 CET 2009
Unhandled event loop exception

java.lang.NoClassDefFoundError: com/ibm/icu/text/Bidi
at org.eclipse.draw2d.text.BidiProcessor.process(BidiProcessor.java:190)
at org.eclipse.draw2d.text.BlockFlow.validate(BlockFlow.java:297)
at org.eclipse.draw2d.text.FlowPage.validate(FlowPage.java:149)
at org.eclipse.draw2d.text.FlowPage.getPreferredSize(FlowPage.java:86)
at org.eclipse.draw2d.BorderLayout.calculatePreferredSize(BorderLayout.java:155)
at org.eclipse.draw2d.AbstractLayout.getPreferredSize(AbstractLayout.java:93)
at org.eclipse.draw2d.AbstractHintLayout.getPreferredSize(AbstractHintLayout.java:85)
at org.eclipse.draw2d.Figure.getPreferredSize(Figure.java:735)
at org.eclipse.gef.internal.ui.palette.editparts.DrawerFigure.getMinimumSize(DrawerFigure.java:312)
at org.eclipse.draw2d.ToolbarLayout.getChildMinimumSize(ToolbarLayout.java:195)
at org.eclipse.draw2d.ToolbarLayout.calculateChildrenSize(ToolbarLayout.java:96)
at org.eclipse.draw2d.ToolbarLayout.calculateMinimumSize(ToolbarLayout.java:131)
at org.eclipse.draw2d.AbstractHintLayout.getMinimumSize(AbstractHintLayout.java:68)
at org.eclipse.draw2d.Figure.getMinimumSize(Figure.java:707)
at org.eclipse.draw2d.StackLayout.calculateMinimumSize(StackLayout.java:44)
at org.eclipse.draw2d.AbstractHintLayout.getMinimumSize(AbstractHintLayout.java:68)
at org.eclipse.draw2d.Figure.getMinimumSize(Figure.java:707)
at org.eclipse.draw2d.ViewportLayout.calculatePreferredSize(ViewportLayout.java:65)
at org.eclipse.draw2d.AbstractLayout.getPreferredSize(AbstractLayout.java:93)
at org.eclipse.draw2d.AbstractHintLayout.getPreferredSize(AbstractHintLayout.java:85)
at org.eclipse.draw2d.Figure.getPreferredSize(Figure.java:735)
at org.eclipse.draw2d.StackLayout.calculatePreferredSize(StackLayout.java:71)
at org.eclipse.draw2d.AbstractLayout.getPreferredSize(AbstractLayout.java:93)
at org.eclipse.draw2d.AbstractHintLayout.getPreferredSize(AbstractHintLayout.java:85)
at org.eclipse.draw2d.Figure.getPreferredSize(Figure.java:735)
at org.eclipse.draw2d.FigureCanvas.computeSize(FigureCanvas.java:200)
at org.eclipse.swt.layout.FillData.computeSize(FillData.java:26)
at org.eclipse.swt.layout.FillLayout.computeChildSize(FillLayout.java:148)
at org.eclipse.swt.layout.FillLayout.computeSize(FillLayout.java:119)
at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:211)
at org.eclipse.swt.layout.GridData.computeSize(GridData.java:478)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:214)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:190)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1337)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1156)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:539)
at org.eclipse.ui.part.PageBook$PageBookLayout.layout(PageBook.java:62)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1337)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1156)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:567)
at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:198)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1337)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1156)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:567)
at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:198)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1337)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1156)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:539)
at org.eclipse.ui.internal.LayoutPart.setBounds(LayoutPart.java:300)
at org.eclipse.ui.internal.presentations.PresentablePart.setBounds(PresentablePart.java:169)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.layoutContent(PresentablePartFolder.java:129)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.layout(PresentablePartFolder.java:410)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:289)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
at org.eclipse.ui.internal.PerspectiveHelper.bringPartToTop(PerspectiveHelper.java:442)
at org.eclipse.ui.internal.Perspective.bringToTop(Perspective.java:216)
at org.eclipse.ui.internal.WorkbenchPage.internalBringToTop(WorkbenchPage.java:793)
at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:610)
at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1051)
at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1029)
at org.eclipse.ui.internal.WorkbenchPage.access$19(WorkbenchPage.java:1008)
at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:3684)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3681)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3657)
at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:165)
at org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:109)
at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:77)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:239)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:475)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:429)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:165)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
at org.eclipse.ui.internal.ShowViewMenu$3.run(ShowViewMenu.java:128)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

link publish delete flag offensive edit

answered 2009-02-11 00:18:27 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Would you post to ZK Studio Bugs. Thanks.

link publish delete flag offensive edit

answered 2009-02-11 05:59:17 +0800

dennis gravatar image dennis
3669 1 6
http://www.javaworld.com....

updated 2009-02-12 08:43:27 +0800

could the exception been caused by another plugin ?
check this
http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14171540

link publish delete flag offensive edit

answered 2009-02-12 09:47:17 +0800

vpupkin gravatar image vpupkin
30 1

updated 2009-02-12 09:48:30 +0800

May be it is also happens with another plugin,but in my case i see that callstacktrace exactly when i try to open "ZUL Palette"-view.
Looks like it is not fully compatible with my eclipse-core (EUROPE).
R somebody used the latest plugin-version with Eclipse-Europe?

I still use WTP-2.0.1(allinone-version) on my local.

eclipse.buildId=M20070921-1145
java.version=1.5.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: –launcher.XXMaxPermSize 328m
Command-line arguments: -os linux -ws gtk -arch x86 –launcher.XXMaxPermSize 328m
Eclipse SDK

Version: 3.3.1

link publish delete flag offensive edit

answered 2009-02-13 01:33:26 +0800

dennis gravatar image dennis
3669 1 6
http://www.javaworld.com....

Ok, Would you post it to zk stuido bug list, then we can track it.
thinks.

link publish delete flag offensive edit

answered 2009-03-05 07:52:46 +0800

BerndWill gravatar image BerndWill
150 1

I recently installed ZK on Ubuntu 8.10 using this guide:
ZK Studio Installation Guide

works perfect

link publish delete flag offensive edit

answered 2009-03-22 19:11:07 +0800

sboschi gravatar image sboschi
15

Hi vpupkin,

I'm tryin to use ZK Eclipse Plugin on Ubuntu.
I succesfuly managed to make an application manually but I didn't manage to create thesame application via Eclipse.
My post is here.
Did you eventually managed to use Eclipse ?

Thanks

link publish delete flag offensive edit

answered 2009-05-09 13:39:32 +0800

sousa1981 gravatar image sousa1981
573 4

I tried install ZK Studio in Ubuntu without success using "Software Update".

An error occurred during provisioning.
Failed to prepare partial IU: org.zkoss.eclipse.editor 0.9.3.v200903221453.

I Will try manual installation.

link publish delete flag offensive edit

answered 2009-05-09 17:04:11 +0800

sousa1981 gravatar image sousa1981
573 4

I got the same error while trying to manual installation.

So, I will be using ZK without ZK Studio :-) while without time to think about what happen.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-02-10 10:12:51 +0800

Seen: 2,122 times

Last updated: May 16 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More