Well, I am using IntelliJ
to develop a project. I put some of my .java
files in the folder src/model/
. I have to begin with package src.model;
, in Ubuntu , in order to avoid error. While in windows I have to begin with package model;
.
Does anyone know why this happens and how can I avoid changing my code when I switch between the two platforms ?
很可能您的内容根目录在 Ubuntu 中设置为 [something]/src,请参阅此处修复它。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.