Java Language Support

Free

Basic support for the Java programming language.

(23) Review
Visual Studio
2013, 2012, 2010
Download (43,357)
10/27/2014
1.1.0
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (23)
Q and A (25)
Sign in to write a review
Sort by:

by Tobias Valinski | Wed 1:17 AM

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?

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 |
Delete

Eventually it will have its own home, but for now it's here: https://github.com/tunnelvisionlabs/LangSvcV2/

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

hey

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 |
Delete

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.

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 03 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 | Mon 8:37 AM

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.

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


  • VS does not compile
    3 Posts | Last post Wed 10:24 AM
    • Hi,
      using VS 2013 Professional and JDK7, VS doesn't compile.
      Unfortunately, Error List window shows anything, and the only message is "build failed" in Output window.
      
      How can I solve?
      
      Thanks
    • I am getting the same result on VS 2013. 
      BTW, is anybody answering these questions? 
    • Install JDK x86 if you are using x64. It's because VS is x86
  • Debugging with additional referenced jars
    2 Posts | Last post February 20, 2015
    • I cannot debug my Java project as it contains additional referenced jar files (added as Reference using the UI) and when calling the debugger these jar files are not passed as classpath to the java.exe.
      
      Compiling is working fine as they are passed to javac, but not to java when debugging/testing.
      
      Any ideas? 
    • Hi Rene,
      
      This was a great catch! Can you file this as an issue on the project issue tracker, so I can credit you in the next release notes?
      
      https://github.com/tunnelvisionlabs/LangSvcV2/issues
  • "jar.exe" exited with code 1.
    4 Posts | Last post February 02, 2015
    • 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"
    • I'm geting the same error with a hello world application created from the template.
      
      How can I fix this?
    • I have the same error. Does someone has a solution to this?
  • Console applications
    1 Posts | Last post January 28, 2015
    • Does anyone know if there is a way to add a Java console application template to Visual Studio Ultimate 2013?
  • Unable to save project
    2 Posts | Last post January 07, 2015
    • My IDE is set so that when a project is created, it doesn't get saved immediately, giving me a way to discard projects without leaving them on my computer.
      
      Anyway when I create a new Java console app, I get the following error message:
      
      "Unable to locate the solution directory. Please ensure that the solution has been saved."
      
      I believe this happens because the project is created in some unknown temp folder elsewhere in the system.
      The project is created, but then when I attempt to save it I get this error:
      
      "The operation could not be completed"
      
      Please fix this, and if you have a chance, please comment on, so I get notified.
    • Issue reported and fixed here: https://github.com/tunnelvisionlabs/LangSvcV2/issues/13
      
      Thanks!!
  • Issues with 1.1 (Dec 10, 2014 download)
    2 Posts | Last post December 11, 2014
    • I've got a solution with one library project and one app project with library and app classes in the same package. After building the solution, if in a command window I cd to the app's Debug folder and execute the following, the app successfully executes and is able to create an instance of the class in the library and call a method on it.
      
      if not exist .\tmp mkdir tmp
      cd tmp
      jar -xvf ..\org.ptse.ClassLibrary0.jar
      jar -xvf ..\org.ptse.JavaApp0.jar
      jar -cvf ..\org.ptse.JavaApp0.jar -e org.ptse.JavaApp0 .
      cd ..
      
      java -cp org.ptse.JavaApp0.jar org.ptse.JavaApp0
      
      When I attempt to execute the app in the IDE debugger creating an instance of the library's class throws NoClassDefFoundError despite the build having copied the library jar to the app's Debug directory. (I.e. the library jar is in the same folder as the app's.)
      
      Is there a way to configure the projects so that in the IDE debugger I can run the app and it be able to access the library without throwing an exception?
      
      Things to note:
      
      Commands in the app's post-build event are never called neither in the default configuration nor when configured to be called whenever build changes the output.
      
      Manifest files in the jars contain only version information and no paths.
      
      Stepping through code with the debugger does not highlight current point in code. However, the current-line indicator seems to work. (Your description highlights that highlights work which is not my experience.)
      
      Visual Studio Help > About displays extension version is 1.0 not 1.1 despite being downloaded using the download button on Dec. 10, 2014 where the project is supposed to be at version 1.1.
      
      Above problems occur in both VS 2010 Pro and VS 2012 Premium on Win7 x64.
      
      Thanks for any help you can provide!
    • BTW, path to the jdk1.8.0_11 is added to the environment PATH variable.
  • Java Project does not work in VS2013
    7 Posts | Last post December 04, 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?
    • I was getting this error, too. I applied the fix from https://bitbucket.org/sharwell/langsvcv2/issue/3/error-on-building-project#comment-14006213 and now I'm up and running.
  • Can not install
    2 Posts | Last post November 27, 2014
    • when I try to install the extension it throws the error that the extension is not uninstallable on any installed products
    • Are you on visual studio express?
  • Update?
    1 Posts | Last post November 18, 2014
    • Will update VS14 and VS13?
  • Build FAILED
    1 Posts | Last post October 21, 2014
    • same problem just builing Hello World program.
      
      Diagnostic build info:
      ...
      Target "CoreCompile" in file "C:\work\tfs\Tests\chmagre\ConsoleApplication4\packages\Tvl.Java.1.0.0-alpha001\build\Tvl.Java.targets" from project "C:\work\tfs\Tests\chmagre\ConsoleApplication4\ConsoleApplication4\ConsoleApplication4.javaproj" (target "Compile" depends on it):
      	Building target "CoreCompile" completely.
      	Output file "__NonExistentSubDir__\__NonExistentFile__" does not exist.
      	Using "Javac" task from assembly "C:\work\tfs\Tests\chmagre\ConsoleApplication4\packages\Tvl.Java.1.0.0-alpha001\build\Tvl.Java.BuildTasks.dll".
      	Task "Javac"
      	Done executing task "Javac" -- FAILED.
      Done building target "CoreCompile" in project "ConsoleApplication4.javaproj" -- FAILED.
      ...
      
      using javac 1.8.0_25 for 64 bit. register entries are ok for 64 bit.
      
      Any hints?
1 - 10 of 25 Items