質問編集履歴
9
試したことを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -86,6 +86,44 @@
|
|
86
86
|
xinit: connection to X server lost
|
87
87
|
|
88
88
|
waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
|
89
|
+
ログファイル
|
90
|
+
GNU nano 6.2 /var/log/Xorg.1.log
|
91
|
+
[ 3889.962]
|
92
|
+
X.Org X Server 1.21.1.3
|
93
|
+
X Protocol Version 11, Revision 0
|
94
|
+
[ 3889.962] Current Operating System: Linux Linux-TPC 5.15.0-50-generic #56-Ub>
|
95
|
+
[ 3889.963] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.15.0-50-generic ro>
|
96
|
+
[ 3889.963] xorg-server 2:21.1.3-2ubuntu2.1 (For technical support please see >
|
97
|
+
[ 3889.963] Current version of pixman: 0.40.0
|
98
|
+
[ 3889.963] Before reporting problems, check http://wiki.x.org
|
99
|
+
to make sure that you have the latest version.
|
100
|
+
[ 3889.963] Markers: (--) probed, (**) from config file, (==) default setting,
|
101
|
+
(++) from command line, (!!) notice, (II) informational,
|
102
|
+
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
|
103
|
+
[ 3889.963] (==) Log file: "/var/log/Xorg.1.log", Time: Sat Oct 15 16:15:17 20>
|
104
|
+
[ 3889.964] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
|
105
|
+
[ 3889.966] (==) No Layout section. Using the first Screen section.
|
106
|
+
[ 3889.966] (==) No screen section available. Using defaults.
|
107
|
+
[ 3889.966] (**) |-->Screen "Default Screen Section" (0)
|
108
|
+
[ 3889.966] (**) | |-->Monitor "<default monitor>"
|
109
|
+
[ 3889.967] (==) No monitor specified for screen "Default Screen Section".
|
110
|
+
Using a default monitor configuration.
|
111
|
+
[ 3889.967] (==) Automatically adding devices
|
112
|
+
[ 3889.967] (==) Automatically enabling devices
|
113
|
+
[ 3889.967] (==) Automatically adding GPU devices
|
114
|
+
[ 3889.967] (==) Automatically binding GPU devices
|
115
|
+
[ 3889.967] (==) Max clients allowed: 256, resource mask: 0x1fffff
|
116
|
+
[ 3889.967] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
|
117
|
+
[ 3889.967] Entry deleted from font path.
|
118
|
+
[ 3889.967] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
|
119
|
+
[ 3889.967] Entry deleted from font path.
|
120
|
+
[ 3889.967] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
|
121
|
+
[ 3889.967] Entry deleted from font path.
|
122
|
+
[ 3889.967] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
|
123
|
+
[ 3889.967] Entry deleted from font path.
|
124
|
+
[ 3889.967] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
|
125
|
+
[ 3889.967] Entry deleted from font path.
|
126
|
+
|
89
127
|
|
90
128
|
ここに問題に対して試したことを記載してください。
|
91
129
|
|
8
試したことを記入しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,6 +64,29 @@
|
|
64
64
|
|
65
65
|
### 試したこと
|
66
66
|
|
67
|
+
startxを試したところ、そもそもx-windowが上手くうごいていない様に思えます。
|
68
|
+
何か設定がありますか?
|
69
|
+
|
70
|
+
root@Linux-TPC:~# startx
|
71
|
+
|
72
|
+
|
73
|
+
X.Org X Server 1.21.1.3
|
74
|
+
X Protocol Version 11, Revision 0
|
75
|
+
Current Operating System: Linux Linux-TPC 5.15.0-50-generic #56-Ubuntu SMP Tue Sep 20 13:23:26 UTC 2022 x86_64
|
76
|
+
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.15.0-50-generic root=UUID=2f16dce9-f576-4e50-83fe-93a245c4d0c9 ro find_preseed=/preseed.cfg auto noprompt priority=critical locale=en_US quiet splash
|
77
|
+
xorg-server 2:21.1.3-2ubuntu2.1 (For technical support please see http://www.ubuntu.com/support)
|
78
|
+
Current version of pixman: 0.40.0
|
79
|
+
Before reporting problems, check http://wiki.x.org
|
80
|
+
to make sure that you have the latest version.
|
81
|
+
Markers: (--) probed, (**) from config file, (==) default setting,
|
82
|
+
(++) from command line, (!!) notice, (II) informational,
|
83
|
+
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
|
84
|
+
(==) Log file: "/var/log/Xorg.1.log", Time: Sat Oct 15 16:15:17 2022
|
85
|
+
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
|
86
|
+
xinit: connection to X server lost
|
87
|
+
|
88
|
+
waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
|
89
|
+
|
67
90
|
ここに問題に対して試したことを記載してください。
|
68
91
|
|
69
92
|
### 補足情報(FW/ツールのバージョンなど)
|
7
キー修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
java Swing ubuntu
|
1
|
+
java Swing ubuntu デスクトップアプリ
|
test
CHANGED
File without changes
|
6
キー変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
|
34
34
|
ここに実現したいことを箇条書きで書いてください。
|
35
35
|
- [ ] ▲▲機能を動作するようにする
|
36
|
-
ubuntu 20.04上で、java swingで作成した。アプリを動作させたい。
|
36
|
+
ubuntu 20.04上で、java swingで作成した。デスクトップアプリを動作させたい。
|
37
37
|
|
38
38
|
|
39
39
|
### 発生している問題・エラーメッセージ
|
5
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -17,6 +17,9 @@
|
|
17
17
|
なども変更してみました。
|
18
18
|
|
19
19
|
開発は、Windows vs codeを使用してclassまで作成して、ubuntuで,jarを作成しています。
|
20
|
+
|
21
|
+
1 Windows vs codeで、動作します。
|
22
|
+
2 jarを作成してWindows上で、動作します。
|
20
23
|
|
21
24
|
対処法をご存じの方宜しくお願いします。
|
22
25
|
|
4
内容訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,13 +2,9 @@
|
|
2
2
|
|
3
3
|
ここに質問の内容を詳しく書いてください。
|
4
4
|
(例)
|
5
|
-
java Swingで作成したアプリが起動しません。
|
6
|
-
エラー:Can't connect to X11 window server using '127.0.0.53:0.0' as the value of the DISPLAY variable.
|
7
|
-
|
5
|
+
ubuntu 20.04 デスクトプ版 java openjdk 17.0.4 2022-07-19
|
8
6
|
ubuntuの状態 設定->このシステムについて->ウィンドウシステムは、X11と表示されています。
|
9
7
|
|
10
|
-
1 Windows svcode及びjarを作成して、Windowsでは、正常に動作します。
|
11
|
-
2
|
12
8
|
環境変数
|
13
9
|
export DISPLAY=:0.0
|
14
10
|
export LIBGL_ALWAYS_INDIRECT=1
|
@@ -20,24 +16,7 @@
|
|
20
16
|
TCPKeepAlive yes
|
21
17
|
なども変更してみました。
|
22
18
|
|
23
|
-
|
24
|
-
avaのjavax.swingを使用して、ubntuで動作するアプリを作成しようとしています。
|
25
|
-
起動前にエラーになります。
|
26
|
-
頭の部分を記載します。
|
27
|
-
public static void main(String args[]){
|
28
|
-
Zipkaitou frame = new Zipkaitou("ZIPファイル解凍");
|
29
|
-
frame.setVisible(true);
|
30
|
-
// frame.setSize(1090, 400);
|
31
|
-
}
|
32
|
-
|
33
|
-
Zipkaitou(String title){
|
34
|
-
setTitle(title);
|
35
|
-
setBounds(100, 100, 800, 140);
|
36
|
-
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//閉じるボタンがクリックされた時にアプリケーションを終了するように設定する
|
37
|
-
|
38
19
|
開発は、Windows vs codeを使用してclassまで作成して、ubuntuで,jarを作成しています。
|
39
|
-
|
40
|
-
|
41
20
|
|
42
21
|
対処法をご存じの方宜しくお願いします。
|
43
22
|
|
@@ -51,6 +30,8 @@
|
|
51
30
|
|
52
31
|
ここに実現したいことを箇条書きで書いてください。
|
53
32
|
- [ ] ▲▲機能を動作するようにする
|
33
|
+
ubuntu 20.04上で、java swingで作成した。アプリを動作させたい。
|
34
|
+
|
54
35
|
|
55
36
|
### 発生している問題・エラーメッセージ
|
56
37
|
|
@@ -58,12 +39,25 @@
|
|
58
39
|
```
|
59
40
|
エラーメッセージ
|
60
41
|
```
|
42
|
+
Can't connect to X11 window server using '127.0.0.53:0.0' as the value of the DISPLAY variable.
|
43
|
+
|
61
44
|
|
62
45
|
### 該当のソースコード
|
63
46
|
|
64
47
|
```ここに言語名を入力
|
48
|
+
java Swing
|
65
49
|
ソースコード
|
66
50
|
```
|
51
|
+
public static void main(String args[]){
|
52
|
+
Zipkaitou frame = new Zipkaitou("ZIPファイル解凍");
|
53
|
+
frame.setVisible(true);
|
54
|
+
// frame.setSize(1090, 400);
|
55
|
+
}
|
56
|
+
|
57
|
+
Zipkaitou(String title){
|
58
|
+
setTitle(title);
|
59
|
+
setBounds(100, 100, 800, 140);
|
60
|
+
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
67
61
|
|
68
62
|
### 試したこと
|
69
63
|
|
3
ウィンドウシステムについて追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
java Swingで作成したアプリが起動しません。
|
6
6
|
エラー:Can't connect to X11 window server using '127.0.0.53:0.0' as the value of the DISPLAY variable.
|
7
7
|
実行環境:ubuntu 20.04 デスクトプ版 java openjdk 17.0.4 2022-07-19
|
8
|
+
ubuntuの状態 設定->このシステムについて->ウィンドウシステムは、X11と表示されています。
|
8
9
|
|
9
10
|
1 Windows svcode及びjarを作成して、Windowsでは、正常に動作します。
|
10
11
|
2
|
2
タグにubuntuを追加しました。
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
java Swing
|
1
|
+
java Swing ubuntu
|
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
(例)
|
5
5
|
java Swingで作成したアプリが起動しません。
|
6
6
|
エラー:Can't connect to X11 window server using '127.0.0.53:0.0' as the value of the DISPLAY variable.
|
7
|
-
環境:ubuntu 20.04 デスクトプ版 java openjdk 17.0.4 2022-07-19
|
7
|
+
実行環境:ubuntu 20.04 デスクトプ版 java openjdk 17.0.4 2022-07-19
|
8
8
|
|
9
9
|
1 Windows svcode及びjarを作成して、Windowsでは、正常に動作します。
|
10
10
|
2
|
@@ -20,7 +20,7 @@
|
|
20
20
|
なども変更してみました。
|
21
21
|
|
22
22
|
|
23
|
-
avaのjavax.swingを使用して、u
|
23
|
+
avaのjavax.swingを使用して、ubntuで動作するアプリを作成しようとしています。
|
24
24
|
起動前にエラーになります。
|
25
25
|
頭の部分を記載します。
|
26
26
|
public static void main(String args[]){
|
1
開発環境を追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,6 +18,26 @@
|
|
18
18
|
PrintLastLog yes
|
19
19
|
TCPKeepAlive yes
|
20
20
|
なども変更してみました。
|
21
|
+
|
22
|
+
|
23
|
+
avaのjavax.swingを使用して、uubntuで動作するアプリを作成しようとしています。
|
24
|
+
起動前にエラーになります。
|
25
|
+
頭の部分を記載します。
|
26
|
+
public static void main(String args[]){
|
27
|
+
Zipkaitou frame = new Zipkaitou("ZIPファイル解凍");
|
28
|
+
frame.setVisible(true);
|
29
|
+
// frame.setSize(1090, 400);
|
30
|
+
}
|
31
|
+
|
32
|
+
Zipkaitou(String title){
|
33
|
+
setTitle(title);
|
34
|
+
setBounds(100, 100, 800, 140);
|
35
|
+
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//閉じるボタンがクリックされた時にアプリケーションを終了するように設定する
|
36
|
+
|
37
|
+
開発は、Windows vs codeを使用してclassまで作成して、ubuntuで,jarを作成しています。
|
38
|
+
|
39
|
+
|
40
|
+
|
21
41
|
対処法をご存じの方宜しくお願いします。
|
22
42
|
|
23
43
|
|
@@ -52,3 +72,4 @@
|
|
52
72
|
|
53
73
|
ここにより詳細な情報を記載してください。
|
54
74
|
|
75
|
+
|