Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Launch default in Eclipse IDE(The applications compile but it is not possible to run them)
Launch default in Eclipse IDE [message #1796463] Sat, 13 October 2018 19:36 Go to next message
Pierre-Alain Vidil is currently offline Pierre-Alain VidilFriend
Messages: 3
Registered: September 2018
Junior Member
I have a Debian Jessie Linux version on a 32 bit computer.
Java is the JDK_1.8.181.
I have been using the Debian repository of Eclipse for a long time and it was working perfectly. But it was in version 3.6. (more : all my applications run perfectly on Photon on a Windows computer).

I decided to install the new version from
eclipse-java-2018-09-linux-gtk.tar.gz.

I removed the Debian package.
I deleted all the workspace locations.
The un-zipped folder has been copied in the /opt folder.
It launches well.
I tried to create the HelloWord Application.
It compiles fine but when I clic on "Run as Java application" it does nothing. The Console does not apprear.
Nor it is possible to make "Run configuration" : Nothing appears.

More : sometimes, when clicking on "Preferences", it makes an error "gObjectClass_finalize".

Have you ever heard of this problem?
Thank you for your help if any.
Pierre-Alain.
Re: Launch default in Eclipse IDE [message #1796590 is a reply to message #1796463] Tue, 16 October 2018 11:28 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
A few things to check:

Does Eclipse recognize your JDK as a Java 8 compatible JRE? Check "Preferences > Java > Installed JREs" and " > Execution Environments".

Check the logs (either .metadata/.log or via the "Error Log" view).

Re: Launch default in Eclipse IDE [message #1796633 is a reply to message #1796590] Tue, 16 October 2018 17:28 Go to previous messageGo to next message
Pierre-Alain Vidil is currently offline Pierre-Alain VidilFriend
Messages: 3
Registered: September 2018
Junior Member
Hello Stephan,
Concerning the acknolegment on Java : it's ok. Eclipse has recognized the JRE folder immediately during the first using. The jdk1.8.0_181 folder is checked in the Installed JRE item of the Preferences.

Concerning the logs, I prefer send you the file. Would-you mind ?
There is another log file .bak_0.log which is 1 Mo bytes long. Would you like to get it too ?

Regards,
  • Attachment: eclipse.log
    (Size: 691.67KB, Downloaded 108 times)
Re: Launch default in Eclipse IDE [message #1796647 is a reply to message #1796633] Tue, 16 October 2018 21:10 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Looking at this error:
java.lang.NoSuchMethodError: gObjectClass_finalize
	at org.eclipse.swt.internal.gtk.GTK._gtk_widget_destroy(Native Method)
	at org.eclipse.swt.internal.gtk.GTK.gtk_widget_destroy(GTK.java:8591)
	at org.eclipse.swt.widgets.Widget.destroyWidget(Widget.java:464)
	at org.eclipse.swt.widgets.Widget.release(Widget.java:1193)
	at org.eclipse.swt.widgets.Control.release(Control.java:4302)
	at org.eclipse.swt.widgets.Widget.dispose(Widget.java:499)
	at org.eclipse.swt.widgets.Shell.dispose(Shell.java:2740)
	at org.eclipse.swt.widgets.Shell.closeWidget(Shell.java:681)
	at org.eclipse.swt.widgets.Shell.gtk_delete_event(Shell.java:1338)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1969)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:6468)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5904)
	at org.eclipse.swt.internal.gtk.GTK._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.GTK.gtk_main_do_event(GTK.java:4084)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1383)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1626)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4516)


this appears not to be a Java or JDT problem, but an SWT problem. Still it could be caused by an inconsistent installation (apparently java and native parts of SWT are not compatible).

Seeing your mention of "32 bit": are you sure you installed the 32-bit version of Eclipse?
Are you aware that Eclipse will gradually drop support for 32 bit in the near future?

[Updated on: Tue, 16 October 2018 21:11]

Report message to a moderator

Re: Launch default in Eclipse IDE [message #1796695 is a reply to message #1796647] Wed, 17 October 2018 17:32 Go to previous message
Pierre-Alain Vidil is currently offline Pierre-Alain VidilFriend
Messages: 3
Registered: September 2018
Junior Member
Hello Stephan,

Yes I'm sure having installed the 32 bit version. If I whould have installed the 64 bit it couldn't launch saying it is not compatible with exec().

But don't worry, I reinstalled the Debian package and this runs fine.
I know that the package is not the official version but I can work.
My aim is to develop for Android.

Thank you for your help.
Pierre-Alain.
Previous Topic:http://download.eclipse.org/releases/neon/ site is down
Next Topic:Java Preferences system node in Windows (Updated)
Goto Forum:
  


Current Time: Thu Mar 28 12:18:08 GMT 2024

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

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

Back to the top