After emerging Octopus I try and run it with java -jar /usr/share/octopus-3.0/lib/OctopusGenerator.jar. It start up but when i click on new project I get an error about a class def not found java.lang.NoClassDefFoundError: org/webdocwf/util/loader/LoaderException at org.webdocwf.util.loader.wizard.OctopusGeneratorData.<init>(OctopusGeneratorData.java:97) at org.webdocwf.util.loader.wizard.WizardFrame.createOctopusProjectFrame(WizardFrame.java:261) at org.webdocwf.util.loader.wizard.WizardFrame.access$4(WizardFrame.java:30) at org.webdocwf.util.loader.wizard.WizardFrame$NewOctopusProjectItem.actionPerformed(WizardFrame.java:355) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.AbstractButton.doClick(AbstractButton.java:289) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113) at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231) at java.awt.Component.processMouseEvent(Component.java:5100) at java.awt.Component.processEvent(Component.java:4897) at java.awt.Container.processEvent(Container.java:1569) at java.awt.Component.dispatchEventImpl(Component.java:3615) at java.awt.Container.dispatchEventImpl(Container.java:1627) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) at java.awt.Container.dispatchEventImpl(Container.java:1613) at java.awt.Window.dispatchEventImpl(Window.java:1606) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.EventQueue.dispatchEvent(EventQueue.java:480) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) Reproducible: Always Steps to Reproduce: 1.emerge octopus 2.java -jar ... .jar 3. Actual Results: Application crashes when a new project is started Expected Results: Application should create a new project
I don't think that you're not putting all the libraries it expects on the classpath. I found that missing class in /usr/share/octopus-3.0/lib/Octopus.jar... so could you try: java -cp /usr/share/octopus-3.0/lib/Octopus.jar -jar /usr/share/octopus-3.0/lib/OctopusGenerator.jar
(In reply to comment #1) > I don't think that you're not putting all the libraries it expects on the > classpath. Double negative... whoops. I don't think you're putting all the libraries it expects on the classpath.
Please try with the following command. Re-open if that doesn't work. java -cp /usr/share/octopus-3.0/lib/Octopus.jar -jar /usr/share/octopus-3.0/lib/OctopusGenerator.jar
Hi there, Ok I tried explicitly setting the classpath to the Octopus.jar as stated and it works. I also did a java-config -B octopuse-3.0 and I dont have to explicitly set the classpath on the command line Thanks
Excellent. Thanks for reporting back!
sorry -- I just tried to create a new project and still get the error. I have been using the web start version just fine though.
If you used java-config -B, you would need to source the appropriate environment files. Otherwise, you're shell wouldn't get the new classpath.
i had forgotten what the error was when i tried your suggestions. I thought it was just failure to launch the application but the application launches fine. Its when you clikc on the Project=>New Project menu item and try to save the project that the error occurs. In the console it give the error about the class definition set out above. There must be some other class missing from the classpath but I dont know which one it is. Does it work fine for you or do you also have the same problem when creating a new project?
Reopening
Actually, the program just seems to hang for me when I start a new project. Out of curiousity, have you tried using pre-built jars from upstream?
Alright, seems it was my gtk engine (clearlooks), that was causing the hang. Could you try running: java -classpath $(java-config -p octopus-3.0) org.webdocwf.util.loader.wizard.WizardFrame With this, I was able to create a new project.
hi there, Yes it worked. I could create a new project. I get errors in the console like "Engine "crux-engine" is unsupported, ignoring" But I could get past the create new project screen to the setup dialog form. thanks
Re-openning, so I can resolve as fixed...
Glad to hear it works. If you want wrapper scripts for the octopus stuff, please file a new bug.