I'm trying to install the Android Studio on my Windows 7 notebook, but even when I filled the path with the JDK, occurs the following error:
I already set the environment variables JAVA_HOME, PATH, reboot the notebook, but still have problem. I'm using the "android-studio-bundle-141.2456560-windows" version and also the "jdk-7u79-windows-x64".
Could you please, help with this issue?
Have you tried to run java.exe -version in a terminal, if the jdk is installed it should return something like:
java version "1.8.0_72"
Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)
if not, you might want to reinstall it and reset the path.
What you might also want to do, is go to the jdk location and make sure it contains a directory named bin and see if it has the java.exe file in it.
In this link Android Studio ZIP, I did the download for windows after unzip all the file, I started execute the "studio.exe", that is inside the bin folder.
Thanks everyone for the help.
I downloaded Android Studio for windows, then I unzipped all the file. I started executing the "studio.exe", that is inside the bin folder. It worked.
Thanks everyone for the help.
#Victor W. Vieira this works fine for me. On Windows Professional x64-bit system.
Related
I am using eclipse for a coding course at school, and I am required to install Violet UML Editor http://alexdp.free.fr/violetumleditor/page.php to create PDF of classes.
Anyway, I downloaded a .jar file. My mac doesn't like that it's from an unverified developer so I must manually allow it to open in system preferences. The .jar opens to the loading tab but it wont open the program.
'''Javac -version''' in terminal says javac 16.02. As far as I know, JDK holds JRE which I need to run Violet. To be safe I installed JRE from Oracle which was a JDK 8 file but it didn't work so I just deleted it.
UPDATE: Using terminal and entering '''java -jar violetumleditor-3.0.0.jar''' I get the error code
Error: Unable to access jarfile violetumleditor-3.0.0.jar
the .jar is located on my desktop, it should be found
Also yes I did a fresh 3.0 version install to try and the same thing.
UPDATE 2:
java -version gives
java version "16.0.2" 2021-07-20
Java(TM) SE Runtime Environment (build 16.0.2+7-67)
Java HotSpot(TM) 64-Bit Server VM (build 16.0.2+7-67, mixed mode, sharing)
Thinking it's a permission with accessing desktop issue.
There is a bug open for this:
https://sourceforge.net/p/violet/bugs/69/
I personally don't think it would be fixed anytime soon.
I can recommend two alternative tools such as:
https://www.visual-paradigm.com/solution/uml/uml-tool-for-mac/
https://gitmind.com
I can't find the directory in which to set up Java as my project JDK in IntelliJ. I tried pointing it to /usr/java/java[version-number] but IntelliJ said that it was an invalid directory. (I don't remember exactly what the folder was called, I just remember it was Java 8.)
I did some googling and found out that it may be because it was corrupted, and they recommended wiping it and doing a reinstall... so I deleted the java[version-number] folder in /usr/java and attempted to do a reinstall by downloading the jdk rpm file from Oracle's website, but apparently I still have the 1.8.0 JDK installed?
When I type in java -version into terminal, I get the following:
openjdk version "1.8.0_102"
OpenJDK Runtime Environment (build 1.8.0_102-b14)
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)
I'm not sure where to go from here.
For me the problem was different. I installed IntelliJ's flatpack version of the IDE.
flatpack has restrictions to use the file system.
These directories are blacklisted:
/lib, /lib32, /lib64, /bin, /sbin, /usr, /boot, /root, /tmp, /etc, /app, /run, /proc, /sys, /dev, /var
Exceptions from the blacklist: /run/media
These directories are mounted under /var/run/host: /etc, /usr
So you have to use path something like /var/run/host/usr/lib/jvm/java-1.8.0-openjdk-amd64.
I actually downloaded the IntelliJ Toolbox and installed it from there.
try whereis java maybe it'll show up in your terminal
I am new to Java and have some basic problem. Would appreciate your help guys.
I try to run a HelloWorld program but having an error:
"Error: Could not find or load main class HelloWorld".
I noticed that Eclipse saves the project in parallel virtual store directory and not the one I mentioned.
When I manually move the project to Eclipse_Workspace directory it works just fine. What should I do for Eclipse to save the files correctly?!
If needed:
I downloaded JDK 1.8.0_51 for Win 32 and Eclipse IDE for Java developers (Luna Service Release 1 (4.4.1)). Win7 32 Ultimate.
I added a Path value in System Variables -
C:\Program Files\Java\jdk1.8.0_51\bin
Default Resource Path in Eclipse is:
C:\Program Files\Java\Eclipse_Workspace
Thanks
VladBio,
Make sure the following environment variables set correctly:
JAVA_HOME = jdk root folder (C:\Program Files\Java\jdk1.8.0_51)
Path = jdk bin folder (C:\Program Files\Java\jdk1.8.0_51\bin)
To test this go into your cmd (Start -> run -> cmd) and type:
java -version
C:>java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
If you see the correct version then the issue is in Eclipse.
In Eclipse you can check your JDK settings in Windows -> Preferences -> Installed JREs. Your correct JDK should be listed there.
On Eclipse you can also have project specific java version.
Right click on your project -> properties. On Library tab you should see something like JRE System Library [jdk1.8.0_45]
Check here for a more detailed answer of what could be going wrong.
I Hope this helps.
Thanks a lot.
I suppose I figured this out.
It was a problem in eclipse - it couldnt automatically make a changes in java directory because any change there is allowed only with admin approval.
I changed the path in eclipse to a folder on my desktop. It solved out the problem.
BTW I tried what you said and the output in cmd was identical to yours.
Thanks again
Im getting this on one of my macs when I try to compile even "hello world"
Error:Execution failed for task ':app:compileDebugJava'.
Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.
On my other mac, I dont have any problems. The setup is the same as far as I can tell. It's just that for some reason, on one machine, Android Studio / Gradle pops this error message.
I have set
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home
running /usr/libexec/java_home gives:
/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home
running javac -version gives :
javac 1.7.0_60-ea
running java -version gives:
java version "1.7.0_60-ea"
Java(TM) SE Runtime Environment (build 1.7.0_60-ea-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
In Android Studio I have set file->other settings->default project settings-> JDK location to the JDK location listed above.
I've run out of options, why am I still getting this message?
thanks for any help, Ive wasted hours on this already.
My findings from an identical error proved to be due to a clash of Java Jar files that were not related with the Android studio install.
Specifically the tools.jar and auskey.jar under /Library/Java/Extensions
More info here
Rich_LogicBox solution also worked for me.
I've struggled for weeks with different java versions making no difference.
When I removed the jar files placed in /Library/Java/Extensions by auskey, the Android Studio error disappeared.
One possible solution is :
The android studio needs the jdk 1.6+ by default, but your JDK is 1.7.
You can show the package content of the Android Studioin Applications folder, and the open the info.plist, change the JVM version to your JDK's version, which is 1.7* here.
(you see, my JDK version is 1.8 in my computer)
I have to start by saying that I have just switched to Ubuntu from Windows and I am new to Linux in general. Coming from Windows, I really am not familiar with how exactly the permissions work, the Linux file system, where I am able to create folders that I can use without the sudo command etc.
I use eclipse on a daily basis for android development and other simple java swing projects. I was able to download and extract the latest available version of eclipse (kepler) to this path: /opt/eclipse. Inside this directory is the eclipse executable and other eclipse related files.
I also installed the JDK and verified with the java -version command. It says:
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
I am running on a 64 bit CPU architecture so both programs are the 64 bit version.
Now, my problem is that if I open eclipse from the Unity dash or from the file explorer, it give me this error:
However if I run sudo eclipse in the terminal, everything runs just fine as long as I do it as the super user. I have a hunch that the JDK is installed in a folder that is restricted to normal users and only works if I run the sudo command but this is just a hunch. As I said, I am new to Linux and I am not really sure what I am doing wrong here, I am learning as I go. I need a good explanation as to how to make it start from the Unity dock without the sudo command. Thanks in advance!
You'll want to use the chmod command from the terminal to change the permissions on the Java folder. See this link for more information:
http://www.linux.org/threads/file-permissions-chmod.4094/
Well after running the which java cmd, I noticed that the path to the JDK from the eclipse.ini file was not pointing to the correct location. I fixed the path and now it works. I don't know how the sudo cmd overrides the eclipse.ini path to JDK but well, it works