前言
本来想参考这篇博文IDEA的terminal设置成Linux的终端一样,最终配置成功了。win10装成了ubuntu,
但是进去之后发现提示装jdk之类,我一想算了,这么烦,我还是配置成PowerShell吧,反正我也懂点shell和bat。
idea terminal配置PowerShell
1.idea设置
路径C:WindowsSystem32WindowsPowerShellv1.0powershell.exe
2.测试javap -c命令
D:mycodegithublearncodejavabase argetclassescomlearnjavajavabasegenericclassprogramm> javap -c .Apple.class
Compiled from "Apple.java"
public class com.learn.java.javabase.generic.classprogramm.Apple extends com.learn.java.javabase.generic.classprogramm.Fruit {
java.lang.String name;
java.lang.String other;
public java.lang.String getName();
Code:
0: aload_0
1: getfield #1 // Field name:Ljava/lang/String;
4: areturn
public java.lang.String getOther();
Code:
0: aload_0
1: getfield #2 // Field other:Ljava/lang/String;
4: areturn
public void setName(java.lang.String);
Code:
0: aload_0
1: aload_1
2: putfield #1 // Field name:Ljava/lang/String;