Try deleting the source files, as this wise user has mentioned above.
Unfortunately we do not no the configuration of your system and while trying to install and unistall different versions problems might arise. If I was you I would uninstall everything and start again from the beggining
I already done it nearly 3 times, but it didn't work
but I didn't try compiling, I just ran the java -version
command.
The installation path was the same everytime, but I even checked it.
I already built my Funmora Builder
almost 20%, so I can't do it now
ok, I will try this. Should I download it and run it?
What... I already built my App Builder almost 20%,
anyways for the type of issues I kept many back-ups at online and in my pc
@dora_paz
I have uninstalled the java with this tool and now when I ran the java -version
command then it is still showing the same:
and installed it from here
as @Pradevel said
actually I was building the AI2 sources via buildtools.cmd
, so I think that would be the problem
when I tried separately it worked!
And
2. For this java -version
thing I think I didn't set the _JAVA_OPTION
because one day when I asked @MohamedTamer sir, he said that leave it for the java to set it. (correct me if I am wrong in this)
But wait:
without Java I can't run localhost:8888
Result:
But why are you using tools to un/install Java?
Download the zip file.
Unzip it at a safe place.
Edit environmental variables.
Java is ready to bake classes.
Which .zip
files?
The Java Installation Package.
Sorry, now Oracle provides installer file.
I'm not sure how this branched off into a discussion of the java process, but the original error message was related to not being able to find the git
executable, which the App Inventor build system uses to stamp the build with version information. When developing on Windows, you'll need to do it in a terminal session that contains git, whether that's git-bash, Cygwin, etc. doesn't really matter, but if you can't run git
at the terminal your build won't work. You need this both for downloading some dependencies with git submodule update --init
and for the versioning info.
You must use JDK 8 (Java Development Kit), whether you use OpenJDK or the Oracle version doesn't really matter. The Java Runtime Environment (JRE) is not sufficient. The JRE just runs Java apps, it does not allow you to compile them--that's what the JDK is for. You should be able to run both java -version
and javac -version
at your terminal and get something reasonable back (i.e., no errors). As far as I know, you cannot get the Oracle branded version any more unless you have a support contract with Oracle, so you should install OpenJDK instead.
With the most recent version of the master branch, the issue with whitespaces in the path names on Windows is resolved (thanks @MohamedTamer). If your master branch locally or in your fork is behind the MIT version, you will need to merge upstream before you can build in a folder that contains spaces in the name.
Because I can't get the java -version
and my friend
@Aarush_Kumar said it was a problem with Java
and
@Sashibhusan_Sahoo said that my Java was corrupted, even after reinstalling these many times.
And I thought as it said like this
And like this
I have Git Bash
those are up-to-date
but my version was a 5 commits before one.
but I don't have any whitespaces
in any of my directories.
hmm...
does it change any of my Important files in that dir? because I have already built my App Builder a 20%
Does java -version
and javac -version
need the _JAVA_OPTIONS
variable?
Have you added Google Cloud SDK to path? For example
C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin
Yes, it was automatically set.