Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335771

Summary: Eclipse exits on initiation of auto activation with out prompt, warning, or log messages when typing 'import java.'
Product: [Eclipse Project] Platform Reporter: Nick <nickkolegraff>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: eclipse.felipe, grant_gayed, remy.suen
Version: 3.6.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Most recent log file, there were many So didn't want to attach all none

Description Nick CLA 2011-01-29 12:36:53 EST
Build Identifier: M20100909-0800

Using Slackware 13.1 32 Bit.
Java version 1.6.0
Downloaded and extracted this specific file: eclipse-SDK-3.6.1-linux-gtk.tar.gz
From: http://download.eclipse.org/eclipse/downloads/drops/R-3.6.1-201009090800/eclipse-SDK-3.6.1-linux-gtk.tar.gz

When I execute eclipse from command line and create a new project the second I start to type 'import java.' the program crashes.  No prompts are issued, no warnings, and no entries in workspace/.metadata/.log  if I disable the Auto Activation in Windows -> Preferences -> Java -> Editor -> Content Assist Everything works fine.

Reproducible: Always

Steps to Reproduce:
1.Install slackware 13.1 accepting defaults
2. Install Java there is an directory called extra with the distribution you will see the jre package in there
3. Install it with /sbin/pkgtool
4. choose Other
5. point it to the slackware-13.1/extra directory
6. select the jre package.
7. install selecting defaults.
8. download eclipse from this link http://download.eclipse.org/eclipse/downloads/drops/R-3.6.1-201009090800/eclipse-SDK-3.6.1-linux-gtk.tar.gz
9. extract with tar -xvvf eclipse-SDK-3.6.1-linux-gtk.tar.gz
10. cd eclipse
11. ./eclipse
12. Create a new Java Project Called Test
13. create a new Java Class called Test.java
14. at the top of Test.java file type: import java.
15. The program should crash.
Comment 1 Remy Suen CLA 2011-01-31 10:32:17 EST
Which JRE are you using?
Comment 2 Felipe Heidrich CLA 2011-01-31 10:34:25 EST
I suspect that JRE you are using is not supported.
Use Sun or IBM JRE.
Comment 3 Nick CLA 2011-01-31 10:38:13 EST
(In reply to comment #1)
> Which JRE are you using?

java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode
Comment 4 Remy Suen CLA 2011-01-31 10:41:54 EST
(In reply to comment #3)
> Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode

If you're using HotSpot then it's usually pretty good about generating crash logs. Look for files starting with hs_err_pid in ~/ or your 'eclipse/' folder.

What versions of Firefox/Seamonkey/XULRunner do you have installed?
Comment 5 Nick CLA 2011-01-31 10:47:00 EST
(In reply to comment #4)
> (In reply to comment #3)
> > Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode
> 
> If you're using HotSpot then it's usually pretty good about generating crash
> logs. Look for files starting with hs_err_pid in ~/ or your 'eclipse/' folder.
> 
> What versions of Firefox/Seamonkey/XULRunner do you have installed?

Will have to get back to you later this evening. (Not at home computer) Had to rip java version off from a previous post of mine :)
Comment 6 Nick CLA 2011-01-31 23:36:10 EST
Created attachment 188022 [details]
Most recent log file, there were many So didn't want to attach all

user@host:~$ seamonkey -version
Mozilla SeaMonkey 2.0.4, Copyright (c) 1998-2010 mozilla.org
user@host:~$ firefox -version
Mozilla Firefox 3.6.3, Copyright (c) 1998 - 2010 mozilla.org

Don't have XULRunner
Comment 7 Grant Gayed CLA 2011-02-01 10:58:36 EST
The log shows that the Browser is attempting to use your seamonkey install, which is not valid (using seamonkey 1.x usually works ok for this but versions >= 2.x never do and are not supported).

There's a good chance that your case is fixed by the fix for bug 319123, which is in the eclipse 3.6.2 stream.  My first suggestion is to try a recent 3.6.2 build such as http://download.eclipse.org/eclipse/downloads/drops/M20110119-0834/index.php (the red 'X' beside it on the download page does not indicate a problem that matters).  At the very least this should make the crash go away.  To see if you also have Browser functionality (ie.- it found in alternative native renderer to use), try out Eclipse's "Internal Web Browser" view.

If this does not help then your choices are:

1. Use WebKitGTK as the Browser's underlying renderer as described in http://www.eclipse.org/swt/faq.php#browserwebkitgtk .  In a nutshell, either set java property "org.eclipse.swt.browser.UseWebKitGTK" to true in your 3.6.x, or instead get a 3.7-stream build and WebKitGTK should be used automatically.

2. Alternatively, download XULRunner from http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.2.13/runtimes/xulrunner-1.9.2.13.en-US.linux-i686.tar.bz2 and install it with either "./xulrunner --register-global" (as root) or "./xulrunner --register-user" (to install for one user only).  After doing this Eclipse should pick it up and use it next time it's started.

Closing report as a duplicate of bug 317383 since the underlying problem is the attempt of the Browser to use seamonkey 2.x.

*** This bug has been marked as a duplicate of bug 317383 ***