Sie sind nicht angemeldet.

1

28.10.2018, 16:56

PyCharm will jdk

Halli, ich versuche gerade PyCharm-Community zu installieren. Ich bekomme den Fehler, dass jdk erforderlich ist.

Quellcode

1
No JDK found. Please validate either PYCHARM_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.
Laut der Anleitung auf https://wiki.gentoo.org/wiki/PyCharm_Community_Edition habe ich die Konfigurationsdatei .bashrc geändert. Leider funzt es noch nicht. Welches Paket will er noch?

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
[michi@localhost ~ $ emerge --search java | more
  
  
[ Results for search key : java ]
Searching...

*  app-eselect/eselect-java
      Latest version available: 0.4.0
      Latest version installed: 0.4.0
      Size of files: 14 KiB
      Homepage:      https://wiki.gentoo.org/wiki/Project:Java
      Description:   A set of eselect modules for Java
      License:       GPL-2

*  app-portage/java-ebuilder [ Masked ]
      Latest version available: 9999
      Latest version installed: [ Not Installed ]
      Size of files: 0 KiB
      Homepage:      https://github.com/gentoo/java-ebuilder
      Description:   Java team tool for semi-automatic creation of ebuilds from pom.xml
      License:       GPL-2

*  dev-haskell/language-javascript [ Masked ]
      Latest version available: 0.6.0.9
      Latest version installed: [ Not Installed ]
      Size of files: 101 KiB
      Homepage:      https://github.com/erikd/language-javascript
      Description:   Parser for JavaScript
      License:       BSD

*  dev-java/ant-javamail
      Latest version available: 1.9.2-r2
      Latest version installed: [ Not Installed ]
      Size of files: 3338 KiB
      Homepage:      http://ant.apache.org/
      Description:   Apache Ant's optional tasks depending on oracle-javamail
      License:       Apache-2.0

*  dev-java/apple-java-extensions-bin
      Latest version available: 1.5-r1
      Latest version installed: [ Not Installed ]
      Size of files: 18 KiB
      Homepage:      http://developer.apple.com/samplecode/AppleJavaExtensions/
      Description:   Apple eAWT and eIO APIs for Java on Mac OS X
      License:       Apple

*  dev-java/dbus-java
      Latest version available: 2.7-r1
      Latest version installed: 2.7-r1
      Size of files: 143 KiB
      Homepage:      https://dbus.freedesktop.org/
      Description:   Java bindings for the D-Bus messagebus
      License:       || ( GPL-2 AFL-2.1 )

*  dev-java/dnsjava
      Latest version available: 2.1.6
      Latest version installed: [ Not Installed ]
      Size of files: 1063 KiB
      Homepage:      http://www.dnsjava.org/
      Description:   An implementation of DNS in Java
      License:       BSD

*  dev-java/geoip-java
      Latest version available: 1.3.0
      Latest version installed: [ Not Installed ]
      Size of files: 136 KiB
      Homepage:      https://github.com/maxmind
      Description:   Java library for lookup countries by IP addresses
      License:       GPL-2

*  dev-java/java-apicheck
      Latest version available: 0_p20150907
      Latest version installed: [ Not Installed ]
      Size of files: 2 KiB
      Homepage:      https://github.com/gentoo/java-apicheck/
      Description:   Command line tool to check Java packages for API compatibility
      License:       GPL-2+

*  dev-java/java-config
      Latest version available: 2.2.0-r4
      Latest version installed: 2.2.0-r4
      Size of files: 51 KiB
      Homepage:      https://wiki.gentoo.org/wiki/Project:Java
      Description:   Java environment configuration query tool
      License:       GPL-2

*  dev-java/java-dep-check
      Latest version available: 0.3-r1
      Latest version installed: [ Not Installed ]
      Size of files: 0 KiB
      Homepage:      https://wiki.gentoo.org/wiki/Project:Java
      Description:   Java Dependency checker
      License:       GPL-2

*  dev-java/java-getopt
      Latest version available: 1.0.14
      Latest version installed: [ Not Installed ]
      Size of files: 45 KiB
      Homepage:      http://www.urbanophile.com/arenn/hacking/download.html
      Description:   Java command line option parser
      License:       LGPL-2.1

*  dev-java/java-sdk-docs
      Latest version available: 1.8.0.192
      Latest version installed: [ Not Installed ]
      Size of files: 91604 KiB
      Homepage:      http://download.oracle.com/javase/8/docs/
      Description:   Oracle's documentation bundle (including API) for Java SE
      License:       oracle-java-documentation-8

*  dev-java/java-service-wrapper
      Latest version available: 3.5.25-r1
      Latest version installed: [ Not Installed ]
      Size of files: 544 KiB
      Homepage:      http://wrapper.tanukisoftware.org/
      Description:   A wrapper that makes it possible to install a Java Application as daemon
      License:       tanuki-community

*  dev-java/javacc
      Latest version available: 5.0-r3
      Latest version installed: [ Not Installed ]
      Size of files: 792 KiB
      Homepage:      https://javacc.java.net/
      Description:   Java Compiler Compiler - The Java Parser Generator
      License:       BSD

*  dev-java/javacsv
      Latest version available: 2.1
      Latest version installed: [ Not Installed ]
      Size of files: 88 KiB
      Homepage:      https://www.csvreader.com/java_csv.php
      Description:   Java library for reading and writing CSV and plain delimited text files
      License:       LGPL-2.1

*  dev-java/javacup
      Latest version available: 0.11b_p20151001
      Latest version installed: [ Not Installed ]
      Size of files: 307 KiB
      Homepage:      http://www2.cs.tum.edu/projects/cup/
      Description:   CUP Parser Generator for Java
      License:       GPL-2

*  dev-java/javahelp
      Latest version available: 2.0.05_p20170719
      Latest version installed: [ Not Installed ]
      Size of files: 5904 KiB
      Homepage:      https://javaee.github.io/javahelp/
      Description:   The JavaHelp system online help system
      License:       GPL-2-with-linking-exception

*  dev-java/javassist
      Latest version available: 3.18.2
      Latest version installed: [ Not Installed ]
      Size of files: 1152 KiB
      Homepage:      http://www.csg.is.titech.ac.jp/~chiba/javassist/
      Description:   Javassist makes Java bytecode manipulation simple
      License:       MPL-1.1

*  dev-java/javatoolkit
      Latest version available: 0.3.0-r9
      Latest version installed: [ Not Installed ]
      Size of files: 17 KiB
      Homepage:      https://wiki.gentoo.org/wiki/Project:Java
      Description:   Collection of Gentoo-specific tools for Java
      License:       GPL-2

*  dev-java/javax-inject
      Latest version available: 1-r2
      Latest version installed: [ Not Installed ]
      Size of files: 11 KiB
      Homepage:      https://code.google.com/p/atinject/
      Description:   Dependency injection for Java (JSR-330)
      License:       Apache-2.0

*  dev-java/libmatthew-java
      Latest version available: 0.7.2-r1
      Latest version installed: 0.7.2-r1
      Size of files: 40 KiB
      Homepage:      http://www.matthew.ath.cx/projects/java/
      Description:   A selection of libraries for Java
      License:       LGPL-2.1

*  dev-java/libreadline-java
      Latest version available: 0.8.0-r3
      Latest version installed: [ Not Installed ]
      Size of files: 76 KiB
      Homepage:      http://java-readline.sourceforge.net/
      Description:   A JNI-wrapper to GNU Readline
      License:       LGPL-2.1

*  dev-java/matrix-toolkits-java [ Masked ]
      Latest version available: 0.9.12
      Latest version installed: [ Not Installed ]
      Size of files: 2517 KiB
      Homepage:      https://github.com/fommil/matrix-toolkits-java
      Description:   BLAS and LAPACK-derived matrix data structures and linear algebra methods
      License:       LGPL-3

*  dev-java/netbeans-java
      Latest version available: 8.2-r1
      Latest version installed: [ Not Installed ]
      Size of files: 272978 KiB
      Homepage:      http://netbeans.org/projects/java
      Description:   Netbeans Java Cluster
      License:       || ( CDDL GPL-2-with-linking-exception )

*  dev-java/netbeans-javacard
      Latest version available: 8.2
      Latest version installed: [ Not Installed ]
      Size of files: 220053 KiB
      Homepage:      http://netbeans.org/projects/javacard
      Description:   Netbeans JavaCard Cluster
      License:       || ( CDDL GPL-2-with-linking-exception )

*  dev-java/netbeans-javadoc
      Latest version available: 8.2
      Latest version installed: [ Not Installed ]
      Size of files: 214553 KiB
      Homepage:      http://netbeans.org/
      Description:   Netbeans JavaDocs
      License:       || ( CDDL GPL-2-with-linking-exception )

*  dev-java/netbeans-javafx
      Latest version available: 8.2
      Latest version installed: [ Not Installed ]
      Size of files: 216465 KiB
      Homepage:      http://netbeans.org/projects/javafx
      Description:   Netbeans JavaFX Cluster
      License:       || ( CDDL GPL-2-with-linking-exception )

*  dev-java/oracle-javamail
      Latest version available: 1.5.2
      Latest version installed: [ Not Installed ]
      Size of files: 1537 KiB
      Homepage:      https://java.net/projects/javamail/pages/Home
      Description:   A Java-based framework to build multiplatform mail and messaging applications
      License:       CDDL GPL-2 BSD

*  dev-java/protobuf-java
      Latest version available: 3.6.1
      Latest version installed: [ Not Installed ]
      Size of files: 4381 KiB
      Homepage:      https://developers.google.com/protocol-buffers/ https://github.com/protocolbuffers/protobuf
      Description:   Google's Protocol Buffers - Java bindings
      License:       BSD

*  dev-java/sun-java3d-bin
      Latest version available: 1.4.0_pre5-r1
      Latest version installed: [ Not Installed ]
      Size of files: 1252 KiB
      Homepage:      https://j3d-core.dev.java.net/
      Description:   Sun Java3D API Core
      License:       sun-jrl sun-jdl

*  dev-java/xjavac
      Latest version available: 20110814
      Latest version installed: [ Not Installed ]
      Size of files: 3 KiB
      Homepage:      http://cvs.apache.org/viewcvs.cgi/xml-xerces/java/tools/src/XJavac.java
      Description:   The implementation of the javac compiler for IBM JDK 1.4 (needed for xerces-2)
      License:       Apache-2.0

*  dev-java/xz-java
      Latest version available: 1.5
      Latest version installed: [ Not Installed ]
      Size of files: 129 KiB
      Homepage:      https://tukaani.org/xz/java.html
      Description:   Implementation of xz data compression in pure java
      License:       public-domain

*  dev-lang/gnuprologjava [ Masked ]
      Latest version available: 0.2.6
      Latest version installed: [ Not Installed ]
      Size of files: 466 KiB
      Homepage:      http://www.gnu.org/software/gnuprologjava
      Description:   GNU Prolog for Java is an implementation of ISO Prolog as a Java library
      License:       LGPL-3+

*  dev-perl/JavaScript-Minifier [ Masked ]
      Latest version available: 1.140.0
      Latest version installed: [ Not Installed ]
      Size of files: 22 KiB
      Homepage:      http://metacpan.org/release/JavaScript-Minifier
      Description:   Perl extension for minifying JavaScript code
      License:       || ( Artistic GPL-1+ )

*  dev-perl/JavaScript-Minifier-XS
      Latest version available: 0.110.0-r1
      Latest version installed: [ Not Installed ]
      Size of files: 18 KiB
      Homepage:      http://metacpan.org/release/JavaScript-Minifier-XS
      Description:   XS based JavaScript minifier
      License:       || ( Artistic GPL-1+ )

*  dev-perl/JavaScript-Packer [ Masked ]
      Latest version available: 2.30.0
      Latest version installed: [ Not Installed ]
      Size of files: 16 KiB
      Homepage:      http://metacpan.org/release/JavaScript-Packer
      Description:   Perl version of Dean Edward's Packer.js
      License:       || ( Artistic GPL-1+ )

*  dev-perl/JavaScript-SpiderMonkey [ Masked ]
      Latest version available: 0.210.0-r1
      Latest version installed: [ Not Installed ]
      Size of files: 20 KiB
      Homepage:      https://metacpan.org/release/JavaScript-SpiderMonkey
      Description:   Perl interface to the JavaScript Engine
      License:       || ( Artistic GPL-1+ )

*  dev-php/PEAR-HTML_Javascript
      Latest version available: 1.1.2-r1
      Latest version installed: [ Not Installed ]
      Size of files: 9 KiB
      Homepage:      https://pear.php.net/package/HTML_Javascript
      Description:   Provides an interface for creating simple JS scripts within PHP
      License:       PHP-3

*  dev-ruby/rex-java [ Masked ]
      Latest version available: 0.1.5
      Latest version installed: [ Not Installed ]
      Size of files: 23 KiB
      Homepage:      https://rubygems.org/gems/rex-java
      Description:   Ruby Exploitation(Rex) library for parsing Java serialized streams
      License:       BSD

*  net-misc/java-wakeonlan
      Latest version available: 1.0.0-r2
      Latest version installed: [ Not Installed ]
      Size of files: 344 KiB
      Homepage:      http://www.moldaner.de/wakeonlan/
      Description:   A wakeonlan commandline tool and Java library
      License:       GPL-2

*  sec-policy/selinux-java
      Latest version available: 2.20180701-r1
      Latest version installed: [ Not Installed ]
      Size of files: 1044 KiB
      Homepage:      https://wiki.gentoo.org/wiki/Project:SELinux
      Description:   SELinux policy for java
      License:       GPL-2

*  sys-apps/baselayout-java
      Latest version available: 0.1.0
      Latest version installed: 0.1.0
      Size of files: 71 KiB
      Homepage:      https://wiki.gentoo.org/wiki/Project:Java
      Description:   Baselayout for Java
      License:       GPL-2

*  x11-plugins/hexchat-javascript
      Latest version available: 0.3.1
      Latest version installed: [ Not Installed ]
      Size of files: 27 KiB
      Homepage:      https://github.com/TingPing/hexchat-javascript
      Description:   Javascript interface for HexChat
      License:       MPL-2.0

[ Applications found : 44 ]

Quellcode

1
2
3
michi@localhost ~ $ pycharm-community 
which: no zenity in (/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0:/usr/lib/llvm/6/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin)
which: no kdialog in (/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0:/usr/lib/llvm/6/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin)
Man kann nicht alles wissen, aber alles lernen!

2

02.11.2018, 21:31

Hi, da ich mir pycharm auch einmal ansehen wollte und ein frisches Gentoo habe, auch pycharm-community installiert.
Erster Start: selbe Fehlermeldung wie bei dir.

Zuerst dachte ich das ich kein USER-VM ausgewählt ist also habe ich mit

Quellcode

1
eselect java-vm user set 



als Benutzer mir eine Java Version ausgewählt. (Fehler kam noch immer)

Quellcode

1
export PYCHARM_JDK=`java-config -O`


Wie auf der Seite die du ja schon gefunden hast in .bashrc rein, shell neu starten
und bei mir geht jetzt pycharm auf.

Wenn das bei dir nicht Funktioniert, hast du in deinem Home-Verzeichnis folgende Dateien?
.bash_profile
.bash_logout
.bashrc

Und was steht da drin?

Öffnen über Menü geht bei mir auch nicht, das ja keine Shell Initialisiert wird und somit auch PYCHARM_JDK nicht gesetzt ist.
Ich habe das so gelöst:

Quellcode

1
cd ~/.local/share/applications/cp /usr/share/applications/pycharm-community-pycharm-community.desktop ./


Und wie folgt abgeändert
von

Quellcode

1
TryExec=pycharm-community


nach

Quellcode

1
TryExec=PYCHARM_JDK="`java-config -O`" pycharm-community


Nach einem erneuten Anmelden ging bei mir pycharm auch via Menü auf.
Ich verwende Gnome, für KDE müsste man schauen, geht aber ähnlich oder sogar gleich.
knasan

- Bug oder Feature, das darf man sich hier aussuchen. -

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »knasan« (02.11.2018, 21:47)