Java Language Support


Basic support for the Java programming language.

(33) Review
Visual Studio
2015, 2013, 2012, 2010
Download (112,102)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (33)
Q and A (46)
Sign in to write a review
Sort by:

by 我好看 | June 22 2016

by | June 06 2016

by Zeeshan Asghar | March 13 2016

didn't work. Extension crashed

by DanJ210 | February 27 2016

If you guys and girls view this one single picture:!441404&authkey=!AJwXsTCiRcH5VNs&v=3&ithint=photo%2cPNG

and this second picture if you still need:!441405&authkey=!AOrt7aqnp-8sc4Q&v=3&ithint=photo%2cPNG

I bet I would solve almost every problem on here. This is what you have to
do to get it working. I have not only gotten it to work but adding multiple
files and classes is now consistent and easy. Matching naming is
everything and you must put the name of the class which is the file in the
debug settings which you'll see in the picture.

by itChipmunk | December 28 2015

HI. How can I uninstall this plug-in ??

by VasuNama | November 03 2015

Can some kind soul show me how to compile and debug hellworld java program on Visual studio 2012/2013.

Please help. I am not able to compile or debug

by RadCraftplay | October 10 2015

While creating solution I have an error:
This is content of last error logged in ActivityLog.xml. I've sent it to pastebin due characters limit.

by Tavi Lacatus | October 09 2015

by atom's | September 19 2015

Hi Guys! PLEASE HELP ME! Then I compilation my program appears error:
"Ошибка 1 error: illegal character: \187 c:\users\никита\documents\visual studio 2013\Projects\adc\adc\src\ 1 2 adc"
What is it?

by stakemura | May 06 2015

I always got an error:
C:\Program Files\Java\jdk1.8.0_45\bin\javac.exe -verbose -g -d obj/Debug/ -Xlint -deprecation src/main/java/pkg/
C:\Users\xxxx\Documents\Visual Studio 20XX\Projects\ConsoleApplication\packages\Tvl.Java.1.2.0\build\Tvl.Jvm.Common.targets(3018,5): error MSB3030: Could not copy the file "obj\Debug\ConsoleApplication.jar" because it was not found.
Done building project "ConsoleApplication.javaproj" -- FAILED.

Development Environment:
Visual Studio 2013/2015 ultimate
JDK 1.7/1.8 32/64bit
default console project which created by wizard

Sam Harwell May 06 2015
| Edit |

Hi stakemura,

Can you post this issue on the issue tracker?

I don't normally get notified of comments or replies posted here.

by Tobias Valinski | February 25 2015

Actually I love the idea to be able to write Java in VS. The only thing that is really missing is Intellisense implementation.

I just inspected the repository and there seem quite a lot lines that relate to Intellisense. Unfortunately I'm somehow not able to get the extension working from your source code (some ccrewrite errors), so I'll just ask:

Are there plans for implementing Intellisense?

Sam Harwell March 12 2015
| Edit |

Hi Tobias,

Can you post this issue on the issue tracker?

I don't normally get notified of comments or replies posted here.

by Tiago Cajahyba | February 13 2015

It's not perfect but congrats, it is very useful! Have you thought about make it opensource? ;)

Sam Harwell February 20 2015
| Edit |

Eventually it will have its own home, but for now it's here:

by marceroca | February 02 2015

Funciona perfectamente, muchas gracias.

by Scuba Kay | December 19 2014

This doesn't support java files in non-java project.

by ptschnack | December 11 2014

I've installed this on VS 2010 Pro and VS 2012 Premium on Win7 x64. Downloaded presumably the latest extension vsix, but the version reported in VS Help/About is 1.0, not 1.1.

I don't see any background highlighting at breakpoints as described although the breakpoint line indicator seems to work correctly.

Project configuration > Application > Startup object apparently can't be set. The dropdown contains only (Not Set) and can't be edited.

I can't access a class in a library project from the main function in an app project. App and library classes are in same package and build correctly copies the library jar to the app's Debug folder. The debugger starts the app, but attempting to use the class in the library thows NoClassDefFoundError. Is the library class not found because the manifest in its jar file contains only version information? If so, how do I modify the manifests in this environment?

The last problem is surely my inexperience with Java, but it would be nice to have Documentation (or alternately a downloadable example project) that shows how to tie together code in multiple projects in this environment.

All that said, thanks for a pretty cool extension.

by levent777 | November 25 2014


by apk-dev | November 13 2014

Okay, so maybe it lacks some features and crashes every once in a while. So what?

10/10 Still better than Eclipse

by WisdomGuidedByExperience | November 02 2014

2014-11-02 Fails in Visual Studio 2013 Premium, Update 4, with the following error when I try to Start (in either Debug or Release, doesn't matter which one):

"This preview version of the Java debugger only supports starting execution in a named class; the class name may be configured in the project properties of the Debug tab"

1. There is no Debug "tab" when I bring up (F4) the project properties.
2. There is no Error in the Output window after a build

This extension is a noble idea that just doesn't work.

by Ankur P | October 28 2014

Unable to install in my Visual Studio with following details.
Microsoft Visual Studio Express 2012 for Windows Desktop
Version 11.0.61030.00 Update 4
Microsoft .NET Framework
Version 4.5.50938
Installed Version: Desktop Express
Team Explorer for Visual Studio 2012 05695-004-0030004-02515
Microsoft Team Explorer for Visual Studio 2012
Visual Basic 2012 05695-004-0030004-02515
Microsoft Visual Basic 2012
Visual C# 2012 05695-004-0030004-02515
Microsoft Visual C# 2012
Visual C++ 2012 05695-004-0030004-02515
Microsoft Visual C++ 2012
NuGet Package Manager 2.6.40627.9000
NuGet Package Manager in Visual Studio. For more information about
SQL Server Data Tools 11.1.20828.01
upon OS Windows 7 (Prof) x64

Sam Harwell October 30 2014
| Edit |

Unfortunately (at least for potential users of this extension), Microsoft does not allow third parties to create extensions which can be installed in the Express editions of Visual Studio. Please consider removing this vote because there really is no way for me to address this concern.

Thank you,
Sam Harwell

by Kamran Shahid | October 01 2014

I do promote this extension. VS IDE's are awesome compared to netbean/eclipse. Love to see VS IDE to do some changes and compilation for some existing historical java project.

1 - 20 of 33 Items   
Sign in to start a discussion

  • Debugging only flashes
    2 Posts | Last post August 15, 2016
    • I created a Java Console project and tried to execute it as-is. I only get a window that flashes very quickly, I don't know if the project worked or what. I don't see how to get the window to not close. I do not know what command is being issued by VS to run the program. The project properties has the command:
      "C:\Program Files (x86)\Java\jdk1.7.0_55\bin\java.exe" -agentpath:{AgentPath}
      but I do not know how to use that in a command window.
      I went to the project's bin\Debug folder and used the command:
      java -cp JavaConsole.jar pkg.Program
      "JavaConsole" is the project name. That executed the program. I hope that helps someone.
    • To run from within VS, you need to add the fully qualified Start class (e.g. pkg.Program in your example) under Project Properties
      Project-> JavaConsole properties -> Debug tab -> "Start class within project" = pkg.Program
  • IntelliSense not working after Update 2 of VS2015
    1 Posts | Last post May 19, 2016
    • I've updated VS2015 and IntelliSense as well as highlighting of Java code not working anymore. More than that - Java disappeard from Tools->Options->Text editor.
      What to do?
  • Manifest file
    1 Posts | Last post May 19, 2016
  • Compiling and Debugging with VS2013 Community
    2 Posts | Last post May 17, 2016
    • Hello,
      I really like the idea of having all my projecty in the same IDE and I love VS from my C/C++ projects.
      My problem is that, also by following the preposted steps, I am not able to
      compile "Hello, world" as simple comsole application.
      Unfortunately  VS doesn't give any useful error-message:
      ------ Build started: Project: JavaCmd, Configuration: Debug Any CPU ------
      Done building project "JavaCmd.javaproj" -- FAILED.
      ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
      Does anyone have a clue what I could do about this?
      Btw, honestly, I am new to the java-world but I have to use it now. However, a simple "Hello, world!" cannot be that hard :) 
      Thanks in advance!
    • Problem solved! JDK was missing. Thought that I had it installed already:)
  • Did any one tried Java support with VS2015 Update 1
    1 Posts | Last post April 06, 2016
    • I get this error. How will I pass out of this problem. Please reply
      Microsoft.VisualStudio.Composition.PartDiscoveryException: Unable to load assembly "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies\Microsoft.CodeAnalysis.VisualBasic.InteractiveEditorFeatures.dll" for
  • Visual Studio Blank Solution
    1 Posts | Last post April 02, 2016
    • When I create a Java Console project in a Visual Studio Blank Solution I get the error "An exception has been encountered. This may be caused by an extension.". There is an "Activity Log.xml" file but I don't know what to look at.
      If I create a Java Console project in a new solution (not in a Blank Solution) I get no error. I usually put small test projects in a solution but I can't do that using this extension. That is okay now that I know that I can't and it might help others to know it does not work.
  • Here is how you fix all your problems - Working
    2 Posts | Last post March 23, 2016
    • If you guys and girls view this one single picture:
      and this second picture if you still need:
      I bet I would solve almost every problem on here. This is what you have to 
      do to get it working. I have not only gotten it to work but adding multiple
      files and classes is now consistent and easy. Matching naming is 
      everything and you must put the name of the class which is the file in the 
      debug settings which you'll see in the picture.
    • Your picture is very useful. It knows compiles. But when I run I get this error:
      The operation could not be completed.
      What should I do to make it run? Please reply
  • Need project file to build and compile simple java program
    1 Posts | Last post March 22, 2016
    • Can you please give me a project file (.sln)  for
      /* */
      public class HelloWorld {
              public static void main(String[] args) {
                      System.out.println("Hello World!");
      that can be compiled and debugged
      on Visual studio Community 2015 Update 1 that has 
      Java Language Support extension
      I cannot make it work. Please post or email to
  • Java project doesn't work in VS2013
    4 Posts | Last post March 21, 2016
    • When I try and start an empty java project, I get the message "Could not find file 'C:\Users\{My account here}\AppData\Local\Microsoft\VisualStudio\12.0\VTC\7e8ec19d2dca576753035b7aee565570\~PC\ProjectTemplates\Java\Windows\1033\\EmptyProject.javaproj'."
      The path is there, but the file name at the end is actually "JavaEmptyProject.javaproj" instead of "EmptyProject.javaproj". Seems like a minor oversight :)
    • Sorry for double post. If I try and rename the file "JavaEmptyProject.javaproj" to "EmptyProject.javaproj" it then gives me an error that it can't find "JavaEmptyProject.javaproj" haha. Seems I can't win here!
    • Hi Beannaich,
      Thanks for the report. I'll get this fixed for the next release. In the mean time, can you try using the Console Application project template to create your project? My testing was primarily with that. You can also try with the Class Library template, although it was less tested as well.
    •  >>In the mean time, can you try using the Console Application project template to create your project?
      Can some kind soul, please email me a simple project file (.sln) for program using Visual Studio community 2015, with update 1. I have done java language support from site
      I am not able to compile and debug even a simple program
      Please email me a project file at
  • Got Error
    1 Posts | Last post January 26, 2016
    • I got this error when i open .java file,
      Microsoft.VisualStudio.ExtensibilityHosting.InvalidMEFCacheException: The Visual Studio component cache is out of date. Please restart Visual Studio. The Visual Studio component cache is out of date. Please restart Visual Studio.
   at Microsoft.VisualStudio.ExtensibilityHosting.FaultCatchingAssemblyLoader.<LoadAssembly>b__12_0(AssemblyName assemblyNameParam)
   at Microsoft.VisualStudio.ExtensibilityHosting.FaultCatchingAssemblyLoader.SafeGetOrAdd[TKey,TValue](IDictionary`2 dictionary, TKey key, Func`2 valueFactory)
   at Microsoft.VisualStudio.ExtensibilityHosting.FaultCatchingAssemblyLoader.LoadAssembly(AssemblyName assemblyName)
   at Microsoft.VisualStudio.Composition.Reflection.ResolverExtensions.GetManifest(Resolver resolver, AssemblyName assemblyName)
   at Microsoft.VisualStudio.Composition.Reflection.TypeRef.get_ResolvedType()
   at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.<>c__DisplayClass15_0.<GetExportedValueHelper>b__0()
   at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportElement(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import, RuntimeExport export, Func`3 lazyFactory)
   at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportSite(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import)
   at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.SatisfyImports()
   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.SatisfyImmediateImports()
   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState)&#x000
1 - 10 of 46 Items