Java, business and... NetBeans ! [[ Jonathan Lermitage ]]

A Weblog about Java, Business Technologies and my favorite IDE : NetBeans. And a few other tricks ;)

Wednesday 16 May 2012

TikiOne-Steam-Cleaner 1.2.1 : localized, faster, better

Update (Wednesday 16 May 2012) :

Version 1.3.0 it out ! It introduces many changes (the changelog file is shipped with the program package). Click here to download (322KB).
As usual, it is a Java program. If you don't have installed Java on your system, you can use a version which already includes it : click here to download (27MB).

PS : I can now devote more time to complete the tutorial on creating dictionaries for the NetBeans online spellchecker ;)
See you soon.

Update (Saturday 12 May 2012) :

Version 1.2.2 has been released. It introduces an only one change : at first launch, the default language is now selected according to the operating system's settings.

The next version, 1.2.3 (or 1.3.0, depending on the importance of changes) will arrive soon. It introduces :

  • new translations (added Spanish and German languages, and updated English and French).
  • a reworked UI (User Interface).
  • more redistributable package patterns (thx to Petr Kudlička).
  • experimental redistributable package patterns (optional).
  • replaced the executable file (generated by Bat-To-Exe-Converter v1.6) by a windows batch file (BAT) : some antivirus softwares reported it as a malware (this is a false-positive alert, probably due to unreliable heuristics). Avira Antivir has announced a fix for this false-positive alert in a future update of its virus definitions database.
  • etc...

Original (Thursday 26 April 2012) :

TikiOne Steam Cleaner is now 1.2.1. This version :

  • is faster than previous versions.
  • is available in English and French.
  • makes redistributable packages installers detection safer (it will avoid many false-positive directories detections).
  • has an executable file (.exe), more convenient than the good old .jar file.

You can check its WebSite : http://steamcleaner.tikione.fr. You'll find English and French documentation, download links, etc. There are comments powered by Disqus, don't hesitate to ask questions and provide feedback.
Click this link to download the latest version.

tikione-steam-cleaner-1.2.1-main.png

In addition, I'm proud to mention a CanardPC paper (the best French magazine about PC video-games) : www.canardpc.com/news-52777-steam(...).html.
Last but not least, TikiOne Steam Cleaner is now registered on Softpedia and Softoxi (with a video review).

TikiOne Steam Cleaner is developed with NetBeans and Java 6. The executable file is generated with Bat To Exe Converter.

Friday 20 April 2012

How to build NetBeans 7.1.1 from sources

Step 1 : checkout the NetBeans 7.1.1 FCS sources Mercurial repository

  1. download and install a Mercurial client. You can find command-line and GUI programs at http://mercurial.selenic.com.
  2. go the the directory that will contain the NetBeans sources and check out the http://hg.netbeans.org/main-releases/ URL.
    You can do it with the command-line : hg clone http://hg.netbeans.org/releases/. It will download NetBeans sources and the Mercurial change-set : expect a few GB of free space.
  3. now, we have all NetBeans releases sources. We need to switch to NetBeans 7.1.1 sources only, not the latest version (something like NetBeans 7.2 DEV).
  4. go into the releases directory and launch the Mercurial command : hg checkout release711_fcs.

TIP : how do I know the release711_fcs tag ? Go to http://hg.netbeans.org/releases/ and look at the tag section : you have a list of the latest tags. release711_fcs means NetBeans version 7.1.1, First Customer Shipment (FCS).

Step 2 : build the NetBeans IDE from sources

You can now start your NetBeans IDE and load the nbbuild project. The displayed project name will be NetBeans Build System :

nbbuild.png

Nota : the error badge is normal. It will disappear when building the IDE.

Now, you only have to do two actions, via the contextual menu (right-click on the project) :


  1. launch the Build action. It will be fast and won't generate any error.
  2. launch the Build IDE (no ZIP file) action. It will take a long time, depending on your computer performances.
    If you encounter any build error, you can try the Clean and Build action, the retry Build IDE (no ZIP file).

nbbuild_make.png

You can now go to the releases/nbbuild/netbeans/ directory : in contains the built IDE. You'll find the Netbeans executables for Windows and Linux in the bin subdirectory. Don't forget to customize the etc/netbeans.conf file to set a JDK location, etc.

Wednesday 29 February 2012

GlassFish 3.1.2 - My remote admin doesn't work. What the hell ?

sparky_3.1.2_blue.gifGlassFish Server 3.1.2 has just been released. If you already have installed it, you probably tried to connect to the administration page from an other computer (in my case, GlassFish is installed on a dedicated server).
If you don't have modified security configuration, you must face a problem : you cannot login to GlassFish administration page, and it shows a message like Secure Admin must be enabled to access the DAS remotely.

This kind of security rule is not new, but GlassFish 3.1.2 now enables it by default : you have to enable Secure Admin first to login remotely.

To activate Secure Admin, you only have to :

  • start GlassFish.
  • go to the "bin" directory of your GlassFish installation.
  • run the "asadmin enable-secure-admin" command. You will have to type admin username and password.
  • restart GlassFish.
  • you can now go to the GlassFish administration page remotely (http://YourServerAddress:4848/). Note that you will be automatically redirected to the secured admin page https://YourServerAddress:4848/. You can log in.

Nota : I have noticed that Secure Admin doesn't work if you have changed the default admin port (4848). To use an other admin port, you may have to make some additional configurations.

Monday 27 February 2012

How to download the "Axis2 Support" plugin for NetBeans

You have probably noticed that some unmaintained or buggy plugins have been removed from NetBeans 7.1 default Update Centers (UC), like the Axis2 Support plugin. They are available if you use an old version of NetBeans (every version of NetBeans has its own default Update Centers, so unmaintained or buggy plugins are removed from newer versions of Netbeans).

To download these old plugins, you can simply register an Update Center : the Dynamic Development UC.
Go to Tools, Plugins, Settings and Add.

  • Name : Dynamic Development UC
  • URL : http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz

DynamicDevelopmentUC.png

You can now reload the list of available plugin : the Axis2 Support plugin is here.

Nota : with this Update Center, you'll have two available updates in the Updates tab. Please do not download them, they could make your installation unstable.
When you have downloaded the plugins you were searching for, you can simply disable this Update Center : you won't be annoyed with unstable updates.

Friday 17 February 2012

Contribute to an Open Source project : what does it mean ?

Contribute does not mean debug thousands lines of code per day or write documentation, you can help in many different ways and spend quality time with some very interesting people !

I will talk to you about my own experience:

A few months ago (Oct 2011), the NetBeans community was looking for two new plugins validators. I had never joined such a project, and I decided to try to reach one. I took the time to reflect on my motivation (everybody has already started a great project, then just give up one week later : I wanted to avoid it) and has therefore responded to the announcement in a honest manner. I let you imagine my excitation (and pride !) when it learned me that I was chosen.

What is the validation of the NetBeans plugins ? It is very simple and explained on the webpage : http://wiki.netbeans.org/FaqPluginVerificationDecide.

To summarize, we are informed of requests for audits of plugins, and - after test - can choose if the plugin will be validated or not (Note : we are not required to validate all plugins). A plugin is validated if at least two testers validate it. If not even a validator invalidates a plugin, it will be considered invalid.

A plugin is validated if it can be installed on NetBeans, disabled, and its installation and uninstallation will not corrupt NetBeans. The criteria of qualifications to check are explained on the webpage : http://wiki.netbeans.org/PluginPortalQualityCriteria.

Validate a plugin can be fast and interesting. Interesting because it allows you to discover plenty of interesting features. In addition, the NetBeans Plugins Validators team is very cool !

That's all ? Yes, that's all.

Many free and / or Open Source projects seek help (NetBeans, Eclipse, Firefox, Open Office, etc.), and offer very nice works. Then be not frightened, and go ask them what kind of assistance they seek !

Friday 3 February 2012

TikiOne-Steam-Cleaner : the best companion of Steam users

I'd like to present a tool I have recently developed : TikiOne-Steam-Cleaner. Only Windows Steam users are concerned.

  • the good old time :

When you installed a video game from a CD or a DVD, you installed some redistributable packages too : DirectX, Games For Windows Live Redist, VC Redist, Rapture3D, NVidia PhysX Redist, etc. They were installed from the CD/DVD, and those installers didn't stay on your hard drive.

  • now, Steam, the problem :

The Steam application allows you to download games from the Internet and install them, but what about these redistributable packages ? You probably saw they are installed the first time you launch your game, OK, but what happens to these files when they go wasted ? The answer is very simple : Steam doesn't delete them. An example : install the first complete season of Sam & Max (6 episodes) : every episode is about ~300MB. For each of them, you can count 100MB for the DirectX redistributable package. Yes, it is about a third of the game files size, and they are not removed by Steam. For 6 episodes, you could save 600MB. Imagine what you could save for 10 or 20 games.

  • the solution :

A little tool that is able to list every redistributable package stored on your Steam directories, and allows you to remove them. This is the goal of TikiOne-Steam-Cleaner. This is a very simple program : set the Steam SteamApps folder (this is a sub-folder of the Steam application), click Search, you choose what file or folder you want to remove. A screenshot :

tikione-steam-cleaner-1.0.8-main.png

This tool is developed with NetBeans 7.1 and Sun's JDK5. It is free (LGPL) and OpenSource. Check SourceForge TikiOne-Steam-Cleaner download page, download the latest version, unzip it, and launch the tikione-steam-cleaner-x.y.z JAR file.

To finish, I'd like to thank CanardPC (the best French magazine about PC video-games) users, who gave me a wonderful feedback and many ideas.

Nota : a next version (1.1.0 or 1.2.0) will introduce language translations and some UI enhancements.

Friday 30 December 2011

TikiOne-INI : another Java library to handle INI text files

I'd like to present a small Java library I have developed : TikiOne-INI. This library is designed to provide advanced support for INI text files. There are Java 1.4 and Java 5 versions, and main characteristics are :

  • it handles INI files only. It has not been complicated to support extra formats like Windows Registry REG files, etc : one library for one goal.
  • it is documented (Javadoc + tutorials) and easy to use.
  • it is highly configurable : you can customize INI file format support, disable and enable a lot of features, and tweak some performance aspects.
  • it supports most common INI features : basic and advanced features like UTF-8 escapes, line concatenation, shortcuts to sections/keys, calls to System properties, etc.

TikiOne-INI is OpenSource and distributed under the GPL license. You can find it at : Sourceforge.net TikiOne-INI website

Tuesday 27 December 2011

Dictionaries Plugins validation - PMD plugin for NetBeans updated

Hi everyone,

I'm proud to announce three things :

  • I am one of the new Plugin Verifiers for the NetBeans Community (my nickname : ent38). Thanks to Jiří Kovalský and all the team !
  • the French, German and Spanish dictionaries for the NetBeans online spellchecker are now validated : you can find them directly from the NetBeans Update Centers, for NetBeans 6.9, 7.0 and 7.1.

NetBeansUpdateCenters_MyDictPluginsFRGERSPA.png

  • I have packaged a version of the PMD plugin for NetBeans with PMD 4.2.6. You can download it here. I have set the version to 2.2.7.1, so you can upgrade your 2.2.7 version (which is built around PMD 4.2.5) if you already have it.

I wish you happy holidays !

Monday 12 September 2011

Unit Tests Code Coverage Plugin (updated for NetBeans 7.0)

Hi everyone,

You may know the Unit Tests Code Coverage Plugin for NetBeans. It provides a good way to see testing coverage results within the NetBeans IDE. It works with EMMA and is initially developed for NetBeans 6.0/5.0.
Unfortunately, this plugin is not compatible with NetBeans 7.0.x. In addition, it is hard to find a link to download the NetBeans 6.x version of this plugin (the link you can find in the plugin page leads to a tutorial). To finish, its maintenance seems to be stopped.

So, I've decided to package a NetBeans 7.0.x compatible version, and provide a NetBeans 6.9 version too :)

You can find this new version at plugins.netbeans.org(...)for-netbeans-7-0. There is a ZIP file that contains NBM files for NetBeans 6.9.x and 7.0.x.

Hope you'll find it useful.

Sunday 11 September 2011

French, German and Spanish dictionaries for the NetBeans online spellchecker

Hi everyone,

 Here are my three first plugins for NetBeans 6.9.x and 7.0.x : dictionaries files for the online spellchecker. It works like the English dictionaries plugin that you can download from the Plugin Manager. You'll find my plugins in the Plugin Portal update center (already registered in NetBeans), or via the plugins.netbeans.org website.

Please read the installation instructions provided in the plugins.netbeans.org pages before trying them.
Finally, don't hesitate to send me suggestions or additional word lists to complete these dictionaries ;)

Welcome

Hi everyone,

I am a French 27 years old programmer, I work with Java and some business technologies (BPM, SOA, WebServices, etc) and I'll try to share my experience.

This devblog will talk about Java technologies : tutorials and good practices, business, servers, ... and my favorite IDE, NetBeans.

You can find me at the plugins.netbeans.org website, my user-name is ent38, and sourceforge.net/projects/tikione.  

Jonathan L.