[Mac Pit] The solution to the idea that IDEA cannot be opened in the Mac - I once modified idea.vmoptions because I wanted to crack it


reason

The plug-in that was cracked before was placed in a place other than the installation directory, and the idea.vmoptions file was changed

When you can open the idea, you can directly change this file in the idea, such as changing the default use of memory space, which can improve the experience of running code

At that time, the -javaagent parameter was added and pointed to the address of the plug-in

Then there was this problem - there was no response at all when opening the idea


try

Right click on the idea in the application, "Show Package Contents"
insert image description here

Run the idea script,
insert image description here
you can see a prompt that there is an error running the jar package or the jar package cannot be found

If this jar package points to the jar package of your crack path, then this is probably the problem


tried method

  • Delete the jar package in the target directory
  • Delete idea and reinstall
  • Download the new required jar package and put it in the bin directory

solution

Delete the configuration for cracking the line in idea.vmoptions

Remember to use the terminal to find it, otherwise you will not find this file at all

sudo su
#输入密码

cd /Users/用户名/Library/Application\ Support/JetBrains/你的idea版本/
#这一行没有写错反斜杠和空格,不加的话找不到

vi idea.vmoptions 
#这下就找到了这个文件了,把突兀的java agent配置删掉

I’m still not familiar with MAC’s file management, and I can’t rely too much on finder’s global search. To find many things, I still need to go to the terminal

Guess you like

Origin blog.csdn.net/qq_43175006/article/details/125203312