可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
I just wasted one morning trying to get SQL developer to work on my current setup:
- OS: Windows 8.1 virtual machine running on mac via Parallels.
- No oracle client or instant client installed
- No Java installed
The reproducible steps are
- I downloaded SQL Developer for Windows with JDK (all 64-bit) and unzipped it to C:/Program Files/.
- I double clicked on C:/Program Files/sqldeveloper/sqldeveloper.exe
I get the following message:
Unable to launch the Java Virtual Machine
Located at path:
C:/Program Files/sqldeveloper/jdk/jre/bin/server/jvm.dll
Can someone please help me? I also tried first installing Java 1.8 (64 bit) and then the SQL developer version without Java. This doesn't work either. When I select the location of the JDK home, it also sent one error message saying that it couldn't find any JVMs where I said. To add insult to injury, every time I follow this procedure, the Panda antivirus tells me that sqldeveloper is infected, deletes the file and encourages me to restart.
Can someone please help me? I would mostly appreciate.
Thank you very much in advance
回答1:
I had the same problem and solved it by copying the MSVCR100.dll
file from sqldeveloper\jdk\jre\bin
to the sqldeveloper\sqldeveloper\bin
folder.
Credit goes to Erik Anderson from SQL Developer failed to start
回答2:
Create directory bin
in
D:\sqldeveloper\jdk\
Copy
msvcr100.dll
from
D:\sqldeveloper\jdk\jre\bin
to
D:\sqldeveloper\jdk\bin
回答3:
If folder sqldeveloper/jdk
doesn't contain folder bin
, you can copy folder bin
from folder sqldeveloper/jdk/jre
into sqldeveloper/jdk
.
回答4:
Follow these steps:
- Go to directory where SQL Developer is installed.
- Open the
/bin
directory. - Open
sqldeveloper.conf
in any editor to edit. - Remove the complete line starting with "
SetJavaHome
" - Save and close the file
- Start SQL Developer again.
- Provide the full path for
java.exe
on prompt.
回答5:
I run into the same error message when trying to install SQL Developer from "Windows 64-bit with JDK 8 included" zip file in my Windows 10 Enterprise.
Launching the most recent SQL Developer version 4.1.3 in Windows 10 shows an error:
Unable to launch the Java Virtual Machine Located at path: C:\Users\<USER>\Downloads\sqldeveloper-4.1.3.20.78-x64\sqldeveloper\jdk\jre\bin\server\jvm.dll
The path exists and is valid.
The same zip file works on Windows 7 Professional.
The problem was a missing msvcr100.dll
.
I simply copied C:\Program Files\Oracle\VirtualBox\msvrc100.dll
to C:\Users\<USER>\Downloads\sqldeveloper-4.1.3.20.78-x64\sqldeveloper\sqldeveloper\bin\
and SQL Developer started to work.
The details can be found from Issue running SQL Developer x64 4.1.3 with JDK.
Funny that Oracle VirtualBox team can include the dll into the installation package but Oracle SQL Developer team can't.
回答6:
This is because sqldeveloper.conf has an entry for the java home being used
look at this solution
回答7:
Create directory "bin" in
D:\sqldeveloper\jdk\ Copy
msvcr100.dll from
D:\sqldeveloper\jdk\jre\bin to
D:\sqldeveloper\jdk\bin
回答8:
This looks like you might not have enough memory allocated to your Windows VM. If the JVM is configured to use more (maximum) memory than is available then you'll get this sort of error message.
You can read more about SQL Developer's memory at (that) Jeff Smith's blog.
The default settings still seem to be -Xms128m -Xmx800m
. I can generate a similar error by setting -Xmx to be large than the physical RAM in my (physical) PC. So with the default settings, you will have problems if you don't have 800m of memory allocated to Windows. That doesn't seem like much, but it seems to be in the recommended window based on this knowledgebase article.
While you could attempt to reduce the JVM requirements in your product.conf
file that will likely lead to other issues later, if it works at all. So increase your Windows VM memory allocation, reboot, and try to launch SQL Developer again.
回答9:
I have followed the steps and it worked just fine.
1) Open the file present at : \sqldeveloper-3.2.20.09.87\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf and delete the line with setJavaHome xxx .
2) Click on Sqldeveloper.exe now and browse for the java.exe present in \sqldeveloper-3.2.20.09.87\sqldeveloper\jdk\jre\bin
3) This should launch SqlDeveloper now.
Thanks.
回答10:
I know that people may frown on a youtube example but this worked for me and I was getting the same issue https://www.youtube.com/watch?v=ex1dyu0Px8U
It will direct you to add the correct Environmental Variables for the JDK.
System Properties>Advanced>Environment Variables>Path> \sqldeveloper\jdk\bin AND \sqldeveloper\jdk\bin\server