JDK 7u10 and BlackBerry WebWorks SDK installation issues - java

For the past few days I have been trying to install the JDK 7u10 which is made available by Oracle. after installing this JDK, I then proceed to install BlackBerry WebWorks SDK but i keep getting he following error message: "JDK 1.6 or higher not installed" what could possibly be the reason for this?

Create enviroment variables JAVA_HOME & JAVA_PATH and point them to 32 bit version JDK bin folder.
on a cmd prompt type: set JA
check if the variables have the right values.
javac -version and java -version should give you the good version, 32 bit!.
check if the enviroment variable PATH has not the location of 64bit path, if it has, correct it,
On the file BlackBerryWebWorksSDK.exe don't forget to enable compatibility with Windows XP (sp3). if you are running win8 or 7

The problems was that JDK needs to be installed as 32-bit, even in a 64-bit architecture.Try this

Is JAVA_HOME properly set? Are you able to run "javac" from the command line? What version of java does "javac -version" report?

Related

Eclipse finds Java from CMD prompt but not from desktop click

I have multiple versions of Java installed on Windows 7 Home Premium 64-bit system. In order to install
Eclipse Java 2018-12
I have had to install the Java 11 JDK from the Oracle website. Despite setting JAVA_HOME and updating PATH in environment variables the only way to install and also run this version of Eclipse was to open a command prompt and
C:>set path=c:\program files\java\jdk11.0.1\bin
and then run Eclipse installer or installed instance.
The problem persists if I reboot my computer.
I want to be able to start eclipse by simply clicking on the desktop icon link.
The error I get when I try to run eclipse from the desktop link is:
Version 1.7.0_79 of the JVM is not suitable for this product. Version 1.8 out greater is required.
My C:\Program Files\Java\
contains folders
jdk1.0.7_79
jdk-11.0.1
jre7
I think I need all of these because I have some programs which I think retire java 7 so I don't think uninstalling java 7 is an option and don't think java 11 would replace it, or should I just get rid of java 7, is that what's causing the problem despite environment variables set correctly?
How can I fix this problem?
Thanks.
Add c:\program files\java\jdk11.0.1\bin to your Windows Environment PATH
The system was running C:\Windows\System32\javaw.exe
I fixed it by adding the Java 11 bin directory at the beginning of the Path environment variable instead of at the end of the string, separated by a semicolon.
First set JAVA_HOME then update path in environmental, refer screenshots attached.

Why am I not able to get javac -version?

i have C:\Program Files\Java\jre1.8.0_102 and C:\Program Files\Java\jre7
and C:\jdk1.8.0_121 and in command prompt , java -version giving java version 1.8.0_102 that is fine. but when I type javac -version , it giving javac.exe not compatible with your windows. But no problem in other systems with same jdk and windows. please do help
javac.exe not compatible with your windows
Sounds like you've downloaded 64 bit JDK into C:\ but you're running 32bit Windows
The JRE does not contain javac, therefore the JDK is the problem
After you get a good version of Java, you'll need to fix your PATH variables
32 bit Windows on which a 32 bit JRE was already installed. You now tried to install a 64 bit JDK on it as well, which doesn't work.
The 32 bit JRE is still there, and as some installers will put java.exe and some others in your Windows installation (windows/system32 for example) they will get picked up instead of the JRE/JDK you just installed, even if you added that one to the system path as well.
That's why you're still seeing a correct response from java -version but not from javac -version, as javac.exe isn't copied there.
Remove the java*.exe from your windows installation, install a 32 bit JDK, set your JAVA_HOME correctly, and add %JAVA_HOME%\bin to your system path.
And oh, best not install a JDK to a place with spaces in the path, some versions don't like that.
Find out you set your environment variable correctly.
set JAVA_HOME=C:\jdk1.8.0_121
and entry to path -> %JAVA_HOME%\bin

Setting Java home enviroment variable in OSX Mavericks

I am having issues with my Java path.
I have installed the latest version of Java 1.7.0_51. When I open the Java control panel it tells me "Your system has the recommended version of Java."
However when I go to terminal and type java -version I get
java version "1.6.0_32"
So after searching around I came across this SO Question which tells me that my Java home environment variable needs to be set.
I then opened the bash_profile file and added the below line to the top of the file, above my Python path info.
export JAVA_HOME=`/usr/libexec/java_home -v 1.7.0_51`
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
NOTE: I have tried this with both -v 1.7.0_51 and -v 1.7
I save the file and recheck in terminal but it is still showing
java version "1.6.0_32"
when I restart Terminal I do however see
Last login: Wed Feb 19 23:32:19 on ttys000
Unable to find any JVMs matching version "1.7".
localhost:/ user$
Note: Unable to find any JVMs matching version "1.7".
So it is trying to look for my 1.7, but just not finding it.
What am I doing wrong?
Check whether there is an old version existed in the path
echo $PATH
Then set the java 1.7 bin directory.
export PATH=/usr/libexec/java_1.7_home/bin:$PATH
Then try to type in "java -version" in terminal to check the version
Ok, I think this must be specific to me. As above the Java control panel was saying that java 7 was installed. Also when i tried
/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version
I would get
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
But no mater what way I installed the JDK it would not work. It just didn't seem to appear anywhere on my machine. I still don't know why, but uninstalling (by simply deleting the 1.6 folder) the existing Java 6 from my machine and once again installing Java 7 JDK eventually fixed it.
Please give the up-votes to #diaz994 above.

Java default version doesnt reflect after PATH change

I am running currently on Java 1.7.0_17 64bit version and I want to launch an app using Java 32 bit version.
I updated PATH variable to point to (C:\Program Files (x86)\Java\jre7\bin) Java 32 bit version. Then did a java -version it still shows the 64bit version.
I gave up and tried to do a java -d32 -jar abc.jar and then it gives me an
java -d32
Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.
Please let me know how can the system refresh the latest Java settings done in the PATH variable.
There is probably a java.exe in your C:\WINDOWS\System32\ folder leftover from the previous installation. Replace it with the one in C:\Program Files (x86)\Java\jre7\bin.

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse

Tried googling but couldn't found the solution.
Using Windows 7 Ultimate 64 bits.
I have java(64 bits) installed here : C:\Program Files (x86)\Java\jre7
Downloaded Android SDK from here Get the Android SDK
I downloaded the 64 bits considering my windows is 64 bits. Was 32 bits required?
Now whenever i run eclipse.exe I get the following error:
A Java Runtime Environment or JDK must be available in order to run Eclipsec. No java virtual machine was found after searching the following location:
C:\Users..\Downloads\adt-bundle-windows=x86_64-3013131030\adt-bundle-windows-x86_64-20131030\eclipse\jre\bin\java.exe
Sorry can't post a screenshot because don't have any reputation as of now here.
So what should I do?
Do I need to install 32 bit Java or download 32 bit SDK ?
PS: Before running Eclipse I have run "SDK Manager" and it installed some necessary tools. Maybe if this helps.
Just Set your environment variable. Goto to Computer properties -> Advance System Setting -> Environment variables -> System Variables -> path and after a semi colon paste the path of your JRE like this C:\Program Files\Java\jre7\bin click on ok.
Open CMD and type java if this command works properly means your path has been set now. just open you eclipse and it will work this time. You can do this through command line too just type set PATH=C:\Program Files\Java\jre1.6.0_03\bin and press enter.
If still it is not working just paste this set PATH=C:\Program Files\Java\jre1.6.0_03\bin in your eclipse.ini file :)
You have a 32-bit Java. "Program Files (x86)" is for 32-bit programs on a 64-bit system. Either install a 64-bit Java and use the download you have, or get the 32-bit download.
You need to use any of the following configurations:
x64 System, x64 JDK, x64 ADT Bundle
x64 System, x86 JDK, x86 ADT Bundle
x86 System, x86 JDK, and ADT Bundle

Categories

Resources