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 Branislav Lazic · January 16, 2015
You are creating class "apples" in "youtube.java" file. It should be either class named Apples (name your classes properly. Name of classes begin with upper cases) in Apples.java file or Youtube class in Youtube.java file.
0 Julio Esteban Asiain Neno · January 16, 2015
But in the video (http://youtu.be/5u8rFbpdvds) Bucky uses lower cases and different names
0 Branislav Lazic · January 16, 2015
Well, Bucky is wrong.
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 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
http://pastebin.com/DP45efkL
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 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 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
This happens http://prntscr.com/5uou6l
  • 1
  • 2

Java / Android Development

107,170 followers
About

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

Links
Moderators
Bucky Roberts Administrator