Having problems with running java in cmd

+1 Julio Esteban Asiain Neno · January 15, 2015
I was following the second video of the java(beginner) tutorial and I have this problem. http://i.imgur.com/ymTxoAA.png
Help D:

Post a Reply

Replies

- page 1
Oldest  Newest  Rating
0 Gabriel Levesque · January 20, 2015
Can you provide the same .class compiled java file please?

If it works on my computer, I would get to the conclusion that your java is wrongly installed, or
that you have multiple java instance in your PATH.

I suggest to remove every java installation or possible java trace on your computer.
Then, reinstall only one version of java.

You seems to have a "default" java installation that came with your computer, since theres a java.exe in C:\Windows\System32.
That could be the conflict.
0 Julio Esteban Asiain Neno · January 20, 2015
This happens http://prntscr.com/5uou6l
0 Gabriel Levesque · January 20, 2015
Open a cmd, go to your program's location and run (INcluding the quotes):
(make sure there's a space between the last quote and the word: apples)

"C:\Program Files\Java\jdk1.7.0_71\bin\java.exe" apples
0 Julio Esteban Asiain Neno · January 20, 2015
I've tried with these installers: http://prntscr.com/5umy8x
Also, I renamed the java.exe but it didn't help
0 Gabriel Levesque · January 19, 2015
What have you used to install Java, the Java installer?

Go in C:\Windows\system32
search for a java.exe

If you see that there's indeed a java.exe, rename it to something else and
retry to run your compiled java program.
0 Julio Esteban Asiain Neno · January 19, 2015
http://pastebin.com/DP45efkL
0 Gabriel Levesque · January 19, 2015
Hi, please open a command line, enter the following command: (Without the quotes)

"echo %path% > path.txt"

Go in the cmd's current directory, it should contain a file called: path.txt
Post the content of that file using Pastebin or whatever you choose.
0 Julio Esteban Asiain Neno · January 19, 2015
Still not working :(, tried with jdk 1.7 and 1.8, both in x64 and x86 (my system is x64).
0 Branislav Lazic · January 16, 2015
Well, Bucky is wrong.
0 Julio Esteban Asiain Neno · January 16, 2015
But in the video (http://youtu.be/5u8rFbpdvds) Bucky uses lower cases and different names
  • 1
  • 2

Java / Android Development

107,147 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator