In Idee 2024.1.4 kann eine existierende Klasse nicht gefunden werdenJava

Java-Forum
Anonymous
 In Idee 2024.1.4 kann eine existierende Klasse nicht gefunden werden

Post by Anonymous »

Ein über POM eingeführter Glas ist auch in der externen Bibliothek zu sehen. < /p>

com.formdev
flatlaf-extras
3.5.2



com.formdev
flatlaf-intellij-themes
3.5.2


import com.master.frank.projects.ascatch.Application;
import com.master.frank.projects.ascatch.ui.Init;
import com.master.frank.projects.ascatch.ui.component.TopMenuBar;
import com.master.frank.projects.ascatch.ui.form.LoadingForm;
import com.master.frank.projects.ascatch.ui.form.MainWindow;
import com.master.frank.projects.ascatch.ui.listener.FrameListener;
import com.master.frank.projects.ascatch.util.ComponentUtil;
import com.master.frank.projects.ascatch.util.SystemUtil;
import com.master.frank.projects.ascatch.util.UpgradeUtil;
import com.formdev.flatlaf.extras.FlatSVGUtils;
***import com.formdev.flatlaf.util.SystemInfo;* //This line shows a prompt indicating that the referenced class cannot be found in IDEA 2024.**
import com.master.frank.projects.ascatch.ui.UiConsts;

import javax.swing.*;
import java.awt.*;

/**
* Main Frame
*
* @author
* @since 2024/12/28.
*/
public class MainFrame extends JFrame {
private JPanel loadingPanel;
public void beforeLogin() {
this.setName(UiConsts.APP_NAME);
this.setTitle(UiConsts.APP_NAME);
// FrameUtil.setFrameIcon(this);
setIconImages(FlatSVGUtils.createWindowIconImages("/icons/asyun.svg"));
TopMenuBar topMenuBar = TopMenuBar.getInstance();
topMenuBar.init();
setJMenuBar(topMenuBar);
ComponentUtil.setPreferSizeAndLocateToCenter(this, 0.6, 0.8);

if (SystemUtil.isMacOs() && SystemInfo.isMacFullWindowContentSupported) {
this.getRootPane().putClientProperty("apple.awt.fullWindowContent", true);
this.getRootPane().putClientProperty("apple.awt.transparentTitleBar", true);
this.getRootPane().putClientProperty("apple.awt.fullscreenable", true);
this.getRootPane().putClientProperty("apple.awt.windowTitleVisible", false);
}

FrameListener.addListeners();

loadingPanel = new LoadingForm().getLoadingPanel();
add(loadingPanel);
pack();
setVisible(false);
}
}
< /code>
In den normalerweise importierten Klassen fordert die Systeminfo -Klasse jedoch immer wie nicht gefunden. , während es auf anderen Computern normal war. Ich habe auch die folgenden Methoden ausprobiert, um dieses Problem zu lösen, aber keiner von ihnen hat funktioniert: < /p>

ungültig erklärt Caches. < /Li>
Reparaturide. Betreff. < /Li>
< /ol>
Alle Versuche funktionieren nicht. /p>
Die Erfassung ist unten angehängt:
< /p>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post