I have a system which is offline and has no access to Internet.
I want to add Java Card plugin to my Netbeans. How can I add Java Card plugin on my PC (which is offline)?
I could not find .nbm file for Java card for its offline installation.
P.S. I have a 2nd system which is up and running and has Java Card plugin on its Netbeans. I thought this might help to copy files from 2nd PC to 1st PC. But I was looking to a better approach.
This following approach is a bit of a hack, but it worked for me. On a NetBeans installation which has internet access, but does not yet have Java Card installed:
Go to Tools > Plugins, and download/install the Java Card plugin. In my case installing the Java Card plugin triggered the download and installation of several other required plugins:
Specifically choose not to restart NetBeans during the plugin process.
Within your NetBeans installation directory, the installation of the Java Card plugin will have created a directory named javacard/update/download. In my case the full path of that directory is C:/NetBeans14/javacard/update/download, but yours will almost certainly be different.
Copy the content of that directory to some arbitrary empty directory on your machine without internet access.
The copied directory on your offline machine should look similar to this, with a couple of XML files and thirteen plugins with the nbm file extension:
The thirteen nbm files correspond to the thirteen plugins listed in the Verify Certificate screenshot above.
Finally, on the offline machine select Tools > Plugins > Downloaded > Add Plugins, navigate to the directory containing the copied plugins that you just created (named JavaCardPlugins in my case), select all of the nbm files for installation, select All Files from the Files of Type drop list, and click the Open button:
Once Java Card and its associated plugins have been installed, choose to restart NetBeans, and you should see that the Java Card plugin is listed under Tools > Plugins > Installed.
Notes: