Error - Java Runtime Environment 6 version 1.6.0 - java

I have installed Java Runtime Environment 6 version 1.6.0 (jre-6-windows-i586.exe) on Windows 7 Pro 64 bits.
When I open the command line and type java -version, i'm getting the following error message:
The procedure entry point _wcstoui64 could not be located in the dynamic link library msvcrt.dll
I click the button OK, then I got the following error message:
The procedure entry point strncpy_s could not be located in the dynamic link library msvcrt.dll
How to fix these 2 errors messages ?
Note:
I'm getting these error messages only on my computer at work.
However, I installed the same version JRE on my desktop at home (Windows 7 Pro 64 bits) and it's working fine.

Actually, jre-6-windows-i586.exe is the 32-bits version.
Installing the 64-bits version (jdk-6-windows-x64.exe) may solve your problem.

Your original msvcrt.dll was propably replaced by a 3rd party software (new installed software or malware/virus).
You can try to restore msvcrt.dll by either opening a command prompt as administrator and run sfc /scannow or by restoring a previous system state.
Other hints can be found here.

Related

Cannot install Ecplise on Mac:A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse [duplicate]

I have formatted my Mac due to some storage issues. Before this, I used Eclipse in a proper way. Now i have installed the JDK
Then, i have installed Java
Until now everything seems to be correct but when I open the Eclipse installer...
What can I do to fix this? I need to work with this the soon as possible.
Thanks
Eclipse on macOS will not start with Java 14 installed, this is being tracked in Eclipse bug 561273.
Installing Java 8 as well does not help. You need to remove the Java 14 install. You could use the Java 13.0.2 release instead.
Eclipse have determined that the root cause of this issue is a change in Java 14 which is described in this bug report JDK-8238225. The fix for this should be in Java 14.0.1
Update: Eclipse runs fine with Oracle Java 14.0.1 so the issue has been fixed.
I also asked this question which was closed, that's why I answer what I have found out: Eclipse will not install on Mac OS Catalina 10.15.4, saying the above error message
Failed to create the Java Virtual Machine.
Deinstalling jdk and install an older one wouldn't help on its own because Eclipse is refusing to install in the first place (as mentioned above). What I have done:
i´ve installed an JDK with boost (you can try several, mine worked with Version 13)
I edited the installer:
Download the dmg file
convert the dmg-file with "hdiutil convert /dev/disk3s1 -format UDRW -o devimage"
mount the converted dmg-file with: "hdiutil attach -owners on devimage.dmg -shadow"
Edit the /Volumes/Eclipse/Eclipse.app/Contents/Info.plist: there is a section which is commented and there you can try the jdk version. You have to give the full path to the java executable, for example:
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home/bin/java</string>
Then my eclipse started from the (already) mounted Eclipse image without complaining
I had the same issue myself a while back. In your Eclipsepedia it provided an example of what the eclipse.ini file looks like when your trying to specify a JVM. So just change the eclipse.ini file and then make sure that you have all of the correct documents in that path to match the example.

Java JDK issue or any thing else

I have working to setup an project on local. I have used Virtual Box because VMWare Fusion is available for MAC and I am working on windows. During the process when I run “vagrant up --provider=virtualbox” commend then JDK 7 error was displayed error screenshot is given below
http://prntscr.com/m7jp7e
After that I have installed “Oracle JDK 8” on /usr/lib/jvm/ path manually on virtual box Linux and then run vagrant up command then again JDK 8 issue is displayed.
I have also changed the path of java_home and jdk_version in “coldfusion-server.rb” file.
Please have a look error screenshot below.
Error Screenshot: https://www.screencast.com/t/9OQC3iLold2r
Mac user here! Highly recommend using CommandBox to run any version of Adobe ColdFusion on a Mac. Much easier to deal with than VirtualBox or manual installation. The only issues you might encounter is with older versions of ACF that run on JRun showing errors in CF Admin related to JRun specific references. Nothing to really worry about.
You can change the JDK and other settings used by CommendBox using server.json:
{
"name":"ACF Application",
"jvm":{
"javaHome":"/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home",
"heapSize":2048,
"minHeapSize":1024,
"args":"-XX:MaxPermSize=1024m"
},
"app":{
"cfengine":"adobe#9.0.2+282541",
"serverHomeDirectory":"serverHome"
}
}
These are some of the settings I have to run a legacy ACF 9 on my Mac using an older JDK with non-default memory settings. See Configuring Your Server for more info.

Android SDK: Cannot find Java, version of the file is not compatible

I've installed Android standalone tools on Windows 7 32-bit, but when I am trying to run the android utility on the command line, the following error report is shown:
No suitable Java found. In order to properly use the ADT, you need a version of JDK installed (...)
I have Java properly installed in C:\Program Files\Java\JDK, and my JAVA_HOME is set to this path. (C:\Progra~1 - for ANT), PATH includes C:\Program Files\Java\JDK )
I have read on here in other posts that android utility simply starts find_java.exe, so when I start the program directly, I had this error:
The version of this file is not compatible with the version of Windows
you're running. Check your computer's system information to see whether
you need an x86 (32-bit) or x64 (64-bit) version of the program, and then
contact the software publisher.
It just seems like the SDK manager installs wrong (64-bit? I am not an expert on that, but the error seems like that) of Java finder for some reason.
Has anyone encountered a similar kind of error? What could some reasons for that be?
Thank you in advance

Android Studio failed to load JVM on Mac OSX (Mavericks)

I am trying to setup Android Studio on my Mac. It is running OSX 10.9.1 Mavericks. I have installed the latest JDK (at the time of writing 1.7 update 45), and I installed Android Studio. I use Java 7 because I have some Java applications I have to run and they require 1.7. I have not installed Java 1.6, because it is ancient and old. Launching Android Studio from any launcher does literally nothing. Activity Manager never shows it running. I do not want to install Java 1.6.
I did some work and tried to run the executable via command line through the package contents, and for both executables, I get these messages:
I am unsure what I am supposed to do to fix this error. I'm not very adept on a Mac (still somewhat new to it, and its confusing to do power user stuff on this) so if anyone can help me figure it out that'd be great. I'm on the 2013 Macbook Air with plenty of resources for this to run.
Update: This also applies to Yosemite, El Capitan, and all the other versions of OSX that can run Android Studio.
Update 12/11/2014
As of Android Studio 1.0 RC3 you can follow this set of directions to make it work.
I figured it out. You have to edit the android studio's Info.plist file in the package so it uses 1.7. I don't get why Android Studio insists we install and use an outdated, vulnerable version of Java.
Full resolution: http://i.stack.imgur.com/yyYaG.png
To open the package you need to find the Android Studio.app file in the Applications folder and right click it > Show Package Contents.
Edit the plist (I think you might need to be root) and change JVMVersion from 1.6* to 1.7* (or 1.8*, or whatever JDK major version you have). I don't get why that made a difference since my original output said it was using 1.7 anyways.
This fix seems to apply to all of IntelliJ's IDEs (I've seen it on PyCharm as well), though other ones seem to support newer versions of java natively.
As answered by hasternet # Android Studio was unable to find a valid Jvm (Related to MAC OS)
For quick and dirty solution, Follow the answer by Mgamerz; open Android Studio in Finder (CTRL+Click > Show Package Contests > Contents > info.plist) and edit Key JVMOptions>JVMVersion from "1.6*" to "1.6+"
Recommended method as discovered by Antonio Jose is to edit environment variables in MacOS (messing with info.plist is not recommended)
either at program launch (opening the Studio through terminal rather than the icon)
$ export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk
$ open /Applications/Android\ Studio.app
or setting up the environment through AppleScript at every MacOS startup:
do shell script "launchctl setenv STUDIO_JDK /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk"
do shell script "launchctl setenv STUDIO_PROPERTIES /Users/username/Library/Preferences/AndroidStudio/idea.properties"
do shell script "launchctl setenv STUDIO_VM_OPTIONS /Users/username/Library/Preferences/AndroidStudio/studio.vmoptions"
(Remember to save the script as Application. Antonio Jose managed with just the first line - AFAIK you can use .properties and .vmoptions to set up additional settings.)
Official instructions: http://tools.android.com/tech-docs/configuration/osx-jdk
(The reason why Android Studio want's to run off of JRE 1.6 is because it apparently makes the fonts look better - feel free to go through that "official" route and install JRE 1.6 # http://support.apple.com/kb/DL1572 - you can then set the JDK to 1.8 in the SDK Location settings - local.properties)
mgamerz is right - The release notes give a much better solution for rc3 and onwards - theres a idea.properties file
(or environment variable)
~/Library/Preferences/AndroidStudio/idea.properties
it also shows what environment variables you can use to set things like the jdk
export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk
ref : http://tools.android.com/recent/androidstudio1rc3_releasecandidate3released
I did below command on Mac Terminal to fix this problem, please make sure java version and path.
$java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
$ export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk
$ open /Applications/Android\ Studio.app
Hey Friends I just Figured it out a simple way to fix this for Mac users.
Open Terminal and type this -> java -version and hit enter.
Output will be something like this:
Now check your Java Version. My Java version is 1.8
So now we need to Open Contents of our Android App.
For that right click the Android.app and then select Show Contents
Like this
Now there will be Content folder, Open that Folder and there you will find Info.plist
Open this info.plist
And you will see this.
In this expand the JVM
Here you will see the JVM version showing 1.6* but our jvm version is 1.8 (for example my jvm version is 1.8)
So we need to change this number according to our jvm version, so i changed it to version 1.8*
Then click save. And you are done.
Now you will see setup wizard running
And you are ready to start your first android programming app.
Here is the Whole Docx file for Android Studio Setup in Mac X
LINK: https://www.dropbox.com/s/9jwjebn5hgydyll/Android%20Studio%20Setup%20on%20Mac.docx?dl=0
I found that downloading an extra Java bundle from Apple fixed the issue.
If you search for this problem then I found the second link was to a blog having exactly this problem, all credit goes to him here
I know that posting links isn't an answer but as you can see from the resolution you need to make sure you have an up to date version of Java and also the Java bundle from Apple, for this reason I have also included the searches needed to get to these websites.
Here is where to download the latest version of Java
If this link is broken then searching "java latest version" return it at the top of the Google list
Here is where to download the Apple Bundle
If this link is broken then searching "Java for OS X 2014-001" returns it at the top of the Google list
For me trying to solve this problem it appears that initially it was an issue that required a work around and then Apple released an official work around download meaning that fiddling in plists is not necessary any more.

Can't run my project in eclipse because java force closes

I hope this is more worded to be on topic because me not having the ability to code because of a java issue is off topic apparently.
When I try to run my project in eclipse. Eclipse just sais at the bottom with no stack trace. If I compile the jar file and run it with javaw it does nothing. If I run it with java it brings up the java(tm) platform has stopped working.
What I have tried:
Changing association of .jar to use java and javaw
tried uninstalling java and reinstalling
installing windows updates
restarting my computer
cleaned registry
running it in command prompt (just pulls up a window saying "Java(tm) platform se binary has stopped working." There is no stacktrace inside the prompt either.)
scanned for any malware/viruses
using the "fix and restore windows 8 option"
My system:
Windows 8 :/
java 7 latest 64 bit Update 13
java SE dev kit 7 Update 13 (was happening before I installed it)
16 gigs of ram
I can give you more info if need be.
Jars work on my other computer just fine.
edit: Still no luck. 8 out of 8 places I asked for help I got down voted. Looks like im not developing anymore.... Thanks.
Well, there is a known bug with this message, the workaround should be to disable d3d acceleration by adding this as a VM argument: -Dsun.java2d.d3d=false

Categories