Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to run eclipse on FreeBSD
How to run eclipse on FreeBSD [message #74260] Thu, 10 July 2003 13:39 Go to next message
Eclipse UserFriend
Originally posted by: warren.roberts.name

Has anyone been able to run eclipse on FreeBSD? I downloaded the linux
version and tried to run it with the command :

eclipse -vm pathtomyjjvm

It comes up with an error trying to load libgtk-x11-2.0

I have motif and kde installed but not gtk. I thought is was supposed
to run with motif?

Any help would be greatly appreciated.

Thanx
Warren Roberts
Re: How to run eclipse on FreeBSD [message #74278 is a reply to message #74260] Thu, 10 July 2003 14:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: muelleimer.usenet.katzien.de

Hallo!

* Warren Roberts <warren@roberts.name> wrote:
> Has anyone been able to run eclipse on FreeBSD? I downloaded the linux
> version and tried to run it with the command :

I don't think that you can mix linux and freeBSD binaries. As SWT is
implemented with c cdode, I think you will have to recompile the swt
(and other: libcore, update) libs to get this working.

Have a look at the debian packages, which build from source.

Jan
Re: How to run eclipse on FreeBSD [message #74332 is a reply to message #74260] Thu, 10 July 2003 18:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: burner.zclipse.org

On Thu, 10 Jul 2003 11:39:31 -0600, Warren Roberts wrote:

> Has anyone been able to run eclipse on FreeBSD? I downloaded the linux
> version and tried to run it with the command :
>
> eclipse -vm pathtomyjjvm
>
> It comes up with an error trying to load libgtk-x11-2.0
>
> I have motif and kde installed but not gtk. I thought is was supposed
> to run with motif?

Try getting the motif version. (they are different files on the download
page)

>
> Any help would be greatly appreciated.
>
> Thanx
> Warren Roberts

--
http://zclipse.org
Re: How to run eclipse on FreeBSD [message #74350 is a reply to message #74332] Thu, 10 July 2003 19:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: muelleimer.usenet.katzien.de

Hallo!

* Michael R Head <burner@zclipse.org> wrote:
> On Thu, 10 Jul 2003 11:39:31 -0600, Warren Roberts wrote:
>> It comes up with an error trying to load libgtk-x11-2.0
>> I have motif and kde installed but not gtk. I thought is was supposed
>> to run with motif?
> Try getting the motif version. (they are different files on the download
> page)

Just to let you know: The motif version has also Dependencies on GTK:
jan@snoopy:~$ apt-cache show libswt-motif-java
Package: libswt-motif-java
[...]
Version: 2.1.1-1.1
Depends: bonobo-activation (>= 1:2.2.1.1), kdelibs4 (>= 4:3.1.2),
libbonobo-activation4 (>= 1:2.2.1.1), libc6 (>= 2.3.1-1), libglib2.0-0
(>= 2.2.1), libgnomevfs2-0 (>= 2.2.3), liblinc1 (>= 1:1.0.0),
libmotif, liborbit2 (>= 1:2.6.0), libqt3-mt (>= 3:3.1.2), xlibs (>>
4.1.0), java-common
Description: Fast and rich GUI toolkit for Java, motif version

jan@snoopy:~$ ls /usr/lib/eclipse/
eclipse libswt-gnome-motif-2135.so
libswt-motif-2135.so libcore_2_1_0a.so
libswt-gtk-2135.so libswt-pi-gtk-2135.so
libswt-gnome-gtk-2135.so libswt-kde-motif-2135.so
libupdate.so

Until now I haven't figured out, why there are also the gnome and kde
libs... libcore is for providing filaccess support (notice when a file
is changed), libupdate goes to the update plugins... Eclipse 2.1.1...

Jan
Re: How to run eclipse on FreeBSD [message #74368 is a reply to message #74350] Thu, 10 July 2003 19:19 Go to previous messageGo to next message
Eclipse UserFriend
AFAIK the gnome and kde libs are for interaction with the respective
window managers (they were in 2.0 at least) If you don't happen to have
either the kde or gnome installed that should be ok. We created a
special RPM for them without dependency information as they weren't
required (i.e the motif version should run even if you don't have kde or
gnome installed and if you are using kde or gnome it uses some of the
window manager hints). That may have changed of course. Fuzzy on the the
details been awhile since I looked at it.

It would be a bug if the motif version had a hard dependency on GTK.

Peter

Jan Schulz wrote:
> Hallo!
>
> * Michael R Head <burner@zclipse.org> wrote:
>
>>On Thu, 10 Jul 2003 11:39:31 -0600, Warren Roberts wrote:
>>
>>>It comes up with an error trying to load libgtk-x11-2.0
>>>I have motif and kde installed but not gtk. I thought is was supposed
>>>to run with motif?
>>
>>Try getting the motif version. (they are different files on the download
>>page)
>
>
> Just to let you know: The motif version has also Dependencies on GTK:
> jan@snoopy:~$ apt-cache show libswt-motif-java
> Package: libswt-motif-java
> [...]
> Version: 2.1.1-1.1
> Depends: bonobo-activation (>= 1:2.2.1.1), kdelibs4 (>= 4:3.1.2),
> libbonobo-activation4 (>= 1:2.2.1.1), libc6 (>= 2.3.1-1), libglib2.0-0
> (>= 2.2.1), libgnomevfs2-0 (>= 2.2.3), liblinc1 (>= 1:1.0.0),
> libmotif, liborbit2 (>= 1:2.6.0), libqt3-mt (>= 3:3.1.2), xlibs (>>
> 4.1.0), java-common
> Description: Fast and rich GUI toolkit for Java, motif version
>
> jan@snoopy:~$ ls /usr/lib/eclipse/
> eclipse libswt-gnome-motif-2135.so
> libswt-motif-2135.so libcore_2_1_0a.so
> libswt-gtk-2135.so libswt-pi-gtk-2135.so
> libswt-gnome-gtk-2135.so libswt-kde-motif-2135.so
> libupdate.so
>
> Until now I haven't figured out, why there are also the gnome and kde
> libs... libcore is for providing filaccess support (notice when a file
> is changed), libupdate goes to the update plugins... Eclipse 2.1.1...
>
> Jan
Re: How to run eclipse on FreeBSD [message #74386 is a reply to message #74368] Thu, 10 July 2003 20:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: muelleimer.usenet.katzien.de

Hallo!

* Peter Manahan <manahan@ca.ibm.com> wrote:
> AFAIK the gnome and kde libs are for interaction with the respective
> window managers (they were in 2.0 at least) If you don't happen to have
> either the kde or gnome installed that should be ok.

What are they actually doing with the window manager?

What will happen if I remove this libs and start it using KDE?

> We created a
> special RPM for them without dependency information as they weren't
> required (i.e the motif version should run even if you don't have kde or
> gnome installed and if you are using kde or gnome it uses some of the
> window manager hints).

Thanks for this information! That will be a bit sed hacking to get
that right...

> It would be a bug if the motif version had a hard dependency on GTK.

True...

Jan
Re: How to run eclipse on FreeBSD [message #77450 is a reply to message #74260] Thu, 17 July 2003 21:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: warren.roberts.name

I downloaded eclipse-SDK-2.1-linux-motif.zip. I expanded it out an
tried to run it. It puts up the initial two splash screens and then
crashes with :

java.lang.UnsatisfiedLinkError ........ shared object libc.so.6 not found

I even created a symbolic link to libc.so.6 in the working directory but
it still can't find it. What's up??? Why is it so hard to run this??
I run many other xwindows apps including studio one from sun with no
problem at all. I guess eclipse isn't very portable.

I use eclipse on windows and really like it and would really like to run
it on unix but.... Any further help would be appreciated.

Warren Roberts
Re: How to run eclipse on FreeBSD [message #77513 is a reply to message #77450] Fri, 18 July 2003 02:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: burner.zclipse.org

On Thu, 17 Jul 2003 19:28:16 -0600, Warren Roberts wrote:

I don't know of many (any?) people using Eclipse on FreeBSD in this forum,
myself included.

You might consider trying the freebsd-java mailing list for further
inquiry. They seem to talk about Eclipse from time to time.
http://lists.freebsd.org/pipermail/freebsd-java/

that said, here are a couple thoughts ...

> I downloaded eclipse-SDK-2.1-linux-motif.zip. I expanded it out an
> tried to run it. It puts up the initial two splash screens and then
> crashes with :
>
> java.lang.UnsatisfiedLinkError ........ shared object libc.so.6 not
found

Sounds like it's looking for glibc. Possibly the motif binary that comes
with eclipse for linux/motif is linked against glibc.

>
> I even created a symbolic link to libc.so.6 in the working directory but
> it still can't find it. What's up??? Why is it so hard to run this??

Because you're running an executable for linux on FreeBSD.

> I run many other xwindows apps including studio one from sun with no
> problem at all. I guess eclipse isn't very portable.

I guess I don't see the correlation between a binary for one platform not
running on another platform and application portability.

> I use eclipse on windows and really like it and would really like to run
> it on unix but.... Any further help would be appreciated.

If you have a motif binary for freebsd, perhaps you can try to get eclipse
to use that instead of the motif it comes with.

Perhaps you can try using gtk and the eclipse GTK version.

If that fails, you can always try to build from source. I understand
that's what linux PPC people do.


Good luck getting it going,
mike

>
> Warren Roberts

--
http://zclipse.org
Re: How to run eclipse on FreeBSD [message #77528 is a reply to message #77513] Fri, 18 July 2003 02:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stein.m.eliassen.start.no

Michael R Head wrote:
>
>
> If you have a motif binary for freebsd, perhaps you can try to get eclipse
> to use that instead of the motif it comes with.
>
>

Remove libXm* in the eclipse-directory to use motif-library supplied by
the platform.

Stein
Re: How to run eclipse on FreeBSD [message #77883 is a reply to message #77528] Fri, 18 July 2003 12:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: warren.roberts.name

Stein M. Eliassen wrote:
> Michael R Head wrote:
>
>>
>>
>> If you have a motif binary for freebsd, perhaps you can try to get
>> eclipse
>> to use that instead of the motif it comes with.
>>
>>
>
> Remove libXm* in the eclipse-directory to use motif-library supplied by
> the platform.
>
> Stein
>

Ya this is a great idea!! I'll try it and post the results. Thanx for
all the help from everyone.

Warren
Re: How to run eclipse on FreeBSD [message #78394 is a reply to message #74260] Sat, 19 July 2003 18:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jd.dagerot.nu

> Has anyone been able to run eclipse on FreeBSD?

There is a port under /usr/local/ports/java/eclipse it should work without
any problems.
Re: How to run eclipse on FreeBSD [message #78513 is a reply to message #78394] Sun, 20 July 2003 13:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: warren.roberts.name

WOW!! Thanx for pointing this out to me. This port is new, since I
started trying to get eclipse to run. I'm updating my ports tree now
and will build it.


Joachim Dagerot wrote:
>>Has anyone been able to run eclipse on FreeBSD?
>
>
> There is a port under /usr/local/ports/java/eclipse it should work without
> any problems.
>
>
Re: How to run eclipse on FreeBSD [message #78563 is a reply to message #78513] Sun, 20 July 2003 16:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jd.dagerot.nu

> WOW!! Thanx for pointing this out to me. [..] I'm updating my ports tree
now and will build it.

Good luck!
There should be no problems with it (alot of people have compiled and
installed it), but I can't get it to run, got some problems with the Linux
Java SDK during make. But I just tried it once and didn't dig in to it.

Please let me know if it worked smooth for you!
Re: How to run eclipse on FreeBSD [message #78575 is a reply to message #78513] Sun, 20 July 2003 18:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: warren.roberts.name

Warren Roberts wrote:
> WOW!! Thanx for pointing this out to me. This port is new, since I
> started trying to get eclipse to run. I'm updating my ports tree now
> and will build it.
>
>
> Joachim Dagerot wrote:
>
>>> Has anyone been able to run eclipse on FreeBSD?
>>
>>
>>
>> There is a port under /usr/local/ports/java/eclipse it should work
>> without
>> any problems.
>>
>>
>

Well it built and installed perfectly. It sorta runs but when I try to
create a new java project it gives me the following error

java.lang.ArrayIndexOutOfBoundsException: 32
at org.eclipse.swt.graphics.ImageData.getPixel(ImageData.java:6 26)

I wonder if it is a classpath problem?

Anyone else seen this?

Thanx
Warren
Re: How to run eclipse on FreeBSD [message #78587 is a reply to message #78513] Sun, 20 July 2003 20:19 Go to previous message
Eclipse UserFriend
Originally posted by: warren.roberts.name

Warren Roberts wrote:
> WOW!! Thanx for pointing this out to me. This port is new, since I
> started trying to get eclipse to run. I'm updating my ports tree now
> and will build it.
>
>
> Joachim Dagerot wrote:
>
>>> Has anyone been able to run eclipse on FreeBSD?
>>
>>
>>
>> There is a port under /usr/local/ports/java/eclipse it should work
>> without
>> any problems.
>>
>>
>
Here is the complete trace

!ENTRY org.eclipse.ui 4 4 Jul 20, 2003 18:10:33.889
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 Jul 20, 2003 18:10:33.895
!MESSAGE Failed to execute runnable
(java.lang.ArrayIndexOutOfBoundsException: 32)
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.ArrayIndexOutOfBoundsException: 32)
at org.eclipse.swt.SWT.error(SWT.java:2332)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:101)
at
org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:1618)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1436)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:468)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
!ENTRY org.eclipse.ui 4 4 Jul 20, 2003 18:10:33.912
!MESSAGE
*** Stack trace of contained exception ***
!ENTRY org.eclipse.ui 4 0 Jul 20, 2003 18:10:33.916
!MESSAGE 32
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: 32
at org.eclipse.swt.graphics.ImageData.getPixel(ImageData.java:6 26)
at
org.eclipse.jface.resource.CompositeImageDescriptor.drawImag e(CompositeImageDescriptor.java:99)
at
org.eclipse.jdt.ui.JavaElementImageDescriptor.drawCompositeI mage(JavaElementImageDescriptor.java:165)
at
org.eclipse.jface.resource.CompositeImageDescriptor.getImage Data(CompositeImageDescriptor.java:190)
at
org.eclipse.jface.resource.ImageDescriptor.createImage(Image Descriptor.java:118)
at
org.eclipse.jface.resource.ImageDescriptor.createImage(Image Descriptor.java:94)
at
org.eclipse.jface.resource.ImageDescriptor.createImage(Image Descriptor.java:83)
at
org.eclipse.jdt.internal.ui.viewsupport.ImageDescriptorRegis try.get(ImageDescriptorRegistry.java:67)
at
org.eclipse.jdt.ui.ProblemsLabelDecorator.decorateImage(Prob lemsLabelDecorator.java:150)
at
org.eclipse.jdt.internal.ui.viewsupport.JavaUILabelProvider. getImage(JavaUILabelProvider.java:125)
at
org.eclipse.jdt.internal.ui.javaeditor.JavaEditorErrorTickUp dater.updateEditorImage(JavaEditorErrorTickUpdater.java:75)
at
org.eclipse.jdt.internal.ui.javaeditor.JavaEditorErrorTickUp dater.problemsChanged(JavaEditorErrorTickUpdater.java:63)
at
org.eclipse.jdt.internal.ui.viewsupport.ProblemMarkerManager $1.run(ProblemMarkerManager.java:183)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:98)
at
org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:1618)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1436)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:468)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
!ENTRY org.eclipse.jface 4 2 Jul 20, 2003 18:10:34.183
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: 32
at org.eclipse.swt.graphics.ImageData.getPixel(ImageData.java:6 26)
at
org.eclipse.jface.resource.CompositeImageDescriptor.drawImag e(CompositeImageDescriptor.java:99)
at
org.eclipse.ui.internal.decorators.DecoratorOverlayIcon.draw CompositeImage(DecoratorOverlayIcon.java:106)
at
org.eclipse.jface.resource.CompositeImageDescriptor.getImage Data(CompositeImageDescriptor.java:190)
at
org.eclipse.jface.resource.ImageDescriptor.createImage(Image Descriptor.java:118)
at
org.eclipse.jface.resource.ImageDescriptor.createImage(Image Descriptor.java:94)
at
org.eclipse.jface.resource.ImageDescriptor.createImage(Image Descriptor.java:83)
at
org.eclipse.ui.internal.decorators.OverlayCache.getImageFor( OverlayCache.java:34)
at
org.eclipse.ui.internal.decorators.OverlayCache.applyDescrip tors(OverlayCache.java:64)
at
org.eclipse.ui.internal.decorators.DecorationResult.decorate WithOverlays(DecorationResult.java:48)
at
org.eclipse.ui.internal.decorators.DecorationScheduler.decor ateWithOverlays(DecorationScheduler.java:146)
at
org.eclipse.ui.internal.decorators.DecoratorManager.decorate Image(DecoratorManager.java:209)
at
org.eclipse.jface.viewers.DecoratingLabelProvider.getImage(D ecoratingLabelProvider.java:75)
at
org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer .java:96)
at
org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeR unnable.run(AbstractTreeViewer.java:87)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at
org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(Ab stractTreeViewer.java:406)
at
org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRun nable.run(StructuredViewer.java:119)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at
org.eclipse.jface.viewers.StructuredViewer.updateItem(Struct uredViewer.java:1271)
at
org.eclipse.jface.viewers.StructuredViewer.update(Structured Viewer.java:1253)
at
org.eclipse.jface.viewers.StructuredViewer.update(Structured Viewer.java:1187)
at
org.eclipse.jface.viewers.StructuredViewer.handleLabelProvid erChanged(StructuredViewer.java:638)
at
org.eclipse.jface.viewers.ContentViewer$1.labelProviderChang ed(ContentViewer.java:74)
at
org.eclipse.ui.internal.decorators.DecoratorManager$1.run(De coratorManager.java:148)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at
org.eclipse.ui.internal.decorators.DecoratorManager.fireList eners(DecoratorManager.java:146)
at
org.eclipse.ui.internal.decorators.DecorationScheduler$1.run (DecorationScheduler.java:172)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:98)
at
org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:1618)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1436)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:468)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
Previous Topic:'flag' a specific .java file as not being part of the buildprocess?
Next Topic:Writing an Editor plugin
Goto Forum:
  


Current Time: Wed May 14 02:51:21 EDT 2025

Powered by FUDForum. Page generated in 0.05454 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top