I created a path variable in eclipse and link a jar file using this path. Then adding this file to the build path. On my PC it's working fine and but it is giving following error on others PC's. dialog box appear with message "Failed to load Main-Class manifest attribute from "
我在eclipse中创建了一个路径变量,并使用此路径链接了一个jar文件。然后将此文件添加到构建路径。在我的电脑上它工作正常,但它在其他电脑上给出了以下错误。出现对话框,显示消息“无法加载主类清单属性”
Basically we have different projects in eclipse that uses the same jar files, these different projects are different module of a big project. We need to put all jar files in a separate drive. I use the above mechanism, so whenever we move project to any other system, we just need to set the variables value, all are automatically adjusted.
基本上我们在eclipse中有不同的项目使用相同的jar文件,这些不同的项目是一个大项目的不同模块。我们需要将所有jar文件放在一个单独的驱动器中。我使用上面的机制,所以每当我们将项目移动到任何其他系统时,我们只需要设置变量值,所有都是自动调整的。
Can any one tell about this problem or can give alternate solution??????
可以任何人讲述这个问题或者可以给出替代解决方案吗??????
-- Junaid
1 个解决方案
#1
0
We have solved it. go to Window->Preferences->java->"Build Path"->"Classpath variables" and create a variable that points to the root directory of libraries. go to project properties->"java build path" click "add variable", select the variable you created and extend it. This is where you can select all the jars.
我们已经解决了。转到Window-> Preferences-> java - >“Build Path” - >“Classpath variables”并创建一个指向库根目录的变量。转到项目属性 - >“java build path”单击“添加变量”,选择您创建的变量并对其进行扩展。您可以在这里选择所有罐子。
#1
0
We have solved it. go to Window->Preferences->java->"Build Path"->"Classpath variables" and create a variable that points to the root directory of libraries. go to project properties->"java build path" click "add variable", select the variable you created and extend it. This is where you can select all the jars.
我们已经解决了。转到Window-> Preferences-> java - >“Build Path” - >“Classpath variables”并创建一个指向库根目录的变量。转到项目属性 - >“java build path”单击“添加变量”,选择您创建的变量并对其进行扩展。您可以在这里选择所有罐子。