Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » ve doesn't display gui
ve doesn't display gui [message #116603] Thu, 02 February 2006 00:24 Go to next message
Eclipse UserFriend
Originally posted by: geezmo06.gmx.at

hi

i run eclipse under linux gtk and when i try to create a new visual class
following errors appear:

i hope there's somebody that can help me.

greets, geezmo


export of my Error Log:

!ENTRY org.eclipse.ve.java.core 2 0 2006-02-02 01:11:18.603
!MESSAGE +++ Warning +++: Thu Feb 02 01:11:18 CET 2006 Skipping
expression: jContentPane.setLayout(new BorderLayout())

!ENTRY org.eclipse.ve.java.core 4 0 2006-02-02 01:11:18.628
!MESSAGE Invalid PropertyDecorator

!ENTRY org.eclipse.jem.proxy 2 0 2006-02-02 01:11:18.677
!MESSAGE !STACK 0
IWAV0073I *** RemoteVM Exception - Trace from Remote VM:
java.awt.AWTError: Cannot load AWT toolkit:
gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit() (/usr/lib/libgcj.so.6.0.0)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment()
(/usr/lib/libgcj.so.6.0.0)
at
org.eclipse.ve.internal.jfc.vm.FreeFormAWTDialog.getScreenLo cation(boolean)
(Unknown Source)
at java.lang.reflect.Method.invoke(java.lang.Object,
java.lang.Object[]) (/usr/lib/libgcj.so.6.0.0)
at org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un()
(Unknown Source)
at org.eclipse.jem.internal.proxy.vm.remote.ConnectionThread.ru n()
(Unknown Source)
at .GC_start_routine (/usr/lib/libgcj.so.6.0.0)
at .__clone (/lib/tls/i686/cmov/libc-2.3.5.so)
Caused by: java.lang.ClassNotFoundException:
gnu.java.awt.peer.gtk.GtkToolkit not found in
gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/geezmo/bi n/eclipse/configuration/org.eclipse.osgi/bundles/150/1/.cp/v m/remotevm.jar,file:./,file:/home/geezmo/workspace/GH/,file: /home/geezmo/bin/eclipse/plugins/org.eclipse.jem.proxy_1.2.0 .jar,file:./,file:/home/geezmo/bin/eclipse/configuration/org .eclipse.osgi/bundles/145/1/.cp/vm/jfcbeaninfo.jar,file:/hom e/geezmo/bin/eclipse/plugins/org.eclipse.jem.beaninfo_1.2.0. jar,file:./,file:/home/geezmo/bin/eclipse/configuration/org. eclipse.osgi/bundles/144/1/.cp/vm/beaninfovm.jar,file:/home/ geezmo/bin/eclipse/configuration/org.eclipse.osgi/bundles/14 7/1/.cp/vm/javaremotevm.jar,file:./,file:/home/geezmo/bin/ec lipse/configuration/org.eclipse.osgi/bundles/145/1/.cp/vm/jf cvm.jar],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
(/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String)
(/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
at java.awt.Toolkit.getDefaultToolkit() (/usr/lib/libgcj.so.6.0.0)
...7 more
IWAV0074I *** Local StackTrace:
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanProxyP roxy:
java.awt.AWTError: Cannot load AWT toolkit:
gnu.java.awt.peer.gtk.GtkToolkit
at
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanTypePr oxy.createThrowableBeanProxy(REMThrowableBeanTypeProxy.java: 34)
at
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanTypePr oxy.newBeanProxy(REMThrowableBeanTypeProxy.java:65)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.getBeanProxy(REMStandardBeanProxyFactory.java:459)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.processErrorReturn(REMStandardBeanProxyFactory.java:51 0)
at
org.eclipse.jem.internal.proxy.remote.REMMethodProxy.invoke( REMMethodProxy.java:221)
at
org.eclipse.jem.internal.proxy.remote.REMMethodProxy.invokeW ithParms(REMMethodProxy.java:178)
at
org.eclipse.jem.internal.proxy.remote.REMMethodProxy.invoke( REMMethodProxy.java:102)
at
org.eclipse.jem.internal.proxy.remote.REMMethodProxy.invoke( REMMethodProxy.java:226)
at
org.eclipse.jem.internal.proxy.remote.REMMethodProxy.invokeC atchThrowableExceptions(REMMethodProxy.java:251)
at
org.eclipse.ve.internal.jfc.core.BeanAwtUtilities.getOffScre enLocation(BeanAwtUtilities.java:72)
at
org.eclipse.ve.internal.jfc.core.WindowProxyAdapter.primInst antiateBeanProxy(WindowProxyAdapter.java:91)
at
org.eclipse.ve.internal.jfc.core.FrameProxyAdapter.primInsta ntiateBeanProxy(FrameProxyAdapter.java:71)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.instantia teAndInitialize(BeanProxyAdapter.java:387)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.instantia teBeanProxy(BeanProxyAdapter.java:328)
at
org.eclipse.ve.internal.java.core.MemberContainerProxyAdapte r.initSetting(MemberContainerProxyAdapter.java:547)
at
org.eclipse.ve.internal.java.core.CompositionProxyAdapter.su bInitBeanProxy(CompositionProxyAdapter.java:315)
at
org.eclipse.ve.internal.java.core.MemberContainerProxyAdapte r.initBeanProxy(MemberContainerProxyAdapter.java:566)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:2082)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

!ENTRY org.eclipse.jem.proxy 4 0 2006-02-02 01:11:19.730
!MESSAGE Exception thrown.
!STACK 0
java.io.EOFException
at java.io.DataInputStream.readByte(DataInputStream.java:243)
at
org.eclipse.jem.internal.proxy.common.remote.Commands.readBa ckValue(Commands.java:1243)
at
org.eclipse.jem.internal.proxy.common.remote.ExpressionComma nds.sendSyncCommand(ExpressionCommands.java:261)
at
org.eclipse.jem.internal.proxy.remote.REMConnection.sync(REM Connection.java:320)
at
org.eclipse.jem.internal.proxy.remote.REMExpression.pushInvo ke(REMExpression.java:970)
at
org.eclipse.jem.internal.proxy.core.Expression.invokeExpress ion(Expression.java:685)
at
org.eclipse.ve.internal.java.core.MemberContainerProxyAdapte r.initBeanProxy(MemberContainerProxyAdapter.java:582)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:2082)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

!ENTRY org.eclipse.ve.java.core 2 0 2006-02-02 01:11:19.731
!MESSAGE Exception thrown.
!STACK 0
java.lang.IllegalStateException: IWAV0173I Command Exception occurred. See
log file for details.
at
org.eclipse.jem.internal.proxy.remote.REMExpression.throwIll egalStateException(REMExpression.java:193)
at
org.eclipse.jem.internal.proxy.remote.REMExpression.pushInvo ke(REMExpression.java:1001)
at
org.eclipse.jem.internal.proxy.core.Expression.invokeExpress ion(Expression.java:685)
at
org.eclipse.ve.internal.java.core.MemberContainerProxyAdapte r.initBeanProxy(MemberContainerProxyAdapter.java:582)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:2082)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

!ENTRY org.eclipse.jem.proxy 2 0 2006-02-02 01:11:19.850
!MESSAGE +++ Warning +++: Thu Feb 02 01:11:19 CET 2006 Project (GH)-VM
for GH:err>
java.awt.AWTError: Cannot load AWT toolkit:
gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit() (/usr/lib/libgcj.so.6.0.0)
at java.awt.EventQueue.invokeLater(java.lang.Runnable)
(/usr/lib/libgcj.so.6.0.0)
at javax.swing.SwingUtilities.invokeLater(java.lang.Runnable)
(/usr/lib/libgcj.so.6.0.0)
at
javax.swing.RepaintManager.addInvalidComponent(javax.swing.J Component)
(/usr/lib/libgcj.so.6.0.0)
at javax.swing.JComponent.revalidate() (/usr/lib/libgcj.so.6.0.0)
at javax.swing.JComponent.setOpaque(boolean)
(/usr/lib/libgcj.so.6.0.0)
at javax.swing.JPanel.JPanel(java.awt.LayoutManager, boolean)
(/usr/lib/libgcj.so.6.0.0)
at javax.swing.JPanel.JPanel() (/usr/lib/libgcj.so.6.0.0)
at javax.swing.JRootPane.createGlassPane()
(/usr/lib/libgcj.so.6.0.0)
at javax.swing.JRootPane.getGlassPane() (/usr/lib/libgcj.so.6.0.0)
at javax.swing.JRootPane.JRootPane() (/usr/lib/libgcj.so.6.0.0)
at javax.swing.JFrame.createRootPane() (/usr/lib/libgcj.so.6.0.0)
at javax.swing.JFrame.getRootPane() (/usr/lib/libgcj.so.6.0.0)
at javax.swing.JFrame.frameInit() (/usr/lib/libgcj.so.6.0.0)
at javax.swing.JFrame.JFrame() (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.newInstance() (/usr/lib/libgcj.so.6.0.0)
at
org.eclipse.jem.internal.proxy.initParser.tree.ExpressionPro cesser.pushClassInstanceCreation(java.lang.Class,
int) (Unknown Source)
at
org.eclipse.jem.internal.proxy.vm.remote.ExpressionProcesser Controller.process(java.io.DataInputStream)
(Unknown Source)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.p rocessExpressionCommand(org.eclipse.jem.internal.proxy.commo n.remote.Commands$ValueObject,
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler$I nvokableValueSender)
(Unknown Source)
at org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un()
(Unknown Source)
at org.eclipse.jem.internal.proxy.vm.remote.ConnectionThread.ru n()
(Unknown Source)
at .GC_start_routine (/usr/lib/libgcj.so.6.0.0)
at .__clone (/lib/tls/i686/cmov/libc-2.3.5.so)
Caused by: java.lang.ClassNotFoundException:
gnu.java.awt.peer.gtk.GtkToolkit not found in
gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/geezmo/bi n/eclipse/configuration/org.eclipse.osgi/bundles/150/1/.cp/v m/remotevm.jar,file:./,file:/home/geezmo/workspace/GH/,file: /home/geezmo/bin/eclipse/plugins/org.eclipse.jem.proxy_1.2.0 .jar,file:./,file:/home/geezmo/bin/eclipse/configuration/org .eclipse.osgi/bundles/145/1/.cp/vm/jfcbeaninfo.jar,file:/hom e/geezmo/bin/eclipse/plugins/org.eclipse.jem.beaninfo_1.2.0. jar,file:./,file:/home/geezmo/bin/eclipse/configuration/org. eclipse.osgi/bundles/144/1/.cp/vm/beaninfovm.jar,file:/home/ geezmo/bin/eclipse/configuration/org.eclipse.osgi/bundles/14 7/1/.cp/vm/javaremotevm.jar,file:./,file:/home/geezmo/bin/ec lipse/configuration/org.eclipse.osgi/bundles/145/1/.cp/vm/jf cvm.jar],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
(/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String)
(/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.forName(java.lang.String)
(/usr/lib/libgcj.so.6.0.0)
at java.awt.Toolkit.getDefaultToolkit() (/usr/lib/libgcj.so.6.0.0)
...22 more

!ENTRY org.eclipse.jem.proxy 2 0 2006-02-02 01:11:29.020
!MESSAGE +++ Warning +++: Thu Feb 02 01:11:29 CET 2006 Project (GH)-VM
for GH:err>
Exception in thread "Thread-2" !ENTRY org.eclipse.jem.proxy 2 0
2006-02-02 01:11:29.359
!MESSAGE +++ Warning +++: Thu Feb 02 01:11:29 CET 2006 Project (GH)-VM
for GH:err>
java.awt.AWTError: Cannot load AWT toolkit:
gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit() (/usr/lib/libgcj.so.6.0.0)
at org.eclipse.jem.internal.proxy.vm.remote.AWTStarter$1.run()
(Unknown Source)
at .GC_start_routine (/usr/lib/libgcj.so.6.0.0)
at .__clone (/lib/tls/i686/cmov/libc-2.3.5.so)
Caused by: java.lang.ClassNotFoundException:
gnu.java.awt.peer.gtk.GtkToolkit not found in
gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/geezmo/bi n/eclipse/configuration/org.eclipse.osgi/bundles/150/1/.cp/v m/remotevm.jar,file:./,file:/home/geezmo/workspace/GH/,file: /home/geezmo/bin/eclipse/plugins/org.eclipse.jem.proxy_1.2.0 .jar,file:./,file:/home/geezmo/bin/eclipse/configuration/org .eclipse.osgi/bundles/145/1/.cp/vm/jfcbeaninfo.jar,file:/hom e/geezmo/bin/eclipse/plugins/org.eclipse.jem.beaninfo_1.2.0. jar,file:./,file:/home/geezmo/bin/eclipse/configuration/org. eclipse.osgi/bundles/144/1/.cp/vm/beaninfovm.jar,file:/home/ geezmo/bin/eclipse/configuration/org.eclipse.osgi/bundles/14 7/1/.cp/vm/javaremotevm.jar,file:./,file:/home/geezmo/bin/ec lipse/configuration/org.eclipse.osgi/bundles/145/1/.cp/vm/jf cvm.jar],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
(/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String)
(/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.forName(java.lang.String)
(/usr/lib/libgcj.so.6.0.0)
at java.awt.Toolkit.getDefaultToolkit() (/usr/lib/libgcj.so.6.0.0)
...3 more
Re: ve doesn't display gui [message #116610 is a reply to message #116603] Thu, 02 February 2006 00:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

There's something strange about the GTKToolkit you have on your system.
Either it can't be found or it is an incompatible version for the Java
JDK you are using.

--
Thanks,
Rich Kulp
Re: ve doesn't display gui [message #116615 is a reply to message #116603] Thu, 02 February 2006 00:43 Go to previous messageGo to next message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 489
Registered: July 2009
Senior Member
You are using a GCJ Java runtime, which isn't supported by the VE.
You'll need to switch to a Sun or IBM JRE to use the VE properly.

- Jeff
Re: ve doesn't display gui [message #116638 is a reply to message #116615] Thu, 02 February 2006 11:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: geezmo06.gmx.at

hi

i know..but i also have the sun java runtime on my machine...how can i
tell eclipse to use the sun jre?

i start it with the option -vm /sun1.5.0_06/bin/java

geezmo
Re: ve doesn't display gui [message #116643 is a reply to message #116615] Thu, 02 February 2006 11:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: geezmo06.gmx.at

hi

i also have a sun jre on my machine...how can i tell eclipse to use it?

i start eclipse with -vm /sun1.5/bin/java

geezmo
Re: ve doesn't display gui [message #116729 is a reply to message #116643] Thu, 02 February 2006 14:13 Go to previous messageGo to next message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 489
Registered: July 2009
Senior Member
First check to see whether Eclipse is running with the correct JRE:
Go to Help->About Eclipse SDK and click the Configuration Details button.

Look to see if your java properties look something like this:
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_05-b05
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.5.0_05
java.vm.info=mixed mode, sharing
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.5.0_05-b05

Next ensure that the Sun JRE is the selected JRE in the Installed JREs
preference page: Window->Preferences->Java->Installed JREs

Depending on how you installed Eclipse and what distro of Linux you're
using, it's possible that the eclipse launcher is ignoring the -vm
param. If this is the case you're better off downloading the official
Eclipse builds from eclipse.org

Hope this helps,
- Jeff

geezmo wrote:
> hi
>
> i also have a sun jre on my machine...how can i tell eclipse to use it?
>
> i start eclipse with -vm /sun1.5/bin/java
>
> geezmo
>
Re: ve doesn't display gui [message #116845 is a reply to message #116729] Fri, 03 February 2006 11:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: geezmo06.gmx.at

hi

thanks...i've found the option. window -> preferences -> java -> installed
jre ...there i specified the path of my sun java. now it works.
thanks a lot!!

greetes,
geezmo
Re: ve doesn't display gui [message #121350 is a reply to message #116615] Sun, 02 April 2006 09:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thunderaxiom.gmail.com

Jeff Myers skrev den 02-02-2006 01:43:
> You are using a GCJ Java runtime, which isn't supported by the VE.
> You'll need to switch to a Sun or IBM JRE to use the VE properly.

Just curious :) Could you elaborate a bit on why?

--
Thorbjørn
Re: ve doesn't display gui [message #121365 is a reply to message #121350] Sun, 02 April 2006 20:39 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 489
Registered: July 2009
Senior Member
GNU Classpath's AWT classes (the class library used by GCJ) does not
currently support a critical method (Component.printAll()) used by the
VE to grab the image of the class being designed to put into the editor.
So developing AWT and Swing doesn't work at all. See
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16729

I've had some success with developing SWT apps using GCJ as the target
VM - but it was buggy, and I had to tweak the GCJ source to get it
running properly. I haven't tried it with recent versions of GCJ - so
it may work... give it a shot if you like :)

- Jeff
Re: ve doesn't display gui [message #611935 is a reply to message #116603] Thu, 02 February 2006 00:27 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

There's something strange about the GTKToolkit you have on your system.
Either it can't be found or it is an incompatible version for the Java
JDK you are using.

--
Thanks,
Rich Kulp
Re: ve doesn't display gui [message #611936 is a reply to message #116603] Thu, 02 February 2006 00:43 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 489
Registered: July 2009
Senior Member
You are using a GCJ Java runtime, which isn't supported by the VE.
You'll need to switch to a Sun or IBM JRE to use the VE properly.

- Jeff
Re: ve doesn't display gui [message #611941 is a reply to message #116615] Thu, 02 February 2006 11:38 Go to previous message
Eclipse UserFriend
Originally posted by: geezmo06.gmx.at

hi

i know..but i also have the sun java runtime on my machine...how can i
tell eclipse to use the sun jre?

i start it with the option -vm /sun1.5.0_06/bin/java

geezmo
Re: ve doesn't display gui [message #611942 is a reply to message #116615] Thu, 02 February 2006 11:39 Go to previous message
Eclipse UserFriend
Originally posted by: geezmo06.gmx.at

hi

i also have a sun jre on my machine...how can i tell eclipse to use it?

i start eclipse with -vm /sun1.5/bin/java

geezmo
Re: ve doesn't display gui [message #611951 is a reply to message #116643] Thu, 02 February 2006 14:13 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 489
Registered: July 2009
Senior Member
First check to see whether Eclipse is running with the correct JRE:
Go to Help->About Eclipse SDK and click the Configuration Details button.

Look to see if your java properties look something like this:
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_05-b05
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.5.0_05
java.vm.info=mixed mode, sharing
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.5.0_05-b05

Next ensure that the Sun JRE is the selected JRE in the Installed JREs
preference page: Window->Preferences->Java->Installed JREs

Depending on how you installed Eclipse and what distro of Linux you're
using, it's possible that the eclipse launcher is ignoring the -vm
param. If this is the case you're better off downloading the official
Eclipse builds from eclipse.org

Hope this helps,
- Jeff

geezmo wrote:
> hi
>
> i also have a sun jre on my machine...how can i tell eclipse to use it?
>
> i start eclipse with -vm /sun1.5/bin/java
>
> geezmo
>
Re: ve doesn't display gui [message #611960 is a reply to message #116729] Fri, 03 February 2006 11:45 Go to previous message
Eclipse UserFriend
Originally posted by: geezmo06.gmx.at

hi

thanks...i've found the option. window -> preferences -> java -> installed
jre ...there i specified the path of my sun java. now it works.
thanks a lot!!

greetes,
geezmo
Re: ve doesn't display gui [message #612454 is a reply to message #116615] Sun, 02 April 2006 09:36 Go to previous message
Eclipse UserFriend
Originally posted by: thunderaxiom.gmail.com

Jeff Myers skrev den 02-02-2006 01:43:
> You are using a GCJ Java runtime, which isn't supported by the VE.
> You'll need to switch to a Sun or IBM JRE to use the VE properly.

Just curious :) Could you elaborate a bit on why?

--
Thorbjørn
Re: ve doesn't display gui [message #612460 is a reply to message #121350] Sun, 02 April 2006 20:39 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 489
Registered: July 2009
Senior Member
GNU Classpath's AWT classes (the class library used by GCJ) does not
currently support a critical method (Component.printAll()) used by the
VE to grab the image of the class being designed to put into the editor.
So developing AWT and Swing doesn't work at all. See
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16729

I've had some success with developing SWT apps using GCJ as the target
VM - but it was buggy, and I had to tweak the GCJ source to get it
running properly. I haven't tried it with recent versions of GCJ - so
it may work... give it a shot if you like :)

- Jeff
Previous Topic:question about layouts
Next Topic:question about layouts
Goto Forum:
  


Current Time: Fri Apr 26 10:04:22 GMT 2024

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

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

Back to the top