Visual Studio 2015中的Java [英] Java in Visual Studio 2015

查看:404
本文介绍了Visual Studio 2015中的Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想按照"如何:Visual Studio 2010中的Java + - YouTube"中的说明在Visual Studio 2015中启动java控制台应用程序项目"hello world"


我收到以下错误:


遇到异常。这可能是由扩展引起的。您可以通过检查文件来获取更多信息... ActivityLog.xml


此错误未显示在VS 2013中。


ActivityLog.xml列出了错误


"MEF组件在运行时引发异常:Microsoft.VisualStudio.ExtensibilityHosting.InvalidMEFCacheException:Visual Studio组件缓存已过期。请重新启动Visual Studio。"


已安装:


Visual Studio 1.0的Java语言支持


Java项目支持Visual Studio 1.0


Java脚本语言服务2.0


Java脚本项目系统2.0


Nuget Package Manager 3.4.4


启动VS 2015时,它始终运行"扫描和更新MEF组件......"程序。


也许有人可以帮助正确设置VS 2015。

解决方案

您好Harald,


感谢您在MSDN论坛上发帖。


>>"MEF组件在运行时抛出异常:Microsoft.VisualStudio.ExtensibilityHosting.InvalidMEFCacheException: Visual Studio组件缓存已过期。请重新启动Visual Studio。"


通常对于此错误信息,这是由于扩展缓存已过期或已损坏。在安装任何新组件之后,它应该通过扫描文件系统来重建它(并缓存它以避免在每次启动时都需要这样做)。


强制重建它的一种方法是:


1。删除文件夹中的内容"%LOCALAPPDATA%\ Microsoft \VisualStudio \14.0 \ ComponentModelCache"

或者你也可以下载并使用 清除MEF组件
缓存
 工具。           ;                  


2。运行 DevEnv.exe / setup (这是在"C:\Program Files(x86)\ Microsoft Visual Studio 14.0 \Common7 \IDE"下面,但是如果你的话,应该在你的PATH上打开开发人员命令提示符。)


3。打开管理CMD窗口并导航到C:\Program Files(x86)\ Microsoft Visual Studio 14.0 \Common7 \IDE并运行 devenv / safemode
以打开visual studio。


在此之后,重复您之前执行的操作,并检查是否会发生错误。


最好的问候,


I want to start the java console application project "hello world" in Visual Studio 2015 following the instructions in "How to: Java in Visual Studio 2010 + - YouTube"

I get the following error:

An exception has been encountered. This may be caused by an extension. You can get more information by examining the file ... ActivityLog.xml

This error is not showing up in VS 2013.

The ActivityLog.xml is listing the error

"A MEF Component threw an exception at runtime: Microsoft.VisualStudio.ExtensibilityHosting.InvalidMEFCacheException: The Visual Studio component cache is out of date. Please restart Visual Studio."

It is installed:

Java Language Support for Visual Studio 1.0

Java Project Support for Visual Studio 1.0

Java Script Language Service 2.0

Java Script Project System 2.0

Nuget Package Manager 3.4.4

When launching VS 2015 it is allways running the procedure "scanning and updating MEF components ...."

Perhaps somebody can help setting up VS 2015 properly.

解决方案

Hi Harald,

Thank you for posting in MSDN forum.

>>"A MEF Component threw an exception at runtime: Microsoft.VisualStudio.ExtensibilityHosting.InvalidMEFCacheException: The Visual Studio component cache is out of date. Please restart Visual Studio."

Normally for this error information, It is due to the extension cache being out of date or corrupt. After installing any new component, it should rebuild this by scanning the file system (and caches it to avoid needing to do it on every launch).

One way to force this to be rebuilt is:

1. Delete the contents of the folder at "%LOCALAPPDATA%\Microsoft\VisualStudio\14.0\ComponentModelCache"
Or you could also download and use Clear MEF Component Cache tool.                            

2. Run DevEnv.exe /setup (this is under "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE", but should be on your PATH if you open a Developer Command Prompt).

3. Open an administrative CMD window and navigate to C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE and run devenv /safemode to open visual studio.

After this, repeat the operations that you did before and check if the error will be occurred.

Best Regards,


这篇关于Visual Studio 2015中的Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆