{"action":"opened","issue":{"url":"https://api.github.com/repos/sendgrid/sendgrid-java/issues/106","repository_url":"https://api.github.com/repos/sendgrid/sendgrid-java","labels_url":"https://api.github.com/repos/sendgrid/sendgrid-java/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/sendgrid/sendgrid-java/issues/106/comments","events_url":"https://api.github.com/repos/sendgrid/sendgrid-java/issues/106/events","html_url":"https://github.com/sendgrid/sendgrid-java/issues/106","id":148879685,"number":106,"title":"Not working in a JavaFX context","user":{"login":"AshrafKACIMI","id":7318839,"avatar_url":"https://avatars.githubusercontent.com/u/7318839?v=3","gravatar_id":"","url":"https://api.github.com/users/AshrafKACIMI","html_url":"https://github.com/AshrafKACIMI","followers_url":"https://api.github.com/users/AshrafKACIMI/followers","following_url":"https://api.github.com/users/AshrafKACIMI/following{/other_user}","gists_url":"https://api.github.com/users/AshrafKACIMI/gists{/gist_id}","starred_url":"https://api.github.com/users/AshrafKACIMI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AshrafKACIMI/subscriptions","organizations_url":"https://api.github.com/users/AshrafKACIMI/orgs","repos_url":"https://api.github.com/users/AshrafKACIMI/repos","events_url":"https://api.github.com/users/AshrafKACIMI/events{/privacy}","received_events_url":"https://api.github.com/users/AshrafKACIMI/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-16T18:52:03Z","updated_at":"2016-04-16T18:52:03Z","closed_at":null,"body":"Hello everyone.\r\n\r\nI am building a software in Java and JavaFX. It generates PDF reports then calls SendGrid API to send to send them. I have already added the SendGrid API .jar file to the classpath.\r\n\r\nThe problem is that my JavaFX application crashes when I instanciate my subclass of SengGrid. The following exception is thrown:\r\n```\r\nException in thread \"JavaFX Application Thread\" java.lang.NoClassDefFoundError: com/sendgrid/SendGrid$Email\r\n...\r\nCaused by: java.lang.ClassNotFoundException: com.sendgrid.SendGrid$Email\r\n\r\n```\r\n\r\nNow the interesting part is that the API works perfectly when I call it from a non JavaFX project. And more interestingly, it also works when I call it from a \"console\" main class inside the very same JavaFX project.\r\n\r\nSo far, I have tried to call that \"console\" main from my JavaFX code as a sort of static method that would fulfill my task (sending the PDF files). But again, I encounter the very same exception."}}