Java Language Support

Free

Basic support for the Java programming language.

(13) Review
Visual Studio
2013, 2012, 2010
Download (28,222)
3/17/2014
1.1.0
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (13)
Q and A (17)
Sign in to write a review
Sort by:

by vsuser69 | August 21 2014

Spot on! Instantly provides syntax highlighting for Java. Took a little tweaking to get to my tastes. Would it be possible to import settings from C++ (or other text editor) that is already set up? Such as tab settings etc.?

Personally, I use this extension for editing rather than compile/debug so I'd be more interested in code completion, code auto-formatting, etc. being implemented to bring the features in line with the C++ editor.

Great extension :)

by JimmyJimm | July 10 2014

I am receiving such info any idea?:

---------------------------
Microsoft Visual Studio
---------------------------
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 on the Debug tab.
---------------------------
OK
---------------------------

by huyuguang | July 05 2014

I always got an error:
C:\Program Files (x86)\Java\jdk1.8.0_05\bin\javac.exe -verbose -g -d obj/Debug/ -Xlint -deprecation src/main/java/pkg/Program.java
i:\testprj\ConsoleApplication7\packages\Tvl.Java.1.0.0-alpha001\build\Tvl.Jvm.Common.targets(3018,5): error MSB3030: Could not copy the file "obj\Debug\ConsoleApplication7.jar" because it was not found.
Done building project "ConsoleApplication7.javaproj" -- FAILED.

My Env.:
visual studio 2013 ultimate
jdk 1.8
default project which created by wizard

Any hint?

by Dennis Kaspar | June 06 2014

After some testing and fixing some problems i got it work - Debugger works fine, highlight is basically implemented.
Anyways I'm missing the Codecompletion - If that would be integrated it will be perfect for me

RUnning VS2013 Professional on Win 8.1 Pro x64
JDK 7 (u60) x86/x64 installed

by Cybersur | May 02 2014

Thank you for the package, it has proven to be an asset. We have no need to compile the code in VS 2013, since it would not make sense. I like the features that provide the ability to write java code into VS 2013.

Good work! please let me know if you are planning to adding additional features.

by SJBrown | February 16 2014

Did exactly what I was looking for, syntax colouring in Java for the occasional time when I need to work on Java/C++ side by side in Vis Studio.

Thanks Sam!

by ChristopherNemo | July 07 2013

This is a junk that doesn't do anything. Poorly written description that intends to deceive someone who is looking to test something quickly. This guy Harwell is a clown that wastes your time. Both this packages, Java Language Support, and PHP Language Support are junks that don't support anything. You can open your java files and php files and see some code... so what? IDIOT! I hate idiots who waste my time. I reported this guy for his deceptively named packages that a 12 years old can produce and he put them up online to waste your time! Curses!!!!!!!!!!! Idiot clown!

I reported this: This package doesn't support java. It doesn't do anything, no compile, no way to even start a project for java, not to mention debugging. It wasted my time, the whole day, trying to figure out just exactly what it does. This guy is a fraud. Remove this package.

The best tool I found that closet to real java ext to visual studio 2010 is here: http://improve.dk/compiling-java-in-visual-studio/

Sam Harwell February 05 2014
| Edit |
Delete

Hi ChristopherNemo, this extension only provides the features listed in the description. I never mentioned or suggested features such as a project system, compilation, or debugging. As you describe in your review, "You can open your java files and php files and see some code"; since this is not a feature provided with Visual Studio 2010 by default, I released this extension to help a select group of users who are after the specific features provided by this extension.

by PrasannaRao | July 03 2013

Neat

by Nkozlov | November 29 2012

by Pico Ohms | February 27 2012

Thanks Sam! This works well for us and fills a small void. We have projects that contain Java and .Net code, and whilst we managed to drive the entire build from MSBuild, we didn't have a good environment for viewing the entire project from one tool. We do now and appreciate the effort to put his extension together.

by Tosspottery | December 16 2011

Perfect!

by alexperry | September 02 2011

Just wanted to say - thanks for this - just what I was looking for. Its great for just looking quickly at some java code from vs2010 without having to go through the mental context switch that using eclipse etc requires

by trukhinyuri | August 23 2011

thank you! very important work

Sign in to start a discussion


  • Start class in default package?
    1 Posts | Last post August 29, 2014
    • Hi! Thanks for a great extension!
      I'm having a small issue though... I have this project where I need to use components that are in the default package. Unfortunately I can't move those things into a package, so I need to put my main class in the default package (i.e. I deleted the "package pkg;" line). The code compiles OK.
      
      Unfortunately though, when I specify just the class name in the "Start class within project", for some reason, nothing happens when I go to run it. No error (I get "class not found" if I enter anything other than my class name).
      On inspecting the jar's manifest I notice that the Main-Class isn't specified. So running the jar from the OS directly also does nothing.
      Is there any way this can be configured to work as expected? If I add a package name to my class, it works fine (except obviously I can't use the 3rd-party components that are in the default package!).
      
      Thank you!
  • Java Project does not work in VS2013
    6 Posts | Last post July 16, 2014
    • I create Java console application from template. Build fails with no diagnostic:
      
      "C:\Program Files\Java\jdk1.7.0_51\bin\" 
      
      ------ Build started: Project: ConsoleApplication4, Configuration: Debug Any CPU ------
      Done building project "ConsoleApplication4.javaproj" -- FAILED.
      
      ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
      
      I have JDK 1.7.0_51 64 bit installed. 
      
    • I am getting the same error, not sure why.
      
      ------ Build started: Project: FirstJavaProject, Configuration: Debug Any CPU ------
      Done building project "FirstJavaProject.javaproj" -- FAILED.
      
      ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
      
    • Thanks for trying out this extension. Can you please report this issue here so it's easier to track progress towards a solution? https://bitbucket.org/sharwell/langsvcv2/issues
    • Getting exactly same ERROR............
      don't know why,........
      
      is there any way out ? ? ?
    • I encountered this problem too. And I solved it by exporting HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft key and reimporting as HKLM\SOFTWARE\Wow6432Node\JavaSoft (just find & replace the exported .reg file). Seems it's because we have installed the 64-bit JDK while Visual Studio is 32-bit and always look for keys under Wow6432Node node.
      
      I discovered this by using SysInternals procmon tool, and Googled and found this old article for solution: http://codearetoy.wordpress.com/2010/12/23/jdk-not-found-on-installing-android-sdk/
      
    • I also have this exact same error regardless of what I've tried. Did anyone figure this out yet?
  • Java Language Support Enhancements
    1 Posts | Last post July 11, 2014
    • This is a very powerful extension, and desperately needed in several circles and is critical to my work across platforms. Can you advise when you will be updating and/or adding features to this.  Exceptional that this exists.  Also, do you have a page for documentation of what features are available with the plug-in and the gotchas.
  • error version message
    1 Posts | Last post July 10, 2014
    • Hi guys i am receiving such error message when trying to fire it up any idea?:
      
      ---------------------------
      Microsoft Visual Studio
      ---------------------------
      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 on the Debug tab.
      ---------------------------
      OK   
      ---------------------------
      
  • Build options view
    1 Posts | Last post June 07, 2014
    • Using VS 2010
      Error when creating a Java Console app project.
      Gets as far as creating the folder but no further.
      
      Error: this template attempted to load component assembly 'NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. For more information on this problem and how to enable this template, please see documentation on Customizing Project Templates.
      
      Using VS 2012
      Created a Java Console app project.
      1) In the 'Treat warnings as error' grouping I cannot see anything after the 'None' radio button. I do see the tip of the next radio button.
      
      2) The Build options view would be more useful if there was a simple text field for any javac command line options that I want. I specifically would like to set the classpath.
      
      Thanks
  • Build is creating jar when want class
    1 Posts | Last post May 30, 2014
    • I like this Extension, thanks. Very basic question...
      
      When I build a HelloWorld, the default build creates a jar whereas I just want a class
      
      What do I need to do to build a class and disable the jar creation part?
      
      ------ Build started: Project: testjava3, Configuration: Debug Any CPU ------
      	C:\Program Files (x86)\Java\jdk1.8.0_05\bin\javac.exe -verbose -g -d obj/Debug/ -Xlint -deprecation src/main/java/pkg/Program.java
      	C:\Program Files (x86)\Java\jdk1.8.0_05\bin\jar.exe cf obj/Debug/testjava3.jar -C obj/Debug/ pkg/Program.class
      	testjava3 -> c:\users\richard\documents\visual studio 2012\Projects\testjava3\testjava3\bin\Debug\testjava3.jar
      ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
      
      thanks, Rich.
      
  • "jar.exe" exited with code 1.
    2 Posts | Last post April 18, 2014
    • I'm getting the following error when trying to build a Java project with VS2010. ""jar.exe" exited with code 1."
      
      I have the lastest Java SDK installed.
      
      I also had a previous error message on creating a new Java project which was fixed by installing NuGet.
      
      Any ideas? Thanks!
    • 	Error in call "C:\Program Files (x86)\Java\jdk1.6.0_39\bin\jar.exe cf obj/Debug/ConsoleApplication4.jar -C obj/Debug/ pkg/Program.clas"
      
       should be as follows: "C:\Program Files (x86)\Java\jdk1.6.0_39\bin\jar.exe cf obj/Debug/ConsoleApplication4.jar -C obj/Debug/ pkg/Program.class"
  • Can't create java project in vs2013
    2 Posts | Last post March 06, 2014
    • Whenever I try to create a java project in vs 2013 (by clicking new project and selecting one of the java templates), I get the following error: 
      
      "Error: this template attempted to load component assembly 'NutGet.VisualStudio.Interop, Version=1.0.0.0, Vulture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. For more information on this problem and how to enable this template, please see documentation on Customizing Project Templates."
      
      Any suggestions on how to solve this? Or is it a bug of the current release?
    • Can you report this on the project issue tracker for simplified discussion and progress tracking? Thanks!
      https://bitbucket.org/sharwell/langsvcv2/issues
  • Java project doesn't work in VS2013
    3 Posts | Last post February 24, 2014
    • 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\JavaEmptyProject.zip\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.
  • VS2010 restarts
    4 Posts | Last post February 20, 2014
    • I really like the Java Language Support entension, but I've been having problem with VS2010 restarting periodically when the Java Language Support entension is enabled.
      
      I was able to reproduce a specific problem that causes VS2010 to restart.
      
      Given a small Java program named foo.java containing the following text:
      
      public class foo {
       public void bar () {
        Object[][]ao2 =
       }
      }
      
      With the Java Language Support entension enabled, open the file in VS2010, and then go to the end of the line with the equal sign = and type an open curly brace {
      
      Then VS2010 will restart.
      
    • I'm also getting crashes in similar situations.
      
      If I disable the extension from the Extension Manager, I still get the syntax highlighting, but not the crashes; presumably the problem is in the outlining?
    • I've had the same issue with VS restarting as well. 
    • Thanks for the feedback. So far I have been unable to reproduce this issue with the latest version of the extension (1.0.8). Please let me know if you continue to see problems with this release.
1 - 10 of 17 Items