在linux下 java编译 中的.和~有什么区别
zhy@ccdev:~/com/cc/game$javac-classpath~Guessgame.javazhy@ccdev:~/com/cc/game$java-cl...
zhy@ccdev:~/com/cc/game$ javac -classpath ~ Guessgame.java
zhy@ccdev:~/com/cc/game$ java -classpath ~ com.cc.game.Guessgame
zhy@ccdev:~/com/cc/game$ javac -classpath . Guessgame.java
zhy@ccdev:~/com/cc/game$ java -classpath ~ com.cc.game.Guessgame
zhy@ccdev:~/com/cc/game$ javac -classpath . Guessgame.java
zhy@ccdev:~/com/cc/game$ java -classpath . Guessgame 这样运行怎么就着不到main呢
zhy@ccdev:~/com/cc/game$ javac -classpath . Guessgame.java
zhy@ccdev:~/com/cc/game$ java -classpath ~ Guessgame 这样运行也着不到main呢
我想知道下面2个的错误区别 展开
zhy@ccdev:~/com/cc/game$ java -classpath ~ com.cc.game.Guessgame
zhy@ccdev:~/com/cc/game$ javac -classpath . Guessgame.java
zhy@ccdev:~/com/cc/game$ java -classpath ~ com.cc.game.Guessgame
zhy@ccdev:~/com/cc/game$ javac -classpath . Guessgame.java
zhy@ccdev:~/com/cc/game$ java -classpath . Guessgame 这样运行怎么就着不到main呢
zhy@ccdev:~/com/cc/game$ javac -classpath . Guessgame.java
zhy@ccdev:~/com/cc/game$ java -classpath ~ Guessgame 这样运行也着不到main呢
我想知道下面2个的错误区别 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询