—
Mon,
26
Jan
2004
—
How do I set up a Java development environment on Debian?
Sun does not allow redistribution of their JRE or SDK. The free VM’s for Java are behind by many versions. For that reason, some work has to be put in to get a usable Java development environment on Debian. I am using Debian Testing (Sarge).
There are two methods to get a Java environment set up: use the Blackdown Debian repository, and roll a .deb with Sun’s SDK.
Blackdown’s Debian repository is a hassle free way to install a Java SDK. The downside is that it lags behind Sun’s official SDK in fixes and features, and the repository is not always available or maintained. You can get information about the repository from www.blackdown.org. Using the repository takes three steps:
- Add
deb ftp://ftp.tux.org/java/debian/ sarge non-free to
/etc/apt/sources.list
- Run
aptitude update
- Run
aptitude install j2sdk1.4 to get the SDK and aptitude install j2re1.4 to get the JRE
Using the latest official release from Sun takes a bit more work, but Debian has made some tools to stream line it a bit:
- Make sure you have “unstable contrib” in
/etc/apt/sources.list
- Run
aptitude install java-package
- Download the J2SDK as a binary file from Sun’s web site. Be careful not to get the bin that unpacks into an RPM.
- Run
fakeroot make-jpkg <j2sdk package> to make a .deb package containing the SDK.
- Run
dpkg -i <SDK.deb> to install the package.
- Run
aptitude install sun-j2sdk1.4debian to get the Debian specific components.
That should give you a fully functional Java development environment. You might also want to install ant. I was impressed that Debian took care of installing the Java plugin for Mozilla for me.
Props go to Byron Clark for giving me these instructions.
—
Wed,
21
Jan
2004
—
Hawking Technology 11M Wireless Ethernet PCMCIA Car
This card has a prism2 chipset and works like a charm. I think it is a great card, and it only cost about $40, including shipping charges. I would recommend this card.
I started off trying to get the linux-wlan-ng driver to work because that is what every HOWTO I found recommended. I found the wlan driver to be a pain to set up, and not very feature complete. I couldn’t get WEP to work, nor could I specify an SSID. The documentation was really poor. To do anything with the card, you need to edit the wlan driver’s configuration files, but the documentation gives no syntax suggestions or examples. I wanted to be able to use different network settings (WEP keys, SSIDs) on my home network than on my work network, but I could find no suggestions how to set that up. It looked like I had to have separate network interfaces for each network setting. Not very helpful.
Recently my friend suggested using the Orinoco driver. I would have tried it earlier, but I didn’t think that it supported prism2 chipsets. It does, and it is sweet. It is much easier to use than linux-wlan-ng. Here is how to set it up under Linux 2.4.22:
- Recompile the kernel:
- Include no PCMCIA/CardBus support under General setup—>PCMCIA/CardBus support.
- Include basic Wireless LAN (non-hamradio) support under Network device support.
- Do not include support for any of the specific drivers under Wireless LAN (non-hamradio).
- Install pcmcia-cs. Check to make sure that it compiled the Orinoco driver in /lib/modules/pcmcia.
- Install wireless-tools. This should give you the iwconfig utility.
- Start the cardmgr service.
- Put the card in the bus, and see if you get an IP address.
- It isn’t very difficult. If you have a problem, check the output of the configuration script when you start to compile pcmcia-cs; it can give you some pointers.
The process is almost the same with the 2.6 kernel, except that the driver is included in the actual kernel. I am very happy with the driver over all.