Problem to set up udig sdk on mac os

View: New views
6 Messages — Rating Filter:   Alert me  

Problem to set up udig sdk on mac os

by Daniele Andreis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I'm trying to set up the eclipse environment with udig sdk (M7). I have been following the sdk (quickstart at http://udig.refractions.net/files/tutorials/SDKQuickstart.pdf) but I have some problems.

 I'm working on mac os (leopard) with the default jre (java.version=1.5.0_13). I have installed the eclipse 3.5.0, with delta pack 3.5.0 and udig sdk M7.

When I run the udig.product I have lots of troubles.



I post the first line of the errors report:

!ENTRY org.eclipse.osgi 4 0 2009-10-28 10:41:07.279

!MESSAGE An error occurred while automatically activating bundle net.refractions.udig.libs (27).

!STACK 0

org.osgi.framework.BundleException: The activator net.refractions.udig.libs.internal.Activator for bundle net.refractions.udig.libs is invalid

at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:157)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:751)

at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)

at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)

at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)

at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)

at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)

at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:381)

at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)

at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:454)

at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)

at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)

at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)

at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)

at java.lang.Class.getDeclaredConstructors0(Native Method)

at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)

at java.lang.Class.getConstructor0(Class.java:2671)

at java.lang.Class.newInstance0(Class.java:321)

at java.lang.Class.newInstance(Class.java:303)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:152)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:751)

at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)

at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)

at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)

at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)

at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)

at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:381)

at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:457)

at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)

at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)

at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)

at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)

at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)

at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)

at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:874)

at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)

at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:189)

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:368)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

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:559)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)

at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:675)





I have search on internet and into the mailing list but  I haven't found a solution to the problem.  Maybe is it due to the different version number of plug-in?



thanks and regards

--
Daniele Andreis

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Re: Problem to set up udig sdk on mac os

by Andrea Antonello-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Daniele,
this is definitely a version problem.

Try to do a clean on the projects.

Andrea



On Tue, Nov 10, 2009 at 11:54 AM, Daniele Andreis
<daniele.andreis@...> wrote:

> Hi all,
> I'm trying to set up the eclipse environment with udig sdk (M7). I have been
> following the sdk (quickstart
> at http://udig.refractions.net/files/tutorials/SDKQuickstart.pdf) but I have
> some problems.
>  I'm working on mac os (leopard) with the default jre
> (java.version=1.5.0_13). I have installed the eclipse 3.5.0, with delta pack
> 3.5.0 and udig sdk M7.
> When I run the udig.product I have lots of troubles.
>
>
> I post the first line of the errors report:
>
> !ENTRY org.eclipse.osgi 4 0 2009-10-28 10:41:07.279
>
> !MESSAGE An error occurred while automatically activating bundle
> net.refractions.udig.libs (27).
>
> !STACK 0
>
> org.osgi.framework.BundleException: The activator
> net.refractions.udig.libs.internal.Activator for bundle
> net.refractions.udig.libs is invalid
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:157)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:751)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
>
> at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:381)
>
> at
> org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:454)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
>
> at java.lang.Class.getDeclaredConstructors0(Native Method)
>
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>
> at java.lang.Class.getConstructor0(Class.java:2671)
>
> at java.lang.Class.newInstance0(Class.java:321)
>
> at java.lang.Class.newInstance(Class.java:303)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:152)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:751)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
>
> at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:381)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:457)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:874)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:189)
>
> 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:368)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>
> 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:559)
>
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
>
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
>
> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
>
> Caused by: java.lang.UnsupportedClassVersionError: Bad version number in
> .class file
>
> at java.lang.ClassLoader.defineClass1(Native Method)
>
> at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
>
>
>
> I have search on internet and into the mailing list but  I haven't found a
> solution to the problem.  Maybe is it due to the different version number of
> plug-in?
>
> thanks and regards
>
> --
> Daniele Andreis
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Re: Problem to set up udig sdk on mac os

by Daniele Andreis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Thanks for your reply. 

I have cleaned up the project but udig doesn't run, and the report is the same. It can be a problem in the target platform?Maybe I have to add some extras plug ins?

2009/11/10 andrea antonello <andrea.antonello@...>
Hi Daniele,
this is definitely a version problem.

Try to do a clean on the projects.

Andrea




--
Daniele Andreis

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Re: Problem to set up udig sdk on mac os

by Jody Garnett-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Daniele:

I have not had any feedback on the target platform produced for 1.2-M7 so there may indeed be problems. I would specifically think that Java 6 has been used to produce this SDK and it is unable to run on Java 5. It looks to be the class "Activator" that is failing.

We will need to issue the SDK again.

Jody

On 10/11/2009, at 10:48 PM, Daniele Andreis wrote:

Hi,

Thanks for your reply. 

I have cleaned up the project but udig doesn't run, and the report is the same. It can be a problem in the target platform?Maybe I have to add some extras plug ins?

2009/11/10 andrea antonello <andrea.antonello@...>
Hi Daniele,
this is definitely a version problem.

Try to do a clean on the projects.

Andrea




--
Daniele Andreis
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Re: Problem to set up udig sdk on mac os

by Daniele Andreis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

thank you for your reply,
I have set up the environment with the sdk M6 and it work well.  I
have downloaded the jgrass plug-ins but there is a problem with the
import of  net.refractions.udig.ui.ExceptionDetailsDialog. Is it a
class of the sdk M7?

thanks and regards

--
Daniele Andreis
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Re: Problem to set up udig sdk on mac os

by Andrea Antonello-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, I confirm that. It is on trunk.

Andrea

On Wed, Nov 11, 2009 at 10:41 AM, Daniele Andreis
<daniele.andreis@...> wrote:

> thank you for your reply,
> I have set up the environment with the sdk M6 and it work well.  I
> have downloaded the jgrass plug-ins but there is a problem with the
> import of  net.refractions.udig.ui.ExceptionDetailsDialog. Is it a
> class of the sdk M7?
>
> thanks and regards
>
> --
> Daniele Andreis
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel