- This topic has 10 replies, 3 voices, and was last updated 16 years, 4 months ago by
gcstang.
-
AuthorPosts
-
metcalfjmMemberHi All,
I was wondering if someone can give me a pointer as to how I should append a path to the JNI java.library.path in MyEclipse 7.0 on Linux so it is effective at startup.
The MyEclipse default value for the java.library.path does not seem to include /usr/lib, which contains the necessary *.so files to allow my user-installed Subclipse plugin to work using the JavaHL (JNI) interface.
I have added the following line to the myeclipse.ini file
-Djava.library.path=/usr/lib
This works in that Subclipse now works correctly. The only issue is that I am not sure if this appends to the default java.library.path used by MyEclipse or if it replaces it. If it replaces the default value for MyEclipse it is possible that some MyEclipse functionality that uses JNI could be broken.
Any thoughts or suggestions?
Best regards,
-J
GregMemberJ,
MyEclipse does not instrument or overload the java.library.path in any fashion that I know of. One of the developers may correct me on this 🙂 So I think you will be ok from MyEclipse standpoint to set the java.library.path in just the fashion that you have.
gcstangMemberI added the following to my file but it doesn’t seem to pick up the JavaHL, reverts to no JavaHL found or I have to use the SVNKit
Ubuntu 8.10 64bit
Used All in One Installer
Added to the last line in myeclipse.ini
-Djava.library.path=/home/gcstang/svnsetup/libThank you,
GregMemberI’m not familiar with JavaHL or what it takes to make that work. Can you do MYEclipse > installation summary and post the details here? That will show the vm parameters and see if the -D property is actually getting set.
gcstangMember*** Date:
Tuesday, December 16, 2008 4:53:19 PM CST** System properties:
OS=Linux
OS version=2.6.27
Java version=1.5.0_11*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 7.0
Build id: 7.0-20081201*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 7.0
Build id: 7.0-20081201Eclipse Platform
Version: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu
Build id: M20080911-1700Eclipse Java Development Tools
Version: 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97
Build id: M20080709-0800Eclipse Graphical Editing Framework GEF
Version: 3.4.1.v20080806-67718083A56B4H2A3213573
Build id: 200809101400Eclipse RCP
Version: 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341
Build id: M20080703-0800Eclipse Plug-in Development Environment
Version: 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP
Build id: M20080703-0800Eclipse startup command=-os
linux
-ws
gtk
-arch
x86
-showsplash
-launcher
/home/gcstang/Genuitec/MyEclipse 7.0/myeclipse
-name
Myeclipse
–launcher.library
/home/gcstang/Genuitec/MyEclipse 7.0//../Common/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.101.R34x_v20080805/eclipse_1115.so
-startup
/home/gcstang/Genuitec/MyEclipse 7.0//../Common/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
-exitdata
498017
-clean
-configuration
/home/gcstang/Genuitec/MyEclipse 7.0/configuration
-Djava.library.path=/home/gcstang/svnsetup/lib
-vm
/home/gcstang/Genuitec/Common/binary/com.sun.java.jre.linux.x86_1.5.0.011/bin/java
GregMemberLooks like the -D isn’t getting added at the correct location.
Can you post the content of your myeclipse.ini file?
gcstangMember-startup
../Common/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
–launcher.library
../Common/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.101.R34x_v20080805
-clean
-configuration
/home/gcstang/Genuitec/MyEclipse 7.0/configuration
-vm
/home/gcstang/Genuitec/Common/binary/com.sun.java.jre.linux.x86_1.5.0.011/bin/java
-vmargs
-Xmx512M
-XX:MaxPermSize=192M
-Djava.library.path=/home/gcstang/svnsetup/lib
gcstangMemberI also had it on my shortcut, but I removed that and now it doesn’t show in the Installation data I posted above at all.
I did leave it in my myeclipse.ini though.The file I’m modifying is here : /home/gcstang/Genuitec/MyEclipse 7.0/myeclipse.ini
Thank you,
gcstangMemberThis message has not been recovered.
GregMemberThis message has not been recovered.
gcstangMemberThis message has not been recovered.
-
AuthorPosts