How to download and install modules (nbm files) offline?

Sometimes it is desirable to download nbms offline. As an example usecase, one may wish to update an IDE that is installed on a system without an internet connection (possibly set up that way for security reasons). In such cases, the updates can be obtained offline using a system that does have an internet connection; and the updates then copied over to and applied offline on a system without internet access.

How to download modules (nbms) offline?

  1. Using the plugin manager (pre-6.0) Note: This section has been supercedd by the FAQ item  http://wiki.netbeans.org/FaqDownloadingUCModule

    • Connect to the desired Update Center(s) via 'Tools | Update Center' 
    • Select the required modules in the wizard. 
    • After the modules are downloaded but before they are applied: ((For pre-6.0, keep final panel of AutoUpdate client without selecting Finish button. When a module is updated by the ide, the downloaded nbms are deleted. The trick is to pause after the step where modules are downloaded and the nbms are still on the system but before the downloaded nbms are applied).
      • Open a terminal window.
      • Look for \*.nbm files. These are usually found in [userdir]/update/download directory. You can also look for \*.nbm files in both NetBeans install and user directories using the operating system's search utilities. (Search in Windows Explorer or 'find' command on Solairs/linux).
      • Copy the nbm files to a separate location.
    • Dismiss the autoupdate wizard (or of course continue to install the modules).
    • This method is preferable (over the method 'using the browser' described below) because:
      • The ide will resolve dependencies and automatically add dependent modules to the list of modules to be downloaded.
      • In the browser, files need to be saved individually.
  2. Using the browser
    • Open the Update Center Content Inspector in the browser and specify the required update center by specifying the NetBeans version and the update center type. (Alternatively, you can also provide the URL for the update center directly).
    • In the resulting list, right-click on an nbm and select 'Save As...' to save the file locally.

How to install modules offline?

  • Invoke plugin manager via 'Tools | Plugins' (or, for pre-6.0 versions, the AutoUpdate wizard via 'Tools | Update Center' ).
  • Select the 'Downloaded' tab in the plugin manager (or for pre-6.0 versions, 'Manually Installed modules' radio button)
  • Follow the wizard.
  • More info can be obtained from NetBeans 6.0 online help.


Comments:

Just FYI, the very last "online help" link returns "404 Not Found".

Posted by Jiri Kovalsky on March 12, 2008 at 12:27 AM PDT #

I have updated the link to point to the correct url. Thanks for the feedback.

Posted by karthikr on March 12, 2008 at 03:34 AM PDT #

It would be much more convenient, if netbeans provides offline patches as one bundle installer.

Posted by Serhiy Brytskyy on March 24, 2008 at 05:45 PM PDT #

The patches for NetBeans 6.0/6.0.1 are available as a bundle at:
http://sunsolve.sun.com/search/document.do?assetkey=1-21-137055-02-1

Of course for a given patch, right now there is no way to know the patch id (namely 137055-02 for NetBeans 6.0/6.0.1). We will follow up on this and see how best to make this info available to users.

In the meantime, one should be able to go to sunsolve.sun.com and search using the keywords 'netbeans 6.0 patch'.

Posted by Karthik on March 30, 2008 at 06:52 AM PDT #

What about 6.0.1 ? Or patches for 6.0 are relevant for 6.0.1 too?

Posted by Serhiy Brytskyy on March 30, 2008 at 08:02 PM PDT #

Yes. Both 6.0 and 6.0.1 connect to the same update center; the ide will only bring in the updates that are relevant to the version of the running ide.

For more info: http://www.nabble.com/Re%3A-NetBeans-update--p15347309.html

Posted by Karthik on March 31, 2008 at 02:07 AM PDT #

We have updated the patches page (http://wiki.netbeans.org/NetBeans6.0PatchesInfo) to include a reference to the zip-bundle on SunSolve, as follows:
# Offline download : The patches can also be downloaded as a bundle in zip format from SunSolve

Posted by Karthik on March 31, 2008 at 10:23 AM PDT #

hey thank u very much dude!!!!
it was really very helpful!!!!

i was able to install jmakiSample plugin file!

but whenever i open one sample of that, it shows referencing errors!
it shows error for -
import javax.servlet.jsp.\*
import javax.servlet.\*
import javax.servlet.jsp.tagext.\*
and thus for related components!!

pls help!!!

Posted by sahil on June 12, 2008 at 07:09 PM PDT #

In general reference problems arise because the jar (or in some cases the NetBeans module) that provides the required classes is not in the classpath. The classpath os usually decided by the list of Libraries added to a project.

In your case, are you able to compile and run the program itself (in other words do you only see the errors in the editor but building itself is fine)? Or does building also fail?

I would suggest that you open an issuezilla (http://www.netbeans.org/community/issues.html) bug; once the bug is opened, you can attach your project and ide log file which would help the engineers in evaluating the problem.

One other note: javax.servlet is part of servlet.jar which is shipped with Java EE (J2EE). For a web or j2ee app, the required libraries should be automatically added by the ide. Can you check in the project properties whether a valid server has been selected?

A couple of URLs that may be of use:
http://www.netbeans.org/kb/60/web/framework-adding-support.html#installing
http://weblogs.java.net/blog/caroljmcdonald/archive/web_applications/index.html

Posted by Karthik on June 13, 2008 at 09:06 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

A blog for NetBeans users maintained by NetBeans Support team. For professional support, please check out Support Resources.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today