Enclojure NBM file turns out to be a folder - netbeans

I'm trying to install Enclojure. I've downloaded the latest zip file from GitHub (http://github.com/EricThorsen/enclojure/downloads), but when I unzip it, I get a folder ending in .nbm, not a file. The install directions say to point NetBeans to a .nbm file, not a folder, and NetBeans won't let me select the folder, either. The folder contains files and folders appropriate to a Java plugin, but I think it needs to be compressed into a single file, like a CAB in Windows. I tried downloading another NBM file from the NetBeans plugin repository, and it downloaded as one file, but for some reason it's not working with Enclojure. I don't know whether it matters, but I'm using Mac OS X Leopard.
Any help is much appreciated.
Thanks,
Daniel

I successfully installed Enclojure on Mac OS X 10.5.8 + NetBeans 6.8 like this:
sudo port install wget
wget http://cloud.github.com/downloads/EricThorsen/enclojure/enclojure-plugin-2010-jan.nbm
launch NetBeans, click "Install Plugins", select "Downloaded" tab, "Add Plugins..." button and find your downloaded enclojure-plugin-2010-jan.nbm file

Don't download any of the files provided in .zip format. Download the latest release's .nbm file (enclojure-plugin-2010-jan.nbm currently) by clicking on its name in the table with a couple .nbm entries and a couple of .zips (which you should be able just to ignore). Then follow the rest of the instructions from here.
As a side note, .nbm files are themselves just .zip archives renamed .nbm to mark them for their purpose... Perhaps if you zipped up the contents of your .nbm folder and renamed the archive to whatever.nbm, you'd have a working Enclojure (though I haven't checked). But anyway, don't do it, just grab the .nbm file straight from the source.

Related

Eclipse workspace corrupted after saving as zip

I have a need to share an eclipse workspace as a zip file. However, when I zip the workspace and then unzip it all of the user configuration is lost including the project that was opened in the workspace, what views are showing, and even a JBoss server that was created.
If I copy and paste the workspace everything works fine.
If I zip and unzip all of the configuration is lost (i.e. when I launch Eclipse and use the unzipped workspace Eclipse opens with all of the default settings including the welcome page).
What could be causing this and how do I get the zip to work?
I know there are other ways to export Eclipse configurations but I do have a specific requirement that this be provided as a zip file.
It looks like the problem was with the file names that started with ".". I re-zipped with WinZip instead of the built-in windows tool and everything is working now. See: blog.robertelder.org/zipping-corrupts-eclipse-workspace

Can't install JUnit into Netbeans 8 offline

I've downloaded the 2 NBM's for JUnit. In Netbeans 8 I'm using the Tools->Plugins->Downloaded window and have added the pertinent NMBs. They are both check-marked and when I press "Install" Netbeans then pops open a dialog that says (approximately) "Installer will download, verify, then install the selected modules". It then does attempt to use the Internet to download - and fails. This machine has no access to the Internet (hence the offline approach).
Have I not downloaded the proper NBMs (they were ZIP files and I renamed them to NBM - read that was the thing to do)? Is there some other piece that I'm missing?
The reason is that the .external file contrains URL to files to be downloaded from an active internet connection.
For example, in my case (netbeans 8.0) org-netbeans-libs-junit4.nbm contains the file
/netbeans/modules/ext/junit-4.10.jar.external
which contents is
CRC:3480621823
SIZE:253160
URL:http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.jar
URL:m2:/junit:junit:4.10:jar
if you need to perform an offline installation of the plugins in netbeans you need to transform the .nbm files : replace the .external in .nbm file by the file refenced by URL.
In my case :
1) donwload http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.jar
2) in the org-netbeans-libs-junit4.nbm, replace
/netbeans/modules/ext/junit-4.10.jar.external
by the donwloaded file at this location in the .nbm archive
/netbeans/modules/ext/junit-4.10.jar
3) save the transformed archive,
4) do the same for the other nbm archive
5) you can add and install the the .nbm files as plugin in Netbeans
remarks :
in `org-netbeans-libs-junit4.nbm, I had to replace
/netbeans/modules/ext/junit-4.10.jar.external
in `/netbeans/modules/ext/junit-4.10.jar.external, I had to replace
/netbeans/modules/ext/junit-3.8.2.jar.external
/netbeans/docs/junit-3.8.2-api.zip.external
/netbeans/docs/junit-4.10-javadoc.jar.external
/netbeans/docs/junit-4.10-sources.jar.external

Json Editor Plugin installation?

I feel really stupid by asking this question, but how can I install Json Editor Plugin in my Eclipse Helios? I looked at the Forum in sourceforge, but I can't install it neither through .zip or by adding a web site. And will I need to change the execution environment to Java 1.6?
Here is what I did to get the Json Editor Plugin to show up in the Install Dialog.
By doing a little Google-ing, I found this page which describes the steps to install JsonEditorPlugin on 3.4.
After you have followed the first 6 steps, make sure that Group items by category is un-ticked. After that, you can then choose Json Editor Plugin to be installed from the local Zip archive that you have downloaded from the net.
Edit: as a side note, you must not have the unzipped contents of the zip archive in the dropins/ folder, otherwise it will appear as if the plugin is already installed.
Simply dropping the zip contents into the dropins folder however did work also.
Note: You must right click your .json file and choose 'Open with' -> 'Json Editor'
You can install plugins by just unzipping them into the dropins folder.
It does not matter if the zip file contains the parent folders "plugins" and/or "eclipse".
I would recommend Java 1.6 as it brings a better performance and the plugin might require Java 1.6. On your desktop shortcut you use following execution arguments:
eclipse -vm <path to jre 1.6 installation folder>\bin\javaw
Download jsonedit-repository-0.9.7.zip (or whatever) and put it in a folder you like.
In Eclipse Help --> Install New Software
Add --> Archive button and select the zip file.
Name it and press OK
Press button Next and Follow master of installation.
Then after opening json file possibly needed right click mouse on the file --> open with --> JSON editor

Eclipse RSE or Aptana uploads going to sub-directory

When I use Eclipse Remote System Explorer or Aptana plugin to upload files, the files are placed in a sub-directory of my intended upload folder. The sub-directory is named according to my project name. How do I upload to the folder I intend to upload to without the files going into a sub-directory? Thanks for your wisdom!
I could not speak of RSE, but in Aptana Studio everything depends on how did you setup a connection between FTP and local project. Basically, if your ftp://xyz/myproject is connected to myproject in workspace, all files will go where intended to without sub-folders.
See http://wiki.appcelerator.org/display/tis/FTP%2C+SFTP%2C+and+FTPS+Deployment for more information.
Regards,
Max

Manual Install of GWT 2.1.0 in Eclipse Helios 3.6.1

I am behind an intranet that does not have access to the download sites. Assuming I have access to all of the correct zip and jar files. What are the step by step instructions to get Eclipse to the point where I can go to Windows -> Preferences and see the Google entry?
1) I don't have access to the http://code.google.com/eclipse/docs/getting_started.html site because I am on a closed network.
2) I tried using the dropins folder and when I re-open Eclipse and go to Windows->Preferences "Google" isn't listed.
Any ideas?
The official zip-file installation instructions are at http://code.google.com/eclipse/docs/install-from-zip.html
This uses the Eclipse dropins mechanism, which helps Eclipse to pick up the new plugins in a clean way, quote:
... the dropins folder can be used much like the plugins directory was used in the past. A subtle twist on old behavior here is that plug-ins and features added to the dropins folder are properly installed into the system rather than being forced in.
Note:
Make sure, that you extract the zip file into the correct destination. It can easily happen, that it gets extracted e.g. into some subdirectory - so please check twice. You should have the following structure:
eclipse (this is your Eclipse installation folder)
dropins
eclipse (this is the directory created by extracting the zip file)
features
com.google.*
plugins
com.google.*
features
(your already installed features)
plugins
(your already installed plugins)
...
Then (re-)start Eclipse.
Just install the plugin from here and you are set to go.
http://code.google.com/eclipse/docs/getting_started.html
If you get a correct zip file for plugin, you will see "plugins" and "features" as soon as you open the zip file.
If your eclipse is in a location "c:\eclipse", extract the zip file into "c:\eclipse". The files will go into the corresponding folders.
Drop them in the plugins folder