Home |  Forum |  RSS

Forum

Tomaz Dobravec - Mon Mar 27 20:01:30 UTC 2017 Mon Mar 27 20:01:30 UTC 2017
Hi everyone,

I am using GanttProject for a long time and I found it a very good project. It helped me a lot. I made some extensions and everything went well. Until the first time I tried to import the whole project in an Eclipse newer than Kepler. After some search over the web I found that GanttProject is not compatible with modern eclipses so I decided to stay with Kepler and Windows XP.

Recently I have upgraded my computer from Windows XP to Windows 10 and I tried to install everything exactly as it was (java 1.7_79, eclipse Kepler, import GanttProject, ...). But I didn't succeed. I can build the project but I can't run it. I get the error as listed below.

I don't know how to proceed. I tried several options but none worked.

Now I have two questions.
1) Can someone help me to fix this problem, please.
2) what and how should I change in the whole project to make it usable in moderen eclipses? Can the old fashioned plugins be easily changed into something newer?

Thank you for any help.

Regards, Tomaž


!SESSION 2017-03-27 21:52:57.677 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_79
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=sl_SI
Framework arguments: -application net.sourceforge.ganttproject.GanttProject
Command-line arguments: -application net.sourceforge.ganttproject.GanttProject -data D:\Marinko\Planer\ganttproject-2.1-m3/../runtime-Obracun -dev file:D:/Marinko/Planer/ganttproject-2.1-m3/.metadata/.plugins/org.eclipse.pde.core/Obracun/dev.properties -os win32 -ws win32 -arch x86 -consoleLog

!ENTRY org.eclipse.osgi 2 0 2017-03-27 21:52:58.380
!MESSAGE The plugin "com.jgoodies" with the version "1.0.0" and location "reference:file:/D:/Marinko/Planer/ganttproject-2.1-m3/com.jgoodies/" is an old style Eclipse 2.0 plugin with no OSGi bundle manifest. Support for Eclipse 2.0 style plugins will be removed in a future release. Refer to the migration guide for details.

!ENTRY org.eclipse.osgi 2 0 2017-03-27 21:52:59.249
!MESSAGE The plugin "org.ganttproject.chart.pert" with the version "1.0.0" and location "reference:file:/D:/Marinko/Planer/ganttproject-2.1-m3/org.ganttproject.chart.pert/" is an old style Eclipse 2.0 plugin with no OSGi bundle manifest. Support for Eclipse 2.0 style plugins will be removed in a future release. Refer to the migration guide for details.

!ENTRY org.eclipse.osgi 2 0 2017-03-27 21:52:59.271
!MESSAGE The plugin "org.ganttproject.impex.htmlpdf" with the version "2.0.0" and location "reference:file:/D:/Marinko/Planer/ganttproject-2.1-m3/org.ganttproject.impex.htmlpdf/" is an old style Eclipse 2.0 plugin with no OSGi bundle manifest. Support for Eclipse 2.0 style plugins will be removed in a future release. Refer to the migration guide for details.

!ENTRY org.eclipse.osgi 2 0 2017-03-27 21:52:59.287
!MESSAGE The plugin "org.ganttproject.impex.msproject" with the version "2.0.0" and location "reference:file:/D:/Marinko/Planer/ganttproject-2.1-m3/org.ganttproject.impex.msproject/" is an old style Eclipse 2.0 plugin with no OSGi bundle manifest. Support for Eclipse 2.0 style plugins will be removed in a future release. Refer to the migration guide for details.

!ENTRY org.eclipse.osgi 2 0 2017-03-27 21:52:59.333
!MESSAGE The plugin "org.jdesktop" with the version "1.0.0" and location "reference:file:/D:/Marinko/Planer/ganttproject-2.1-m3/org.jdesktop/" is an old style Eclipse 2.0 plugin with no OSGi bundle manifest. Support for Eclipse 2.0 style plugins will be removed in a future release. Refer to the migration guide for details.

!ENTRY org.eclipse.osgi 2 0 2017-03-27 21:53:00.708
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2017-03-27 21:53:00.709
!MESSAGE Bundle reference:file:/D:/Marinko/Planer/ganttproject-2.1-m3/org.ganttproject.chart.pert/ was not resolved.
!SUBENTRY 2 org.ganttproject.chart.pert 2 0 2017-03-27 21:53:00.709
!MESSAGE Missing required bundle net.sourceforge.ganttproject_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2017-03-27 21:53:00.709
!MESSAGE Bundle reference:file:/D:/Marinko/Planer/ganttproject-2.1-m3/org.ganttproject.impex.msproject/ was not resolved.
!SUBENTRY 2 org.ganttproject.impex.msproject 2 0 2017-03-27 21:53:00.709
!MESSAGE Missing required bundle net.sourceforge.ganttproject_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2017-03-27 21:53:00.709
!MESSAGE Bundle reference:file:/D:/Marinko/Planer/ganttproject-2.1-m3/org.ganttproject.impex.htmlpdf/ was not resolved.
!SUBENTRY 2 org.ganttproject.impex.htmlpdf 2 0 2017-03-27 21:53:00.710
!MESSAGE Missing required bundle net.sourceforge.ganttproject_0.0.0.

!ENTRY org.eclipse.osgi 2 0 2017-03-27 21:53:00.711
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2017-03-27 21:53:00.711
!MESSAGE Bundle org.ganttproject.chart.pert_1.0.0 [239] was not resolved.
!SUBENTRY 2 org.ganttproject.chart.pert 2 0 2017-03-27 21:53:00.711
!MESSAGE Missing required bundle net.sourceforge.ganttproject_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2017-03-27 21:53:00.711
!MESSAGE Bundle org.ganttproject.impex.htmlpdf_2.0.0 [240] was not resolved.
!SUBENTRY 2 org.ganttproject.impex.htmlpdf 2 0 2017-03-27 21:53:00.711
!MESSAGE Missing required bundle net.sourceforge.ganttproject_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2017-03-27 21:53:00.711
!MESSAGE Bundle org.ganttproject.impex.msproject_2.0.0 [241] was not resolved.
!SUBENTRY 2 org.ganttproject.impex.msproject 2 0 2017-03-27 21:53:00.711
!MESSAGE Missing required bundle net.sourceforge.ganttproject_0.0.0.

!ENTRY org.eclipse.osgi 2 0 2017-03-27 21:53:00.755
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2017-03-27 21:53:00.755
!MESSAGE Bundle reference:file:/D:/Marinko/Planer/ganttproject-2.1-m3/org.ganttproject.chart.pert/ was not resolved.
!SUBENTRY 2 org.ganttproject.chart.pert 2 0 2017-03-27 21:53:00.755
!MESSAGE Missing required bundle net.sourceforge.ganttproject_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2017-03-27 21:53:00.755
!MESSAGE Bundle reference:file:/D:/Marinko/Planer/ganttproject-2.1-m3/org.ganttproject.impex.msproject/ was not resolved.
!SUBENTRY 2 org.ganttproject.impex.msproject 2 0 2017-03-27 21:53:00.755
!MESSAGE Missing required bundle net.sourceforge.ganttproject_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2017-03-27 21:53:00.755
!MESSAGE Bundle reference:file:/D:/Marinko/Planer/ganttproject-2.1-m3/org.ganttproject.impex.htmlpdf/ was not resolved.
!SUBENTRY 2 org.ganttproject.impex.htmlpdf 2 0 2017-03-27 21:53:00.755
!MESSAGE Missing required bundle net.sourceforge.ganttproject_0.0.0.

!ENTRY org.eclipse.osgi 2 0 2017-03-27 21:53:00.755
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2017-03-27 21:53:00.755
!MESSAGE Bundle org.ganttproject.chart.pert_1.0.0 [239] was not resolved.
!SUBENTRY 2 org.ganttproject.chart.pert 2 0 2017-03-27 21:53:00.755
!MESSAGE Missing required bundle net.sourceforge.ganttproject_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2017-03-27 21:53:00.755
!MESSAGE Bundle org.ganttproject.impex.htmlpdf_2.0.0 [240] was not resolved.
!SUBENTRY 2 org.ganttproject.impex.htmlpdf 2 0 2017-03-27 21:53:00.755
!MESSAGE Missing required bundle net.sourceforge.ganttproject_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2017-03-27 21:53:00.755
!MESSAGE Bundle org.ganttproject.impex.msproject_2.0.0 [241] was not resolved.
!SUBENTRY 2 org.ganttproject.impex.msproject 2 0 2017-03-27 21:53:00.755
!MESSAGE Missing required bundle net.sourceforge.ganttproject_0.0.0.

!ENTRY org.eclipse.osgi 4 0 2017-03-27 21:53:00.755
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "net.sourceforge.ganttproject.GanttProject" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.ant.ui.antRunner, org.eclipse.e4.ui.workbench.swt.E4Application, org.eclipse.e4.ui.workbench.swt.GenTopic, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.jdt.core.JavaIndexer, org.eclipse.pde.build.Build, org.eclipse.pde.junit.runtime.uitestapplication, org.eclipse.pde.junit.runtime.legacytestapplication, org.eclipse.pde.junit.runtime.coretestapplication, org.eclipse.pde.junit.runtime.coretestapplicationnonmain, org.eclipse.pde.junit.runtime.nonuithreadtestapplication, org.eclipse.ui.ide.workbench.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
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:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
An error has occurred. See the log file
D:\Marinko\Planer\ganttproject-2.1-m3\.metadata\.plugins\org.eclipse.pde.core\Obracun\1490644377911.log.
4 answers  
Dmitry Barashev - Tue Mar 28 00:49:39 UTC 2017 Tue Mar 28 00:49:39 UTC 2017
Hi Tomaz,
we upgraded our build procedure to be compatible with the latest Eclipses and other IDEs such as IntelliJ. New build system is based on Gradle. You can find instructions for building and running GanttProject here (command-line, Eclipse, IntelliJ):

http://docs.ganttproject.biz/development

Plugin format didn't change. You don't need to do anything except for writing build.gradle file. Use one of the existing build files in plugins as the example and make sure to add your plugin to ganttproject-builder/settings.gradle
Dmitry Barashev - Tue Mar 28 00:50:46 UTC 2017 Tue Mar 28 00:50:46 UTC 2017
By the way, we're deprecating this forum in favor of shiny new https://help.ganttproject.biz

Please consider using the new support portal.
Tomaz Dobravec - Tue Mar 28 19:01:59 UTC 2017 Tue Mar 28 19:01:59 UTC 2017
Thank you Dmitry for your quick answer. But unfortunately it looks like your solution is not suitable for my case. I forgot to tell that I am using an old version of GanttProject, i.e. ganttproject-2.1-m3.

If I try to fit gradle to my project I get lots of errors. I think that the build.xml file in ganttproject-builder is not suitable (I compared it with build.xml that is a part of the current version and they look totally different).

Do you have any idea how to solve my old distribution?

Thanks, Tomaž
Dmitry Barashev - Thu Mar 30 21:55:15 UTC 2017 Thu Mar 30 21:55:15 UTC 2017
Is there any particular reason why do you use 2.1-m3?

I think you can use build.xml which came with 2.1-m3 and just run ant dist-bin or whatever the task was called there. We always built distros using command line tools only, without any particular dependency on Eclipse.