Aquí está el problema, no puedo seleccionar un archivo de texto:
ElobjetivoesproporcionaralaaplicaciónJavademibancounarchivodetexto,paraquepuedahacercosasconél.
Ensudescripción,dicenexplícitamentequeelarchivodebeestarenformatotxt,peroesoestodo.
Yahabléconellos,nologrésolucionarelproblema.Poresoestoyaquí.
¿HayalgunaformadehacerqueFinderacepteforzadamentecualquiertipodearchivo?
Algunosdetallesadicionales
Probéestasvariantesdeextensión:txttextTXT
,nadafuncionó.
Eneleventodeabrirelcuadrodediálogodearchivo,estoesloqueobtengoenlaconsoladelsistema:
fault21:07:37.789598+0100javaFaildtogetownerUUIDforurl:<private>error:ErrorDomain=NSCocoaErrorDomainCode=260UserInfo={NSURL=<private>,NSFilePath=<private>,NSUnderlyingError=0x7fd5d4f2d530{ErrorDomain=NSPOSIXErrorDomainCode=2"No such file or directory"}}
fault 21:07:37.794009 +0100 java Faild to get owner UUID for url: <private> error: Error Domain=NSCocoaErrorDomain Code=260 UserInfo={NSURL=<private>, NSFilePath=<private>, NSUnderlyingError=0x7fd5d4f2cc30 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
error 21:07:37.872025 +0100 java Unable to load Info.plist exceptions (eGPUOverrides)
default 21:07:39.792043 +0100 kernel AGC:: [java pid:18638] force EG up last PID 18638 WS-ready 1 switch-state 0 IG FBs 1 EG FBs 0:f power-state 0 3D busy HDA idle system-state 1 power-level 20:20 connect-change 0
default 21:07:39.792058 +0100 kernel AGC:: [java pid:18638] force EG up last PID 18638 WS-ready 1 switch-state 0 IG FBs 1 EG FBs 0:f power-state 0 3D busy HDA idle system-state 1 power-level 20:20 connect-change 0
Y esto es lo que muestra la consola de Java en ese mismo evento:
Java Web Start 11.191.2.12 x86_64
Using JRE version 1.8.0_191-b12 Java HotSpot(TM) 64-Bit Server VM
User home directory = /Users/Birowsky
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
08:42:19 INFO: WRITE: com.teamdev.jxbrowser.chromium.internal.ipc.message.FocusMessage@2b023366, SocketInfo{channelId=0, browserId=0, channelType=Browser}
08:42:19 INFO: READ: OnInvokeJSFunctionMessage{type=OnInvokeJSFunction, uid=28, name='CardReady', args='', returnValue='', errorMessage=''}, SocketInfo{channelId=0, browserId=0, channelType=Render}
CardReady() > checkServerCertificate(): true
Pozvana metoda run()
Number of readers: 1
Selected reader : 0
OS version: mac os x
Card is present!
Connection successful!
ATR: ok
Disconnection successful!
CardReady() > End: true
08:42:20 INFO: WRITE: OnInvokeJSFunctionMessage{type=OnInvokeJSFunction, uid=28, name='CardReady', args='', returnValue='b:1;', errorMessage=''}, SocketInfo{channelId=0, browserId=0, channelType=Render}
08:42:20 INFO: READ: OnInvokeJSFunctionMessage{type=OnInvokeJSFunction, uid=29, name='ClientGetCertID', args='', returnValue='', errorMessage=''}, SocketInfo{channelId=0, browserId=0, channelType=Render}
ClientGetCertID() > checkServerCertificate(): true
08:42:20 INFO: WRITE: OnInvokeJSFunctionMessage{type=OnInvokeJSFunction, uid=29, name='ClientGetCertID', args='', returnValue='s:46;2051668607190566542320627606591412845831791822;', errorMessage=''}, SocketInfo{channelId=0, browserId=0, channelType=Render}
08:42:20 INFO: READ: OnInvokeJSFunctionMessage{type=OnInvokeJSFunction, uid=30, name='openFiles', args='', returnValue='', errorMessage=''}, SocketInfo{channelId=0, browserId=0, channelType=Render}
openFiles() > checkServerCertificate(): true
08:42:20 INFO: WRITE: com.teamdev.jxbrowser.chromium.internal.ipc.message.UnfocusMessage@4d6101, SocketInfo{channelId=0, browserId=0, channelType=Browser}
----------------------------------------------------
>>>> Close "Open File" dialog <<<<
----------------------------------------------------
08:42:56 INFO: WRITE: OnInvokeJSFunctionMessage{type=OnInvokeJSFunction, uid=30, name='openFiles', args='', returnValue='o:undefined;', errorMessage=''}, SocketInfo{channelId=0, browserId=0, channelType=Render}
08:42:56 INFO: WRITE: com.teamdev.jxbrowser.chromium.internal.ipc.message.FocusMessage@49ffaaaa, SocketInfo{channelId=0, browserId=0, channelType=Browser}
08:42:58 INFO: WRITE: com.teamdev.jxbrowser.chromium.internal.ipc.message.UnfocusMessage@26a71c78, SocketInfo{channelId=0, browserId=0, channelType=Browser}
Así es como se ve mi configuración de Java .