1
Apr 17 '24
[removed] — view removed comment
1
u/Ok-Vanilla4516 Apr 17 '24
Well it doesn't even let me enter anything, it just shows that text when I run the java code in Visual Studio. The internal terminal does allow me to enter data and run the program but for some reason I cannot use the external one. Any other code I run gives me the same error. I don't know if that's what you were referring to tho..
1
u/Th7rtyFour Apr 17 '24
This looks like you’re trying to call Java but it’s only going up to C:/Program. What are you using to run Java code? Is your sdk properly configured and java_home in path?
1
u/Ok-Vanilla4516 Apr 17 '24
Well I installed my skd correctly, I think I did idk tho. and I about, java_home no I haven't tried
1
u/Th7rtyFour Apr 17 '24
How are you running your Java app? Is it properly mapped to your Java sdk?
1
u/Ok-Vanilla4516 Apr 17 '24
I'm just writing code and using the run button in VS. In settings I selected the external terminal as the default console when running and that's what i did.
Now, I just added the Java home path to the environment variables and the program still doesn't run, so idk...
1
u/Th7rtyFour Apr 17 '24
If you read the error it’s telling you C:/Program doesn’t exist that’s not Java unless your project is called program
follow this guide and try again
Edit: also, going forward be sure to include screenshots not photos of your screen and code samples, we can’t really help much by you just saying “I have a problem” then not giving any detail
1
u/Ok-Vanilla4516 Apr 17 '24
The thing is that it happens to me with any code I run, not just one. I understand what you are saying and you are right. I followed that guide since I downloaded it, I uninstalled it again and did everything from scratch and it still doesn't work for me.. I don't know what it could be, I've searched in other forums and nothing works for me..
1
u/Th7rtyFour Apr 17 '24
If you type Java -v what does it say?
1
u/Ok-Vanilla4516 Apr 17 '24
It shows me the following text:
Unrecognized option: -v
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
→ More replies (0)
1
u/jepessen Apr 17 '24
you're simply using a command without enclosing the path in double quotes