facebook

Append path to java.library.path in MyEclipse 7.0 (Linux)

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #291949 Reply

    metcalfjm
    Member

    Hi 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

    #291960 Reply

    Greg
    Member

    J,

    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.

    #292288 Reply

    gcstang
    Member

    I 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/lib

    Thank you,

    #292298 Reply

    Greg
    Member

    I’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.

    #292300 Reply

    gcstang
    Member

    *** 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 Workbench

    Version: 7.0
    Build id: 7.0-20081201

    Eclipse Platform

    Version: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu
    Build id: M20080911-1700

    Eclipse Java Development Tools

    Version: 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97
    Build id: M20080709-0800

    Eclipse Graphical Editing Framework GEF

    Version: 3.4.1.v20080806-67718083A56B4H2A3213573
    Build id: 200809101400

    Eclipse RCP

    Version: 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341
    Build id: M20080703-0800

    Eclipse Plug-in Development Environment

    Version: 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP
    Build id: M20080703-0800

    Eclipse 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

    #292302 Reply

    Greg
    Member

    Looks like the -D isn’t getting added at the correct location.

    Can you post the content of your myeclipse.ini file?

    #292303 Reply

    gcstang
    Member

    -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

    #292304 Reply

    gcstang
    Member

    I 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,

    #292571 Reply

    gcstang
    Member

    This message has not been recovered.

    #292576 Reply

    Greg
    Member

    This message has not been recovered.

    #292698 Reply

    gcstang
    Member

    This message has not been recovered.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Append path to java.library.path in MyEclipse 7.0 (Linux)

You must be logged in to post in the forum log in