티스토리 뷰
반응형
Recently one of my students was getting this error – I thought I would put it here in case anyone else could be benefited:
Issue:
On clicking uiautomatorviewerbat file, i am getting this error in cmd
-Djava.ext.dirs=..\lib\x86_64;..\lib is not supported. Use -classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Press any key to continue . . .
Solution:
This issue is caused by incompatible Java version. If you are getting this issue, please uninstall JDK 9 and install JDK 8. This will fix your issue.
JDK 9 삭제 방법
Windows 10 - Uninstall Programs
- Click Start
- Select Settings
- Select System
- Select Apps & features
- Select the program to uninstall and then click its Uninstall button.
- Respond to the prompts to complete the uninstall
Windows 8 - Uninstall Programs
- From the Start screen, enter Control Panel in the Search box. Select the Control Panel.
- When the Control Panel appears, choose Uninstall a Program from the Programs category.
- Select the program to uninstall, and then right-click and select Uninstall or you can click the Uninstall option located at the top of the programs list.
- Click Yes to confirm the program uninstall.
Windows 7 and Vista - Uninstall Programs
- Click Start
- Select Control Panel
- Select Programs
- Click Programs and Features
- Select the program you want to uninstall by clicking on it, and then click the Uninstall button.
You may need administrator privileges to remove programs.
Windows XP - Uninstall Programs
- Click Start
- Select Control Panel
- Click the Add/Remove Programs control panel icon
- The Add/Remove control panel displays a list of software on your system, including any Java software products that are on your computer. Select any that you want to uninstall by clicking on it, and then click the Remove button.
반응형
'개발 > 안드로이드' 카테고리의 다른 글
[android / 안드로이드] SharedPreferences 기본 값 설정하기 (0) | 2018.08.28 |
---|---|
[안드로이드 / android] EditText & AppCompatEditText (0) | 2018.07.19 |
[안드로이드 / android] APK Version, App Version 설정 및 값 받아오기 (0) | 2018.07.16 |
[안드로이드 / android] Custom AppBar & left margin 지우기 (0) | 2018.07.13 |
[안드로이드 / android] compileSdkVersion vs minSdkVersion vs targetSdkVersion (0) | 2018.07.12 |
댓글
공지사항
최근에 올라온 글