Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:25 Go to next message
Martin T. is currently offline Martin T.Friend
Messages: 3
Registered: October 2024
Junior Member
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 10:38 Go to previous message
Martin T. is currently offline Martin T.Friend
Messages: 3
Registered: October 2024
Junior Member
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: Fri Jan 17 22:33:58 GMT 2025

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

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

Back to the top