Comments (13)
Could you share your project?
from vscode-java-pack.
from vscode-java-pack.
can anyone help??
from vscode-java-pack.
Can you try to open the Terminal view manually using the menu "View -> Terminal"?
from vscode-java-pack.
-.Clipchamp.mp4
still didn't work.
from vscode-java-pack.
i make a java project and when i run it, the terminal doesn't appear nor anything but when i go to the "run and debug" icon and make a .json file it says that the code is running and when i spam run java the .java file that I'm running appear more than once in the running list but the code never get executed all in all.
regarding the following problem i want to mention some things
the (lib) folder in the project folder doesn't contain anything
2.the code that I'm trying to run is very simple (sout)
3.i have installed an IDE which is IntelliJ IDEA and everything runs smoothly in it so i suppose the problem is not in the JDK
4.i imported a profile from a friend that has everything working and it didn't solve it
i tried to run a python code on visual studio code and it worked, a simple code which is print as well
Extension version: 0.26.0
VS Code version: Code 1.88.0 (5c3e652f63e798a5ac2f31ffd0d863669328dc4c, 2024-04-03T13:26:18.741Z)
OS version: Windows_NT x64 10.0.22631
from vscode-java-pack.
No idea what's wrong. Opening terminal behavior is controlled by VS Code, not by Java extension. Java extension is only responsible for generating the command line and provide it to VS Code, it's VS Code that opens a terminal and runs the given command line. You can change the user setting "java.debug.settings.console": "internalConsole"
, this will use the DEBUG CONSOLE to print the output, but the DEBUG CONSOLE has limitation and doesn't support user input.
from vscode-java-pack.
thanks, also update
i tried to run a java code on a windows 10 virtual box but surprisingly, it still didn't work, i don't know what that information will add, i think it is the way of installation but i install it like everybody.
from vscode-java-pack.
When you launch a program from the Run And Debug View
, the output of the program goes to the Debug Console
view, not the terminal.
Can you verify this?
See https://code.visualstudio.com/docs/java/java-tutorial#_running-and-debugging-your-program
from vscode-java-pack.
it doesn't work not anything work not with debug console nor with terminal...
However, when i open a terminal then type the following:
javac App.java
java App
the code does get executed
but still when i press run java nothing works
from vscode-java-pack.
I found the cause,
It is the language of the computer...
Apparently, java pack doesn't function normally when the windows language is in ARABIC (i said java not vs code because it functions normally on python as i said above), i tried it in a virtual box that has an English version of windows 10 set up and the run java worked normally, so you would suggest that all i have to do is just to set the windows language to English, but no that would not solve it because the windows language is in English the problem is that the windows was set up in Arabic then converted to English so the only brutal solution is to factory reset the laptop which i won't be able to do it so if anyone could help after detecting the problem i would appreciate, an update or something that i do would be helpful...
from vscode-java-pack.
Apparently, java pack doesn't function normally when the windows language is in ARABIC
In your previous description, you saided the terminal is not popped up when launching Java app. I don't understand how it's related to the language of your Windows. Could you check the Java logs via "Java: Open All Log Files"?
from vscode-java-pack.
it's the numerical system
visual studio code doesn't function properly when the numbers that windows use to operate are eastern Arabic numerals which are the following:
١٢٣٤٥٦٧٨٩٠
but functions normally when it's the western Arabic numerals.
anyways i changed it from region from control panel then open visual studio code then change it back to eastern Arabic numerals and it works.
so, if there would be an update for the extension that runs java that will support the eastern numerals or make vs code works properly on eastern that would be very helpful.
from vscode-java-pack.
Related Issues (20)
- Modifying class name and file name are out of sync HOT 1
- The default jump action when clicking java version should be updated HOT 1
- Package's code is not written when adding new java file HOT 1
- Missing link HOT 5
- Bug HOT 1
- Feature Request: Set `default` in `java.configuration.runtimes` to the workspace environment variable JAVA_HOME
- How to specify a module I want to debug in a maven project HOT 3
- Hi, HOT 1
- I have a problem to create maven HOT 1
- Support syntax highlighting for Spring JPA like queries HOT 5
- Bug
- Add "switch to Java / Spring profile" to "Java language server status bar"
- Add "maven:exec" to Maven goals in maven extension
- Investigate javadoc support in VS Code
- can't run java HOT 1
- Bug: Intellisense shows types in packages that are not exported in the module.
- Bug HOT 1
- Library list in project settings won't be refreshed if there are duplicated libraries.
- I try to "Configure Java Runtime", but it's blank page HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-java-pack.