Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357546 - launch command does not contain java.library.path for native library locations of user library jars added to launch configuration classpath
Summary: launch command does not contain java.library.path for native library location...
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-13 15:23 EDT by James Edwards CLA
Modified: 2020-03-04 05:27 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Edwards CLA 2011-09-13 15:23:18 EDT
Build Identifier: 20110615-0604

I am using JOGL in my program.  I created a User Library for JOGL with the necessary jars and native library paths for those jars.

If my JOGL User Library is on the build path of a project, java.library.path arguments for its native library paths show up in the launch command, as well as the jars in the classpath.

However, if my JOGL User Library is not on the build path, but instead added to a launch configuration's classpath, the native library paths aren't included in the launch command--only the jars are included in the classpath.

This is confusing and inconvenient.  I am trying to launch from a multiple project setup that necessitates using the launch configuration instead of the build path to include the JOGL jars and native libraries.  The native library paths of User Libraries added to a launch configuration (in the Classpath tab) should be included in the java.library.path of the launch command.

Reproducible: Always

Steps to Reproduce:
1. Create a user library (in Preferences) that contains at least one jar with a native library location.

2. Create a project and add the user library to its build path.

3. Create a main class.

4. Create a launch configuration for the main class.  Run it and verify that the user library jar is included in the launch command classpath and the native library location is included in the launch command library path.

5. Now remove the user library from the project's build path.  In the launch configuration dialog, go to the Classpath tab and add the user library to the classpath.

6. Run the launch configuration again and you will see that the native library location is not included in the launch command library path.
Comment 1 Eclipse Genie CLA 2020-03-04 05:27:26 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.