Translate

Monday 6 May 2013

Running JADE in Netbeans IDE

What is JADE?

            JADE (Java Agent DEvelopment Framework) is a software framework fully implemented in Java language. It simplifies the implementation of multi-agent systems through a middleware that claims to comply with the FIPA (Foundation for Intelligent Physical Agents) specifications and through a set of tools that supports the debugging and deployment phase. The agent platform can be distributed across machines (which not even need to share the same OS) and the configuration can be controlled via a remote GUI. The configuration can be even changed at run-time by creating new agents and moving agents from one machine to another one, as and when required.

The following steps shows how to run jade in Netbeans:

1. Download latest version of JADE from http://jade.tilab.com.

2. Unzip the compression file & copy it in to C drive.

3. Add jade.jar to your project library. [jade.jar available in jade\lib\jade.jar].

4.Set project configuration as follows:
   (i) Right click on project-> set configuration -> Customize
   (ii) click Run
   (iii) set Main class as jade.Boot
   (iv) set Arguments as -gui

5. Now run your program

The following steps shows how to run jade via command prompt:

1. The first two steps are same as explained in above.

2. Set Environment variable as follows [http://vietpad.sourceforge.net/javaonwindows.html]
   (i) set CLASSPATH as library folder of jdk  [C:\Program Files (x86)\Java\jdk1.6.0_21\lib]
   (ii) set PATH as bin folder of jdk [C:\Program Files (x86)\Java\jdk1.6.0_21\bin]

3. Now open command prompt
   (i) go to jade folder [c:\jade]

4. Give agent name for corresponding class name.
[Eg: java -cp lib\jade.jar jade.Boot -gui [Agentname:Classname]]

Thursday 17 January 2013

How to remove shortcut/hidden files problem in Pen drive/Local drive

Hidden files problem in Pen drive:

            When we inserting our pen drive in system,sometime we found hidden or shortcut of our important files due to we used pen drive in unsure system earlier. let we see how to remove those shortcut files in  pen drive.

In  my system when i inserting my pen drive and create New folder. It shows as New folder(2)->(Because already there is a folder name as 'New folder' but it is hide).




To make visible of hidden files we generally click "Organize-> Folder and search options -> View -> Show hidden files, folders and drives".

Even if you try the above way and didn't get your important files/folders. Try the following step.

* Go to RUN.
Type CMD.
In the opened cmd prompt type following:

                                                            attrib -h -s -r -a /s /d drive_letter:\*.* 

instead of drive_letter type your USB drive letter. My pen drive letter is J: and command look as



Here atrib=attribute, "-"=remove attribute/permits, h=hidden s=system, r=read-only, a=archive, /s=sub directory, /d=directory, drive_letter=the letter of the drive shown in windows explorer (e.g. j:,h: or D:) and *.* is called the wild card for all files.

Now all files and folders will be normal. 



It make visible the hidden files and folders. By using this way you can also delete the unwanted shortcuts/files in the drive.

Local drive issues:

* Copy the following lines into 'New Text file'.
@echo off 
attrib -h -s -r -a /s /d D:\*.*
attrib -h -s -r -a /s /d E:\*.*
attrib -h -s -r -a /s /d F:\*.*
attrib -h -s -r -a /s /d G:\*.*
attrib -h -s -r -a /s /d H:\*.*
attrib -h -s -r -a /s /d I:\*.*
attrib -h -s -r -a /s /d J:\*.*
@echo complete.

* Save the file as bat file (eg: karthy.bat)
* Run this file double click on it.

This is worked in Windows 7/Xp. To run bat file you need administrator privilage..





Monday 24 December 2012

pwd for word

The steps following shows how to set & remove password for word document.

Set password for Word 2007 document:

1) Open the document. 



2) Click File-> Prepare -> Encrypt document





3) Enter your password





4)Re-Type password





5) Now save (ctrl+s) your file.


If anyone try to open file, it ask password



If password correct, it display content of file.

Remove password for Word 2007 document:


1) Click File-> Prepare -> Encrypt document


2) Erase entered password and click O.K button.




Now your password is removed.