1 year ago

#360032

test-img

Unhandled Exception

Eclipse - Problem Occurred using actual vs Project directory reference

Using Eclipse 2020 with 2 different Projects. Each Project has their own Workspace.

Workspace1/Project1 Run as expected.

Workspace2/Project2 generates the following error indicating an inability to find MyJarFile.jar:

enter image description here

All the Build values are the same, but when comparing the Dependencies between the working and failing environment I noticed the following.

The working environment shows reference to MyJarFile.jar as an actual path reference.

enter image description here

The failing environment shows reference to MyJarFile.jar as a reference via the Project Name.

enter image description here

The strange thing is when I first Add MyJarFile.jar it shows the actual path name, but after closing and reopening the Dependencies tab, it converts the \MyProject\ reference.

In both scenarios it has been confirmed the file exists. Also, the addition of the File was done using the dialogbox so that also confirms it exists.

Questions:

1 - Is there a setting which dictates when the actual directory reference is shown and when the \Project\ reference is used?

2 - When the \Project\ reference is used, is there an extra step required so the associated file is actually found?

eclipse

classpath

launching

0 Answers

Your Answer

Accepted video resources