Cannot See Tools - >Menu item after deploy the jar file
I have tried the SweetHome 3D plugin developer guide. But as it explains I can't see the Tool menu item on the menu bar. Can anyone help me to solve this problem?
England
Joined: May 16, 2014
Post Count: 33
Status:
Offline
Re: Cannot See Tools - >Menu item after deploy the jar file
I'm have the same issue on a Mac running Mavericks and SW3D 4.3.1 (from the App Store). I believe the jar is in the correct location.
1110 ~/Library/Application Support/eTeks/Sweet Home 3D $ ls -alt plugins/ total 8 -rwxr-xr-x 1 rmills wheel 557 May 19 19:30 VolumePlugin.jar 1111 ~/Library/Application Support/eTeks/Sweet Home 3D $
I also tried placing it in the application's Plugins directory: /Applications/Sweet Home 3D.app/Contents/Plugins
I've also downloaded the 4.3 source, and built and ran from Eclipse.
Sadly, no Tools menu. All help appreciated. I'm going off to read the code where the Tools menu is created.
England
Joined: May 16, 2014
Post Count: 33
Status:
Offline
Re: Cannot See Tools - >Menu item after deploy the jar file
I have the same issue on the Mac. The plugin is located at: ~/Library/Application Support/eTeks/Sweet Home 3D/plugins/VolumePlugin.jar
PluginManager.loadPlugins tries to load him and throws an exception when he calls readPlugin. readPlugin(ResourceBundle.getBundle(applicationPluginFamily, Locale.getDefault(), classLoader), pluginLocation, "jar:" + pluginUrl.toString() + "!/" + URLEncoder.encode(zipEntryName, "UTF-8").replace("+", "%20"), classLoader);
He appears to searching for 'ApplicationPlugin' in the bundle. The jar does contain the ApplicationPlugin.properties file. For sure, there's nothing much wrong here, however I don't know how to fix it!
England
Joined: May 16, 2014
Post Count: 33
Status:
Offline
Re: Cannot See Tools - >Menu item after deploy the jar file
I've found it! I had two errors: 1) I had the ApplicationPlugin.proprerties file in the src directory. I moved it. 2) There was a space on the end of the 'ApplicationPlugin.properties ' <-- horrid little space after the s ! (software grrrrrrr). I've no idea how it got there. I used Refactor/Rename to fix it.
File/Export offers the ApplicationPlugin.properties:
All good. And the VolumePlugin yields believable results!
England
Joined: May 16, 2014
Post Count: 33
Status:
Offline
Re: Cannot See Tools - >Menu item after deploy the jar file
Just one more comment about this matter. I was surprised to be unable to this to work on SH3D 4.3.1 downloaded from the App Store. I'm not going to worry about this as it's working fine using the source code build of 4.3 and the trunk build of SH3D.
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
Re: Cannot See Tools - >Menu item after deploy the jar file
In a way, I'm also astonished that it works with Mac App Store version, since running a plug-in could feel like going out of OSX sandbox. But keep in mind that OSX sandbox is much less restrictive than the one provided with the Java plug-in, and that the JRE copy provided with Sweet Home 3D MAS version is sandboxed, meaning that any Java plug-in is sandboxed too.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
England
Joined: May 16, 2014
Post Count: 33
Status:
Offline
Re: Cannot See Tools - >Menu item after deploy the jar file
I think there's a little confusion here. It did NOT work with the 4.3.1 version from the Mac App Store. I also wondered if this was because of the the OSX sandbox. Let's not worry about this.
It's working fine when I build with the 4.3 source and the trunk from SourceForge.