Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Build Path -> Link Source doesnt work
Build Path -> Link Source doesnt work [message #1872063] Sun, 20 October 2024 05:25 Go to next message
Eclipse UserFriend
Hi,

for a school project I do need to link 2 java-classes of different workspaces. It should work by:

1. right click on the the project (where the main class is)
2. choose "Build Path" , "Link Source..."
3. Browse for the other project on the other workspace and choose it
4. No Inclusion or Exclusion patterns


-> But there comes still the error that the other project was not found!?

See pictures attached

Does someone know a solution?

Re: Build Path -> Link Source doesnt work [message #1872078 is a reply to message #1872063] Mon, 21 October 2024 06:38 Go to previous message
Eclipse UserFriend
Hi!

I have found the mistake! The reason was that one class should have the project layout with this option: "Use project folder as root for sources and class files"
and the other class with the main funktion within the other workspace should use "Create separate folders for sources and class files"

-> now it works good :)
Previous Topic:Target is not a JDK root. System library was not found.
Next Topic:Switch/default->null caused a building problem.
Goto Forum:
  


Current Time: Mon Jul 07 21:24:34 EDT 2025

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

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

Back to the top