facebook

linked source not showing up on build path

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #302413 Reply

    molo
    Member

    I have a J2EE application that was developed outside of eclipse that has many directory paths to the code that lies within it’s directory structure.

    I want to maintain this application using MyEclipse.

    I created a Web Project in MyEclipse, unchecked the default location and used the high level root of my application for the directory of my project.

    I linked in all the jars I used and created by this applications into the Libraries of the Java Build Path

    This works fine, All my source code can be accessed within this MyEclipse project.

    I can even run some of my ant builds from within the MyEclipse project.

    However, when I try to use F3 Navigation to go to the definition of a class within my application I get a message that say’s ‘Resource not on build path’

    My application root does not show up on the Source build path. If I try to add it, I get a message that say’s it already exists.

    Can you tell me what I need to do?

    #302432 Reply

    support-joy
    Member

    molo,

    I don’t have visibility of your current project, can you answer few queries for me to get to the root cause –

    1. Can you copy and paste your installation details? You can get it from MyEclipse IDE menu options click on MyEclipse > Installation Summary > Installation Details.
    2. Can you show pictorially what is the architecture of your project and references to other projects? Or attach screenshots which help me understand your current settings?
    3.

    I created a Web Project in MyEclipse, unchecked the default location and used the high level root of my application for the directory of my project.

    Can you explain this? Attach screenshots?
    4.

    I linked in all the jars I used and created by this applications into the Libraries of the Java Build Path

    How did you link the jars? Can you mention the steps in detail and also attach screenshot?
    5.

    However, when I try to use F3 Navigation to go to the definition of a class within my application I get a message that say’s ‘Resource not on build path’

    My application root does not show up on the Source build path. If I try to add it, I get a message that say’s it already exists.

    Do you see any errors logged in your error log file? I would recommend you do the following –
    (a) Open your .log file located here [your workspace dir]/.metadata/.log. Press [Ctrl + A] and press [Delete] and save .log file – to clear the contents of the .log file
    (b) Next reproduce this issue and copy and paste the error log file here

    #302439 Reply

    molo
    Member

    Hi Joy,

    My screen prints are not getting copied

    Here’s the info without the screen prints

    1)
    *** Date:
    Tuesday, September 15, 2009 8:38:44 AM EDT

    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 7.5
    Build id: 7.5-20090609

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 7.5
    Build id: 7.5-20090609

    Eclipse Plug-in Development Environment

    Version: 3.4.2.R342_v20090122-7T7U1E9imVKz-A8Vz-p_jRS
    Build id: M20080703-0800

    Eclipse Platform

    Version: 3.4.2.R342_v20090122-9I96EiWElHi8lheoJKJIvhM3JfVsYbRrgVIWL
    Build id: M20090211-1700

    Eclipse Graphical Editing Framework GEF

    Version: 3.4.2.v20090218-1145-67728084A56B4I233613552
    Build id: 200809101400

    Eclipse RCP

    Version: 3.4.200.R342_v20090122-989JESTEbig-SVaL8UJHcYBr4A63
    Build id: M20090211-1700

    Eclipse Java Development Tools

    Version: 3.4.2.r342_v20081217-7o7tEAoEEDWEm5HTrKn-svO4BbDI
    Build id: M20090211-1700

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\Genuitec\MyEclipse 7.5\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\Program Files\Genuitec\MyEclipse 7.5\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
    -startup
    C:\Program Files\Genuitec\MyEclipse 7.5\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
    -clean
    -configuration
    configuration
    -vm
    C:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll

    2)
    Here’s is an example of the application , under the cas root directory.

    I have a cas\coach\source\ejb\com\ssga\cas\coach\ejb directory which contains ejb java source files for the com.ssga.cas.coach package

    There is a similar structure under common. For example
    \cas\common\source\Utils\com\ssga\common\util\business conatains a java file with a com.ssga.common.util.business package

    3)

    I navigated to link source and then browse to
    \invop_cas\web\cas . Which is my application root directory

    It now shows a type of linked folder when I look at the cas directory properties in MyEclipse on my project

    4)

    Linked in jars via configure build path / libraries / add external jars

    5)

    There is no error message in the log

    #302447 Reply

    molo
    Member

    Joy,

    I’ve been playing around with this problem and I think the issue is really this;

    I removed the link in project explorer (only the workspace link not the link target)

    The removed directory no longer shows up in the configured build path linked source but it is still showing in the project explorer.

    I am now unable to add the same link source directory in the build path

    #302469 Reply

    support-joy
    Member

    molo,

    Can you do the following
    1. Refresh your projects in the packacge explorer
    2. Perform clean. Click on Project > Clean. Make sure to clean all projects and build automatically

    If the above doesn’t work. I will need all the screen prints. To send the screen prints you can send a mail to support@genuitec.com, please include ATTN:Joy in the subject and refer to this link. This will help in quick tracking.

    #302473 Reply

    molo
    Member

    Hi Joy,

    I deleted my linked source, then I linked it in again and it is working correctly now.

    However, I find that eclipse is inferring an incorrect package structure for my java classes.

    For example,
    I have a directory structure a/b/c/d/e
    if I have a java class that is in a package c.d.e and it is under a directory structure of a/b Eclipse package explorer assumes that my java class package is a.b.c.d.e not c.d.e.
    Is there a way of letting Eclipse know this. I do not want to move my java file or change it’s package name.

    Thanks

    #302489 Reply

    molo,

    if I have a java class that is in a package c.d.e and it is under a directory structure of a/b Eclipse package explorer assumes that my java class package is a.b.c.d.e not c.d.e.

    You can set “b” to be the source folder. Right click on the folder, from the context menu Build Path > Use as source folder. Now add the package c.d.e
    Now you can access the classes in c.d.e using import c.d.e.*;
    Let me know if that helps.

    #302492 Reply

    molo
    Member

    That worked

    Thank you so much

    #302505 Reply

    You are welcome

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: linked source not showing up on build path

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in