- This topic has 8 replies, 3 voices, and was last updated 15 years, 8 months ago by
support-shalini.
-
AuthorPosts
-
moloMemberI 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?
support-joyMembermolo,
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
moloMemberHi 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 WorkbenchVersion: 7.5
Build id: 7.5-20090609Eclipse Plug-in Development Environment
Version: 3.4.2.R342_v20090122-7T7U1E9imVKz-A8Vz-p_jRS
Build id: M20080703-0800Eclipse Platform
Version: 3.4.2.R342_v20090122-9I96EiWElHi8lheoJKJIvhM3JfVsYbRrgVIWL
Build id: M20090211-1700Eclipse Graphical Editing Framework GEF
Version: 3.4.2.v20090218-1145-67728084A56B4I233613552
Build id: 200809101400Eclipse RCP
Version: 3.4.200.R342_v20090122-989JESTEbig-SVaL8UJHcYBr4A63
Build id: M20090211-1700Eclipse Java Development Tools
Version: 3.4.2.r342_v20081217-7o7tEAoEEDWEm5HTrKn-svO4BbDI
Build id: M20090211-1700Eclipse 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.dll2)
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 package3)
I navigated to link source and then browse to
\invop_cas\web\cas . Which is my application root directoryIt 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
moloMemberJoy,
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
support-joyMembermolo,
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 automaticallyIf 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.
moloMemberHi 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
support-shaliniMembermolo,
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.
moloMemberThat worked
Thank you so much
support-shaliniMemberYou are welcome
-
AuthorPosts