Java
Allocate more memory to Eclipse
C:\eclipse\eclipse.exe -clean -vargs -vmargs -Xms256m -Xmx512m -XX:MaxPermSize=128m
Search for a file within a JAR that contains a certain criteria
Recently i had to search within a couple of hundred JAR files to locate which Java package needed to be included in my build path. Fortunately this isn’t too difficult with the help of Cygwin and a little command line script.
export search="search string"; for file in 'find . -name "*.jar"'; do echo $file; jar -tvf $file|grep $search;
done
[…]
Getting Apache working with JBOSS
You first need to download the Apache webserver version 2.2. You will want to start by installing this version of Apache, currently 2.2.8.
Install this to c:\apache2.2\, you may have to use the advanced / custom install option during your installation. Once installed, you will need to download these apache and jboss helper files.
The contents includes:
- mod_jk.so which you will need to place in C:\apache2.2\modules
- modk.conf,
- httpd.conf,
- and workers.properties which will all need to be placed in C:\apache2.2\conf
cheers.
[...]Getting JBoss Server up, running and debuggin in Eclipse Part 2
I assume that you’ve seen my last post about how to get JBoss Server setup in Eclipse.
Now here is a quick tutorial to get JBoss debugging up and running.
Click on Window>Show View>Other… Select Server>Servers In the Servers Tab of Eclipse right click New>Server
For the options use: Server’s host name: localhost
Select the server type: JBoss v4.0 ***Not JBoss, a division of Red Hat JRE: jdk1.5.0_12 Application Server Directory: c:/jboss On the next screen accept the defaults…
If you plan on using Service Capture to capture net traffic on your local machine, then you should install the server on your LAN IP address, not 127.0.0.1. Now you just need to make sure that you have your EAR deployed to your JBoss deploy directory. Click Finish Now for the grand finally right click on the Server and click on Debug. Done.
[…]
Getting JBoss Server Plugin Installed in Eclipse 3.2 Part 1
I have Eclipse 3.2 running and my goal is to use the JBoss IDE server for debugging purposes.
Before we get going on getting the JBoss tools, I am assuming you have a fresh version of Eclipse 3.2 without any of the updates, etc.
If by chance you have a Configuration Problem with your updates, disable all of your non-essential/problematic features. You will need to get the Servers perspective into Eclipse before you start the JBoss plugin install process, otherwise you’ll be in a state where you can’t get any Eclipse updates whatsoever.
STEP 1: MANDATORY
So, for starters go to Help>Software Updates>Search for New features to install and Selected the Eclipse Project Updates and Callisto Discovery Site.
Select all of the items and update them all.
Make sure you install them and and restart the work bench. This will take a long time, and you’ll probably have a lot extra items that you won’t need.
STEP 2: OPTIONAL
This step is optional, so if you’re not interested, move on to step 3.
When Eclipse restarts, go to Help>Software Updates>Search for New features to install.
Click Next New Remote Site: Name: JBoss Server URL: http://download.jboss.org/jbosside/updates/stable
Click Ok Click Finish Check the JBoss Server Check Box

If you’re like me you need a bunch of other Plugins, hence the SeamTools prompt. *********Now I’ve done this on two machines and both worked. Technically you don’t need to to the Find and Install this plugin, but you can if you’d like for future updates. What i did on one machine is unselect all of the items with the Red X. Click Next Check the Radio Button I accept the terms in the license agreements Click Finish Click Install All Click Yes to Restart Eclipse After Eclipse comes back up, just shut it down. We need some other plugins that we’ll download. ******On the other machine all i did was download and install the JBoss Tools. Read on…
STEP 3: MANDATORY You can get the full bundle of JBoss ide downloads from sourceforge. Download the JBossTools-2.0.0.0.GA bundle
Extract it and there will be a features and a plugins directory. Copy these into your eclipse installation. My Eclipse install is as c:\eclipse, there will be a features and plugins directory, just copy over them. Everything in the JBossTools may be individually downloaded and installed as well, but it’s easier and safer to go with the JBossTools-2.0.0.GA-ALL bundle because you can be sure it’s not beta. If you want to download individually go to: http://labs.jboss.com/tools/download/index.html Now, restart Eclipse, you should now have everything that you need to run the JBoss Server. Now if you had not done the full update at the beginning of this blog post, you would run yourself into a situation like below where you need the core server package, but you’d be stuck. STEP 4: Now it’s assumed that you have the jboss server, but if you don’t you can download JBoss 4.0.5.GA.zip. You can find it here. Next post i will show how to set the server up.

[…]