Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 1
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3021 times and has 0 replies Next Thread
ilaria_123
Newbie




Joined: Sep 26, 2018
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Export .jar plugin that depend on other libraries

Hello,

I realise this is a more general Java question, but I've been struggling with this for a few days and I thought I'd ask here as I'm sure people have encountered this before. As I mentioned in a different thread, I'm developing a plugin to read vertices from a .json file and draw a room with those vertices in Sweet Home 3D. I'm using the json-simple library to read json files. The plugin is finished and runs smoothly in Eclipse. However, when I export it and try to use it with the .exe or the executable Sweet Home 3D .jar, it fails because it cannot find the json-simple classes. Specifically, it gives me a "NoClassDefFoundError".

I read that Eclipse doesn't support the "repackaging" of other .jar dependencies into a single, final jar if that's not a runnable jar. I tried manually putting the .class files of json-simple in the jar and still no luck. I read that Maven is supposed to help with that but I found it very complicated and gave up. I was wondering if there was a way in Sweet Home 3D to link to external libraries or whether I just have to give up and learn how to use Maven.

Thank you very much,
Ilaria
[Oct 1, 2018, 2:23:02 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved