- This topic has 8 replies, 2 voices, and was last updated 20 years, 7 months ago by xsun.
-
AuthorPosts
-
xsunMemberIn MyEclipse > Project > Properties > Java Build Path > Libraries, I see a variable “ECLIPSE_HOME” listed in there. Two questions:
1. Is this variable created by the IDE automaticly?
2. There is a warning sign on the variable, I click on “Edit…”, there is a warning msg on the bottom of the pop up form “The path E:\eclipse does not point to an existing archive.” E:\eclipse is the dir I have Eclipse(not MyEclipse) installed. What is an “existing archive”? What shall I set “ECLIPSE_HOME” to, so that I don’t get the warning sign?Thanks!
xsun
support-michaelKeymaster0) Please provide the basic posting information so we can have an understanding of your environment.
1) ECLIPSE_HOME is a default variable of the platform.
2) Normally you should not have to set this variable value. I can not every recall explicitly setting its value in an Eclipse instance since the platform defaults it to the location of the eclipse.exe (or other) location during startup.
3) What is the name of the library you selected to get the archive warning?
xsunMember– System Setup ——————————-
Operating System and version:
Eclipse version: 2.1.2
Eclipse build id: 200311030802
Fresh Eclipse install (y/n): n
If not, was it upgraded to its current version using the update manager? n
Other installed external plugins: perforce
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 7
MyEclipse version: 2.7.1
Eclipse JDK version: java.version=1.4.1_01
Application Server JDK version: 1.4.1
Are there any exceptions in the Eclipse log file?
!SESSION Apr 08, 2004 17:44:54.933 ———————————————
java.version=1.4.1_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -install file:E:/eclipse/
!ENTRY com.genuitec.eclipse.cross.easystruts.eclipse 1 1 Apr 08, 2004 17:44:54.933
!MESSAGE Unable to load StrutsProjectwebui
!STACK 0
java.io.FileNotFoundException: C:\Empirix\eloadSrc\webui\.mystrutsdata (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
– Message Body ——————————-I see the warning when I try to edit ECLIPSE_HOME, I know I shouldn’t need to edit it, I do that just want to see if the IDE gives me more info on the warning. The pop up form “The path E:\eclipse does not point to an existing archive.”
support-michaelKeymasterIf the value is incorrect then please revise it as needed to see if the action resolves the archive not found warning. You can change the classpath variable, ECLIPSE_HOME under the Java preferences, see Windows>Preferences>Java>Classpath Variables and select “Edit”.
Any idea how the value was changed to an invalid value, e.g., imported preferences or .classpath file from another user (just curious)?
xsunMemberI think ECLIPSE_HOME is pointing to where eclipse.exe is, which is e:\eclipse on my machine. So I guess there shouldn’t be any warning sign on the variable icon. This may be a bug.
Would you please tell me what’s the exception in Eclipse log file is about? What’s stored in .mystrutsdata? When is the file created?
Thanks,
xsun
support-michaelKeymasterThere are two issues in this discussion. Let’s take them 1 at a time.
1) MyEclipse does not modify or use the ECLIPSE_HOME variable for any of its functions. So I assume any problem you’re experiencing with it results from some other source. Also, without knowing what library or other you’re selecting in the build-path view to invoke the warning its impossible for me to even guess.
2) From the stacktrace you provided the .mystrutsdata metadata file is missing from the project directory. This file should have been created by the MyEclipse Struct Configuration Wizards.
java.io.FileNotFoundException: C:\Empirix\eloadSrc\webui\.mystrutsdata (The system cannot find the file specified)
Any idea what happened to it? Did you check this project out of CVS or other in which the .mystrutsdata file was not checked in?
xsunMember@support-michael wrote:
Also, without knowing what library or other you’re selecting in the build-path view to invoke the warning its impossible for me to even guess.
Let me know where to find out what you need to know to diagnose the problem.
I never changed ECLIPSE_HOME.
Do you think it’s pointing to the correct directory though? I thought so. But why does it have a warning sign, if it is correct?@support-michael wrote:
Any idea what happened to it? Did you check this project out of CVS or other in which the .mystrutsdata file was not checked in?
I am not doing source control on this file. I only have .project and .classpath file in source control right now.
Thanks,
xsun
support-michaelKeymasterI am not doing source control on this file. I only have .project and .classpath file in source control right now.
The bits and pieces of this discussion are not adding up for me. I need a comprehensive description to understand why your project is not configured correctly.
1) Please describe the life-cycle of this project, i.e., changes you’ve made to it over time. For example you should have a .mymetadata file and a .mystrutsdata file in the web-project’s root folder. Since you didn’t mention them I can only assume that your project is not properly configured. Did you configure this project using the MyEclipse web-project creation or configuration wizard and the struts configuration wizard?
2)
I never changed ECLIPSE_HOME.
Do you think it’s pointing to the correct directory though? I thought so. But why does it have a warning sign, if it is correct?I assume ECLIPSE_HOME is properly configured if its value is the folder from which the Eclipse launcher is invoked. So I have no idea what kind of problem you refer. How about a screenshot or two sent to support@genuitec.com since I’m working blind on this behavior.
3) Have you previously used MyEclipse for other the creation of Web and Struts projects?
xsunMemberSorry to waste your time, I think I know what’s wrong now, I am not using “variable” correctly. A variable has to be extended to specify a path. I can’t use the variable as a path directly.
For example “ECLIPSE_HOME” is pointed to “e:\eclipse”. I can’t list “ECLIPSE_HOME” as a path, that’s why I got the warning earlier.
To use it correctly, I need to extend “ECLIPSE_HOME”, for example, “ECLIPSE_HOME\startup.jar”, that can be listed as a path.thanks,
xsun -
AuthorPosts