• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to run Java in VS Code

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am running VS Code 1.66.2 in Windows 10. I installed the Extension Pack  but still get "javac is not recognized as an internal or external command" when I run a program. I also get a message in the lower right corner that says, "Sorry, something went wrong activating IntelliCode support for Java. Please check the "Language Support for Java" and "VS IntelliCode" output windows for details."
 
Bartender
Posts: 669
15
TypeScript Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you install java?
 
Saloon Keeper
Posts: 7601
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Please check the "Language Support for Java" and "VS IntelliCode" output windows for details."


What do those windows show?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

David Wellington wrote:I am running VS Code 1.66.2 in Windows 10. I installed the Extension Pack  but still get "javac is not recognized as an internal or external command" when I run a program. I also get a message in the lower right corner that says, "Sorry, something went wrong activating IntelliCode support for Java. Please check the "Language Support for Java" and "VS IntelliCode" output windows for details."




A wide range of extensions provide Java support in Visual Studio Code. As an add-on to VS Code, these extensions provide a lightweight, performant code editor that supports many Java development techniques.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
install java  in visual studio code.

A wide range of extensions provide Java support in Visual Studio Code. As an add-on to VS Code, these extensions provide a lightweight, performant code editor that supports many Java development techniques.
steps run to java program:-
1.    Open a command prompt window and go to the directory where you saved the java program (MyFirstJavaProgram. java). ...
2.  Type 'javac MyFirstJavaProgram. ...
3.   Now, type ' java MyFirstJavaProgram ' to run your program.
4.    You will be able to see the result printed on the window.
 
Are you here to take over the surface world? Because this tiny ad will stop you!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic