|
|
Re: Quickfix won't import JPanel [message #1858852 is a reply to message #1858838] |
Wed, 26 April 2023 12:30 |
Annette Godtland Messages: 2 Registered: April 2023 |
Junior Member |
|
|
I just ran through the scenario again this morning. These are the options I selected as I created the class.
I created Test project
Use an execution environment JRE: JavaSE-18
did not select Create module-info.java file
Created annette.godtland.test package
did not select create package-info.java
I created class Test
selected public and non for modifiers
Selected superclass JFrame
selected only one stub: public static void main(String[] args
I added instance variable private JPanel panel = new JPanel();
QuickFix has 3 options, but not to import javax.swing.JPanel
I looked at the build path. It shows that the JRE System Library is in the Modulepath instead of the Classpath
The log shows this warning every time I restart Eclipse:
!ENTRY org.eclipse.egit.ui 2 0 2023-04-26 06:56:21.243
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\jm'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
I ran the same steps in my Eclipse version 2022-06 where Quickfix works and here are the only differences I see:
Quickfix
2022-06 has 7 options, including import javax.swing.JPanel
2023-03 has 3 options, but not import javax.swing.JPanel
I looked at the build path. It too shows that the JRE System Library is in the Modulepath instead of the Classpath. The Source, Projects, Libraries, Order and Export, and Module dependencies tabs all look identical to what is shown in the 2023-03 version that I am having problems with.
I looked at the installed JREs for each version of Eclipse
2022-06 only has jdk-18.0.2 installed
2023-03 has jdk-18.0.2, jdk-19.0.2, and jdk-10.0.1 installed, but jdk18.0.2 is the default
Both versions of Eclipse log the same warning about the environment variable HOME is not set when I start up Eclipse.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02974 seconds