Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How does Eclipse load /usr/lib64/IcedTeaPlugin.so ?
How does Eclipse load /usr/lib64/IcedTeaPlugin.so ? [message #1225825] Mon, 30 December 2013 22:52 Go to next message
B C is currently offline B CFriend
Messages: 4
Registered: December 2013
Junior Member
I am new to Eclipse and minimal exposure to java.

I installed elipse-java-kepler-SR1-linux-gtk-x86_64.tar.gz on opensuse 13.1 x86_64 and at first glance everything works out of the box using OpenJDK.

Eclipse was installed in : ~/eclipse

I further installed the latest sun jre in : ~/jdk1.7.0_45

To use the sun jdk I added to ~/eclipse/eclipse.ini :
-vm
/home/sysop/jdk1.7.0_45/jre/bin/java


I checked that eclipse was in fact loading the correct jre, but to my surprise found that eclipse was loading IcedTeaPlugin.so .

Snippet from lsof -p <eclipse_pid> :

java 20458 sysop mem REG 8,3 204280 1982165 /usr/lib64/IcedTeaPlugin.so
java 20458 sysop mem REG 8,4 2462878 4031751 /home/sysop/jdk1.7.0_45/jre/lib/resources.jar
java 20458 sysop mem REG 8,4 60439 4154912 /home/sysop/eclipse/plugins/org.eclipse.mylyn.commons.notifications.ui_1.1.1.v20130917-0100.jar




At the console when I run eclipse I get:

sysop@eris:~/eclipse> ./eclipse
java version "1.7.0_45"
OpenJDK Runtime Environment (IcedTea 2.4.3) (suse-24.9.1-x86_64)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)




As a shot in the dark I uninstalled IcedTea and re-launched eclipse which seemed to load with no immediately visible adverse effects and without displaying the above OpenJDK references.


Any help understanding what is going on appreciated.

Thanks
Re: How does Eclipse load /usr/lib64/IcedTeaPlugin.so ? [message #1226114 is a reply to message #1225825] Tue, 31 December 2013 18:58 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2341
Registered: July 2009
Senior Member
Whats the full content of the eclipse.ini file? What is shown when you run "/home/sysop/jdk1.7.0_45/jre/bin/java -version"? What is shown when you run "java -version"? Is there a /home/sysop/jdk1.7.0_45/bin/java (if so, use that)?

---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: How does Eclipse load /usr/lib64/IcedTeaPlugin.so ? [message #1226434 is a reply to message #1226114] Wed, 01 January 2014 19:53 Go to previous messageGo to next message
B C is currently offline B CFriend
Messages: 4
Registered: December 2013
Junior Member
Thanks,

My configuration appears to be correct as illustrated by the process listing:


sysop 20905 0.0 5.5 4812064 446048 pts/2 Sl+ 19:35 0:24 /home/sysop/jdk1.7.0_45/bin/java -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /home/sysop/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar -os linux -ws gtk -arch x86_64 -showsplash /home/sysop/eclipse//plugins/org.eclipse.platform_4.3.1.v20130911-1000/splash.bmp -launcher /home/sysop/eclipse/eclipse -name Eclipse --launcher.library /home/sysop/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130807-1835/eclipse_1506.so -startup /home/sysop/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar --launcher.appendVmargs -exitdata 3b10009 -product org.eclipse.epp.package.java.product -vm /home/sysop/jdk1.7.0_45/bin/java -vmargs -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /home/sysop/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
sysop 21047 0.0 0.0 10520 924 pts/3 S+ 19:37 0:00 grep --color=auto eclipse


This is further corroborated doing an lsof -p 20905.

Also, once Kepler loads, going to Window -> Preferences -> Java -> Installed JREs, the only JRE I see is /home/sysop/jdk1.7.0_45 .

However, it appears that Eclipse is loading the sytem's supported web plugins as also illustrated by the lsof:


java 20905 sysop mem REG 8,3 19233136 1982416 /usr/lib64/browser-plugins/libflashplayer.so
java 20905 sysop mem REG 8,3 62840 1982152 /usr/lib64/libbz2.so.1.0.6
java 20905 sysop mem REG 8,3 18816 1594402 /lib64/libattr.so.1.1.0
java 20905 sysop mem REG 8,3 671000 1982386 /usr/lib64/libarchive.so.13.1.2
java 20905 sysop mem REG 8,3 399232 1982238 /usr/lib64/libpackagekit-glib2.so.16.0.6
java 20905 sysop mem REG 8,3 44288 1984226 /usr/lib64/browser-plugins/packagekit-plugin.so
java 20905 sysop mem REG 8,3 204280 1982165 /usr/lib64/IcedTeaPlugin.so
java 20905 sysop mem REG 8,3 86352 1985841 /usr/lib64/browser-plugins/libtotem-narrowspace-plugin.so
java 20905 sysop mem REG 8,3 77632 1985840 /usr/lib64/browser-plugins/libtotem-mully-plugin.so
java 20905 sysop mem REG 8,3 22976 1984616 /usr/lib64/libtotem-plparser-mini.so.18.0.0
java 20905 sysop mem REG 8,3 115504 1985867 /usr/lib64/browser-plugins/libtotem-gmp-plugin.so
java 20905 sysop mem REG 8,3 346160 1980192 /usr/lib64/libhunspell-1.3.so.0.0.0


So not exactly sure what I am looking at here. I have tried configuring within eclipse an external web browser thinking these may be being pulled in by the inbuilt browser functionality (?) but did not see any difference.


For completeness:

Java Versions:

sysop@eris:~> which java
/usr/bin/java
sysop@fatima:~> java -version
java version "1.7.0_45"
OpenJDK Runtime Environment (IcedTea 2.4.3) (suse-24.9.1-x86_64)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

sysop@eris:~> /home/sysop/jdk1.7.0_45/bin/java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

sysop@eris:~> /home/sysop/jdk1.7.0_45/jre/bin/java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)



eclipse.ini:


-vm
/home/sysop/jdk1.7.0_45/bin/java
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130807-1835
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m


Note: switching between /home/sysop/jdk1.7.0_45/bin/java and /home/sysop/jdk1.7.0_45/jre/bin/java does not change any of the observed behaviour.


Thanks
Re: How does Eclipse load /usr/lib64/IcedTeaPlugin.so ? [message #1226497 is a reply to message #1226434] Wed, 01 January 2014 23:29 Go to previous messageGo to next message
B C is currently offline B CFriend
Messages: 4
Registered: December 2013
Junior Member
OK, so definitely IcedTea is being pulled in as a web plugin. Any help tracking where this is from and changing this behaviour (without system wide modifications) appreciated. The following eclipse strace snippet shows the modules being read. However as much as I like to google around, the likes of 'web', 'plugins', etc do not make spectacularly good keywords in this context.



21784 uname({sys="Linux", node="eris.vegetables.local", ...}) = 0
21784 openat(AT_FDCWD, "/home/sysop/.mozilla/plugins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
21784 openat(AT_FDCWD, "/home/sysop/.netscape/plugins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
21784 openat(AT_FDCWD, "/usr/lib/browser/plugins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
21784 openat(AT_FDCWD, "/usr/local/lib/mozilla/plugins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
21784 openat(AT_FDCWD, "/usr/lib/firefox/plugins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
21784 openat(AT_FDCWD, "/usr/lib64/browser-plugins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 127
21784 getdents(127, /* 9 entries */, 32768) = 368
21784 getdents(127, /* 0 entries */, 32768) = 0
21784 close(127) = 0
21784 access("/usr/lib64/browser-plugins/packagekit-plugin.so", F_OK) = 0
21784 access("/usr/lib64/browser-plugins/libflashplayer.so", F_OK) = 0
21784 access("/usr/lib64/browser-plugins/libtotem-mully-plugin.so", F_OK) = 0
21784 access("/usr/lib64/browser-plugins/libtotem-gmp-plugin.so", F_OK) = 0
21784 access("/usr/lib64/browser-plugins/javaplugin.so", F_OK) = 0
21784 access("/usr/lib64/browser-plugins/libtotem-cone-plugin.so", F_OK) = 0
21784 access("/usr/lib64/browser-plugins/libtotem-narrowspace-plugin.so", F_OK) = 0
21784 openat(AT_FDCWD, "/usr/lib/browser-plugins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 127
.
.
.
21784 close(127) = 0
21784 stat("/usr/lib64/browser-plugins/javaplugin.so", {st_mode=S_IFREG|0755, st_size=204280, ...}) = 0
21784 lstat("/usr/lib64/browser-plugins/javaplugin.so", {st_mode=S_IFLNK|0777, st_size=28, ...}) = 0
21784 readlink("/usr/lib64/browser-plugins/javaplugin.so", "/etc/alternatives/javaplugin", 256) = 28
21784 lstat("/etc/alternatives/javaplugin", {st_mode=S_IFLNK|0777, st_size=27, ...}) = 0
21784 readlink("/etc/alternatives/javaplugin", "/usr/lib64/IcedTeaPlugin.so", 256) = 27
21784 lstat("/usr/lib64/IcedTeaPlugin.so", {st_mode=S_IFREG|0755, st_size=204280, ...}) = 0
21784 stat("/usr/lib64/IcedTeaPlugin.so", {st_mode=S_IFREG|0755, st_size=204280, ...}) = 0
21784 open("/usr/lib64/IcedTeaPlugin.so", O_RDONLY|O_CLOEXEC) = 127
Re: How does Eclipse load /usr/lib64/IcedTeaPlugin.so ? [message #1226715 is a reply to message #1226497] Thu, 02 January 2014 13:30 Go to previous message
B C is currently offline B CFriend
Messages: 4
Registered: December 2013
Junior Member
<sigh />

These modules are in fact being pulled in by libwebkitgtk used by Eclipse's Internal Web Browser. Will see what I can do from that angle.

Thanks to anyone who may have scratched his head.
Previous Topic:eclipse exit after running project
Next Topic:Executable JAR with reource structure.
Goto Forum:
  


Current Time: Fri Dec 19 16:44:22 GMT 2014

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

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