简体   繁体   English

Eclipse Helios:Java EE观点:如何像参考库一样在一个引擎盖下添加jar以构建路径

[英]Eclipse Helios: Java EE Perspective: How to have jars added to build path under one hood like referenced library

I have a GWT+Spring+Hibernate project and so I have several jars in WEB-INF/lib directory. 我有一个GWT + Spring + Hibernate项目,因此在WEB-INF / lib目录中有几个jar。 All of these jars are added to build path. 所有这些jar都已添加到构建路径。 I get unconvenient view for jars in build path like 我在构建路径中看到罐子的不便视图

MY_Project
|->src
|->resource
|->JRE System Library[jdk1.6]
|->ant.jar   //from here on jars in build path
|->asm-common.jar
|->asm-util.jar
|->c3p0.jar
|->commons-collections.jar
 .
 .
 .

and this list goes on for 40 more jars here to cover up full screen length. 并且此清单继续显示40个罐子,以掩盖整个屏幕的长度。 Consequently I can't navigate to other dependent project easily. 因此,我无法轻松导航到其他依赖项目。

I would like here something like what I get when I switch to spring perspective: 我在这里想像我切换到Spring透视图时得到的东西:

--------------------------------------------------------------------------------
MY_Project
|->src
|->resource
|->JRE System Library[jdk1.6]
|->Referenced Libraries //<-- here goes all that 40 jars under on hood
|->war
---------------------------------------------------------------------------------

So any suggestions. 所以有什么建议。

Thanks in advance 提前致谢

  1. Go to Window -> Preferences . 转到Window -> Preferences
  2. There select Java -> Build Path -> User Libraries . 在那里选择Java > Build Path -> User Libraries
  3. Enter name for the library. 输入库的名称。
  4. Add all relevant jars. 添加所有相关的罐子。

From then on the library can be added for any specific project via: right click on your project -> Build Path -> Configure . 从那时起,可以通过以下方式为任何特定项目添加库: right click on your project -> Build Path -> Configure Select Libraries tab -> Add Library -> User Library . 选择Libraries选项卡-> Add Library -> User Library

Enjoy! 请享用!

Try this: 尝试这个:

  1. Switch to Package Explorer View (instead of Project Explorer View) 切换到包资源管理器视图(而不是项目资源管理器视图)
  2. If it doesn't show "Referenced Libraries" in Package Explorer View, click on the downward pointing triangle in the view and ensure "Show 'Referenced Libraries' Node" is ticked. 如果在Package Explorer视图中未显示“ Referenced Libraries”,请在视图中单击向下的三角形,并确保已选中“ Show'Reference'Libraries'Node”。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Eclipse-如何删除从“引用的库的类路径”添加的jar - Eclipse- How to remove jars which are added “from class path” of referenced library 使用Eclipse Helios启动时,Eclipse Java Build Path找不到jar - Eclipse Java Build Path does not find jars when launch with eclipse Helios 如何在使用build.xml文件的Ant生成的jar文件中包含Eclipse项目的“Java Build Path”部分中引用的jar文件 - How to include the jars referenced in “Java Build Path” section of an Eclipse project in a jar file generated with Ant using a build.xml file 如何在Eclipse的Java EE透视图中隐藏引用的库? - How do I hide Referenced Libraries in Eclipse's Java EE perspective? 如何在Eclipse Photon中添加Java EE透视图? - how to add Java EE perspective in Eclipse Photon? 未将本地Java Project jar添加到Maven构建的战争中-Eclipse 3.6 Helios - Local Java Project jars aren't added to Maven built war - Eclipse 3.6 Helios Eclipse 中的 Java EE 透视图在哪里? - Where is the Java EE perspective in Eclipse? Eclipse EE - Java EE透视图与Java透视图 - Eclipse EE - Java EE perspective Vs Java perspective 常春藤或ivyDE可以在Eclipse中自动将相关的jar添加到JAVA构建路径库中吗? - Can ivy or ivyDE add related jars into JAVA build path library automatically in Eclipse? Eclipse中的Java库路径-一次将dll库添加到多个jar中? - Java Library Path in Eclipse - Add dll library to multiple jars at once?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM