Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Link JavaScript project with Java project in Eclipse

I want to link a Java project with a JavaScript project that I have in my Eclipse.

Basically, the Java project has a set of libraries that we are implementing on the JavaScript project, so, just to do not duplicate code, I want to link them.

How is it possible to do that?

This is the actual structure:

JSProj
  JSLib1
  JSLib2
  JSLib3

JavaProj
  App
    scripts
       (Here should be a link to JSProj)

Thanks for the hand!

like image 708
todotresde Avatar asked Jun 18 '26 23:06

todotresde


1 Answers

One way to accomplish this is to create a linked folder that points to the location of your JavaScript project.

New > Folder > Advanced > Link to Alternate Location

Then browse to the location of JSProj.

The downside is that this is a filesystem link, rather than a link within the workspace. Theoretically you would just want to add the JavaScript project to the Java project's build path, but it looks like that only works when they're both Java projects (or maybe just the same type).

like image 158
Chris Avatar answered Jun 20 '26 11:06

Chris