rodriguesabner 8 de jun. de 2020
Moreira99 8 de jun. de 2020
DEBUG : setDebug : JavaMail version 1.4 . 7
Exception in thread "JavaFX Application Thread" java . lang . RuntimeException : java . lang . reflect . InvocationTargetException
at javafx . fxml / javafx . fxml . FXMLLoader $ MethodHandler . invoke ( FXMLLoader . java : 1787 )
at javafx . fxml / javafx . fxml . FXMLLoader $ ControllerMethodEventHandler . handle ( FXMLLoader . java : 1670 )
at javafx . base / com . sun . javafx . event . CompositeEventHandler . dispatchBubblingEvent ( CompositeEventHandler . java : 86 )
at javafx . base / com . sun . javafx . event . EventHandlerManager . dispatchBubblingEvent ( EventHandlerManager . java : 238 )
at javafx . base / com . sun . javafx . event . EventHandlerManager . dispatchBubblingEvent ( EventHandlerManager . java : 191 )
at javafx . base / com . sun . javafx . event . CompositeEventDispatcher . dispatchBubblingEvent ( CompositeEventDispatcher . java : 59 )
at javafx . base / com . sun . javafx . event . BasicEventDispatcher . dispatchEvent ( BasicEventDispatcher . java : 58 )
at javafx . base / com . sun . javafx . event . EventDispatchChainImpl . dispatchEvent ( EventDispatchChainImpl . java : 114 )
at javafx . base / com . sun . javafx . event . BasicEventDispatcher . dispatchEvent ( BasicEventDispatcher . java : 56 )
at javafx . base / com . sun . javafx . event . EventDispatchChainImpl . dispatchEvent ( EventDispatchChainImpl . java : 114 )
at javafx . base / com . sun . javafx . event . BasicEventDispatcher . dispatchEvent ( BasicEventDispatcher . java : 56 )
at javafx . base / com . sun . javafx . event . EventDispatchChainImpl . dispatchEvent ( EventDispatchChainImpl . java : 114 )
at javafx . base / com . sun . javafx . event . EventUtil . fireEventImpl ( EventUtil . java : 74 )
at javafx . base / com . sun . javafx . event . EventUtil . fireEvent ( EventUtil . java : 49 )
at javafx . base / javafx . event . Event . fireEvent ( Event . java : 198 )
at javafx . graphics / javafx . scene . Node . fireEvent ( Node . java : 8879 )
at javafx . controls / javafx . scene . control . Button . fire ( Button . java : 200 )
at javafx . controls / com . sun . javafx . scene . control . behavior . ButtonBehavior . mouseReleased ( ButtonBehavior . java : 206 )
at javafx . controls / com . sun . javafx . scene . control . inputmap . InputMap . handle ( InputMap . java : 274 )
at javafx . base / com . sun . javafx . event . CompositeEventHandler $ NormalEventHandlerRecord . handleBubblingEvent ( CompositeEventHandler . java : 218 )
at javafx . base / com . sun . javafx . event . CompositeEventHandler . dispatchBubblingEvent ( CompositeEventHandler . java : 80 )
at javafx . base / com . sun . javafx . event . EventHandlerManager . dispatchBubblingEvent ( EventHandlerManager . java : 238 )
at javafx . base / com . sun . javafx . event . EventHandlerManager . dispatchBubblingEvent ( EventHandlerManager . java : 191 )
at javafx . base / com . sun . javafx . event . CompositeEventDispatcher . dispatchBubblingEvent ( CompositeEventDispatcher . java : 59 )
at javafx . base / com . sun . javafx . event . BasicEventDispatcher . dispatchEvent ( BasicEventDispatcher . java : 58 )
at javafx . base / com . sun . javafx . event . EventDispatchChainImpl . dispatchEvent ( EventDispatchChainImpl . java : 114 )
at javafx . base / com . sun . javafx . event . BasicEventDispatcher . dispatchEvent ( BasicEventDispatcher . java : 56 )
at javafx . base / com . sun . javafx . event . EventDispatchChainImpl . dispatchEvent ( EventDispatchChainImpl . java : 114 )
at javafx . base / com . sun . javafx . event . BasicEventDispatcher . dispatchEvent ( BasicEventDispatcher . java : 56 )
at javafx . base / com . sun . javafx . event . EventDispatchChainImpl . dispatchEvent ( EventDispatchChainImpl . java : 114 )
at javafx . base / com . sun . javafx . event . EventUtil . fireEventImpl ( EventUtil . java : 74 )
at javafx . base / com . sun . javafx . event . EventUtil . fireEvent ( EventUtil . java : 54 )
at javafx . base / javafx . event . Event . fireEvent ( Event . java : 198 )
at javafx . graphics / javafx . scene . Scene $ MouseHandler . process ( Scene . java : 3851 )
at javafx . graphics / javafx . scene . Scene $ MouseHandler . access $ 1200 ( Scene . java : 3579 )
at javafx . graphics / javafx . scene . Scene . processMouseEvent ( Scene . java : 1849 )
at javafx . graphics / javafx . scene . Scene $ ScenePeerListener . mouseEvent ( Scene . java : 2588 )
at javafx . graphics / com . sun . javafx . tk . quantum . GlassViewEventHandler $ MouseEventNotification . run ( GlassViewEventHandler . java : 397 )
at javafx . graphics / com . sun . javafx . tk . quantum . GlassViewEventHandler $ MouseEventNotification . run ( GlassViewEventHandler . java : 295 )
at java . base / java . security . AccessController . doPrivileged ( Native Method )
at javafx . graphics / com . sun . javafx . tk . quantum . GlassViewEventHandler . lambda $ handleMouseEvent $ 2 ( GlassViewEventHandler . java : 434 )
at javafx . graphics / com . sun . javafx . tk . quantum . QuantumToolkit . runWithoutRenderLock ( QuantumToolkit . java : 390 )
at javafx . graphics / com . sun . javafx . tk . quantum . GlassViewEventHandler . handleMouseEvent ( GlassViewEventHandler . java : 433 )
at javafx . graphics / com . sun . glass . ui . View . handleMouseEvent ( View . java : 556 )
at javafx . graphics / com . sun . glass . ui . View . notifyMouse ( View . java : 942 )
at javafx . graphics / com . sun . glass . ui . win . WinApplication . _runLoop ( Native Method )
at javafx . graphics / com . sun . glass . ui . win . WinApplication . lambda $ runLoop $ 3 ( WinApplication . java : 174 )
at java . base / java . lang . Thread . run ( Thread . java : 834 )
Caused by : java . lang . reflect . InvocationTargetException
at java . base / jdk . internal . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at java . base / jdk . internal . reflect . NativeMethodAccessorImpl . invoke ( NativeMethodAccessorImpl . java : 62 )
at java . base / jdk . internal . reflect . DelegatingMethodAccessorImpl . invoke ( DelegatingMethodAccessorImpl . java : 43 )
at java . base / java . lang . reflect . Method . invoke ( Method . java : 566 )
at com . sun . javafx . reflect . Trampoline . invoke ( MethodUtil . java : 76 )
at jdk . internal . reflect . GeneratedMethodAccessor2 . invoke ( Unknown Source )
at java . base / jdk . internal . reflect . DelegatingMethodAccessorImpl . invoke ( DelegatingMethodAccessorImpl . java : 43 )
at java . base / java . lang . reflect . Method . invoke ( Method . java : 566 )
at javafx . base / com . sun . javafx . reflect . MethodUtil . invoke ( MethodUtil . java : 273 )
at javafx . fxml / com . sun . javafx . fxml . MethodHelper . invoke ( MethodHelper . java : 83 )
at javafx . fxml / javafx . fxml . FXMLLoader $ MethodHandler . invoke ( FXMLLoader . java : 1784 )
... 47 more
Caused by : java . lang . NoClassDefFoundError : javax / activation / DataSource
at gui . listaCompras . onBtEnviarLista ( listaCompras . java : 46 )
... 58 more
Caused by : java . lang . ClassNotFoundException : javax . activation . DataSource
at java . base / jdk . internal . loader . BuiltinClassLoader . loadClass ( BuiltinClassLoader . java : 583 )
at java . base / jdk . internal . loader . ClassLoaders $ AppClassLoader . loadClass ( ClassLoaders . java : 178 )
at java . base / java . lang . ClassLoader . loadClass ( ClassLoader . java : 521 )
... 59 more
Isto tudo
rodriguesabner 9 de jun. de 2020
Tem uma outra lib que se chama activation também, vc tem que baixa-la. Esse erro tá dizendo que não encontrou a classe dessa biblioteca
Moreira99 9 de jun. de 2020
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.controls not found
usei o activation e nao consegui iniciar a aplicaçao
rodriguesabner 9 de jun. de 2020
ta usando qual JDK? 14? Se sim, vc tem q adicionar os modulos no seu projeto.
La na classe dos modulos vc coloca:
require javafx.controls
Moreira99 9 de jun. de 2020
–module-path C:\java-libs\javafx-sdk-11.0.2\lib --add-modules=javafx.controls,javafx
Estava a usar isto
rodriguesabner 9 de jun. de 2020
Moreira99 9 de jun. de 2020
estou mas o que tenho nao e o mesmo que require javafx.controls?
rodriguesabner 9 de jun. de 2020
Sim, é a mesma coisa. Começou a dar erro depois de adicionar a biblioteca?
Moreira99 9 de jun. de 2020
rodriguesabner 9 de jun. de 2020
vc ta usando gradle ou ant?
Moreira99 11 de jun. de 2020
Qual o programa que estou a usar?