0

I can't open javac, but I do the steps from the app. Why?

problems

26th Mar 2017, 12:04 PM
Moritz Böck
Moritz Böck - avatar
16 odpowiedzi
+ 13
@Ace Yes... both missing path and installation throw 'unknown command' if javac is executed by console.
26th Mar 2017, 1:26 PM
Tashi N
Tashi N - avatar
+ 12
@Ace But then console throws an error.
26th Mar 2017, 1:23 PM
Tashi N
Tashi N - avatar
+ 11
Then the .java files should have been successfully compiled to .class by javac. Did you try to start your program (command: java YourMainFile)?
26th Mar 2017, 12:48 PM
Tashi N
Tashi N - avatar
+ 11
I meant to run your program (the class which contains your main method) from console, sry.
26th Mar 2017, 1:19 PM
Tashi N
Tashi N - avatar
+ 10
Could you please post the error message?
26th Mar 2017, 12:17 PM
Tashi N
Tashi N - avatar
+ 1
Their isn't an error message cmd (javac) open for just a second and than the tab get closed...
26th Mar 2017, 12:25 PM
Moritz Böck
Moritz Böck - avatar
+ 1
I don't know, you mean that java Start as a main file? and I can't give cmd commands
26th Mar 2017, 1:17 PM
Moritz Böck
Moritz Böck - avatar
0
Now I have to install it new? and what I had missing in part 2? I need to changing something?
26th Mar 2017, 1:36 PM
Moritz Böck
Moritz Böck - avatar
0
And what is IDE @Ace?
26th Mar 2017, 1:37 PM
Moritz Böck
Moritz Böck - avatar
0
I used notepad++ but that's isn't my problem.. I'll try to install Javascript new and I hope than I can see the mistake thanks for the help!
26th Mar 2017, 1:44 PM
Moritz Böck
Moritz Böck - avatar
0
javac is for java not javascript javac is to compile java sourcecode hence the "c" if it doesnt work check your PATH else redownload jdk
26th Mar 2017, 8:31 PM
Logan New
Logan New - avatar
0
check whether u have installed the app and also check if have installed then your .java file is in that driver as cmd working field might be different it means drive switching u have done or not means u file is in d: drive and u try to compile in c: drive .so u have to switch th drive first of all any then try.
30th Mar 2017, 2:19 AM
U Asish Kumar Patro