Install JDK, netbeans, Eclipse in Puppy 2.14 (and Muppy0084)

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

Install JDK, netbeans, Eclipse in Puppy 2.14 (and Muppy0084)

#1 Post by MU »

download JDK from http://www.sun.com
http://java.sun.com/j2se/downloads/

I used jdk-6-nb-5_5-linux.bin.
There also is a smaller one without netbeans:
jdk-6-linux-i586.bin

It needs a lot of space, more than I had in my Puppy.
So I saved it in /mnt/sda6/
It required 300 MB temporarily, and 230 MB for the final installation.

To install it, I ran:
./jdk-6-nb-5_5-linux.bin -is:tempdir /mnt/sda2/jdktemp

This gave me an error.
I had to replace the symlink /bin/df with a df binary:
I add it as attachment, extract it to /bin.

Then tried it again.
Now the installer written in Java started, and I could enter the final installation folder.


Finally I created a startscript for netbeans:
/usr/local/bin/netbeans

Code: Select all

#!/bin/bash

/mnt/sda6/java/netbeans-5.5/bin/netbeans
-------------------
To be able to run Java programs, create a file
/etc/profile.local

Code: Select all

export PATH=$PATH:/mnt/sda6/java/jdk1.6.0/bin
Then reboot, or type in a xterm:
. /etc/profile.local

Now in this xterm, this PATH is used.

--------------------
Download eclipse, and extract it.
I used version 322.
Then I ran from the above mentioned xterm:
cd /mnt/sda6/eclipse322/eclipse
./eclipse

You should create a startscript for it, too, like the netbeans example above.


Screenshot of Eclipse:
http://noforum.de/pics/eclipse214.jpg (150 kb)

Mark
Attachments
df.tar.gz
(15.46 KiB) Downloaded 974 times
Last edited by MU on Sat 08 Nov 2008, 15:47, edited 3 times in total.

ralphv
Posts: 42
Joined: Sat 17 Mar 2007, 20:50

#2 Post by ralphv »

Did your eclipse work without mozilla 1.72 GTK? I had to use that to get mine working.(Eclipse 3.21) Also, eclipse gives a funny error if it is run with Java 1.6.0 as the vm, no problem with 1.5.0.

Ralph

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

Eclipse 322 ran out of the box in Puppy 2.14 with the above mentioned downloads, also the Help worked and Javadoc.

I extra tried Puppy 2.14, because I had read about problems with the mozilla-libs before. But I encountered no problems, except the issue with "df".
I did not have devx_214.sfs installed.
Before I installed only very few dotpups, like XFileExplorer and PSI.

Eclipse has an internal option to upgrade.
I did not try that in Puppy yet, but found that at work.
You might try that.

Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#4 Post by MU »

Quick instruction: SDK and Eclipse

Screenshot running the "Hello World" tutorial is attached at bottom.

Other howtos to install SDK/Eclipse:
HOWTO install Java the hard way
http://www.murga-linux.com/puppy/viewtopic.php?t=21505

JDK and Netbeans on Puppy 3
http://murga-linux.com/puppy/viewtopic.php?t=25784

-----------------------------------------

This installation was done in Muppy 0084 mini with addons.sfs.
It includes already a Java runtime (JRE).

downloaded:
java_ee_sdk-5_06-linux.bin
eclipse-jee-ganymede-SR1-linux-gtk.tar.gz

to:
/mnt/sdc3/java/downloads/2008-11-08

Open rxvt.

------------------------------------
SDK:

I first created a symlink:

mkdir /mnt/sdc3/java/5_06
ln -s /mnt/sdc3/java/5_06 /usr/local/java5_06


So I can install it on my external USB-Harddisk, but using the symlink, I always have a defined
path, even if the drives device number should change in future.

Now install it:
cd /mnt/sdc3/java/downloads/2008-11-08
chmod 755 java_ee_sdk-5_06-linux.bin
./java_ee_sdk-5_06-linux.bin


This gave an error about missing temporary space.
So I ran:
mkdir /mnt/sdc3/tmp
./java_ee_sdk-5_06-linux.bin -tmpdir /mnt/sdc3/tmp


This launches the grafical installer.
I choose as installation path:
/usr/local/java5_06

After installation, I was told this:
Start the application server:
/usr/local/java5_06/bin/asadmin start-domain domain1
Start the admin console in a webbrowser:
http://localhost:4848

I did not run these commands, but noted them down for later use.


-------------------------------------------
Eclipse:

I want to install it to
/mnt/sdc3/java/eclipse

So I type:
cd /mnt/sdc3/java
tar -xzvf /mnt/sdc3/java/downloads/2008-11-08/eclipse-jee-ganymede-SR1-linux-gtk.tar.gz

Here, again, I use a symlink to have a defined path:
ln -s /mnt/sdc3/java/eclipse/ /usr/local/eclipse

Now run it:
cd /usr/local/eclipse
./eclipse

After 2 1/2 minutes (Pentium 700, 1 gig Ram), it asks for a workspace, and suggests /root/workspace.
I use a symlink, too:
mkdir /mnt/sdc3/java/workspace1
ln -s /mnt/sdc3/java/workspace1/ /root/workspace
Attachments
eclipse.jpg
(109.04 KiB) Downloaded 932 times
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

swarnick
Posts: 21
Joined: Tue 26 Dec 2006, 03:21

Can't do jdk install - out of disk space error

#5 Post by swarnick »

Hi MU
I am trying to install the java 1.6.21 jdk as the nucleus of a java development system. I am using puppy 5.0.1. I've downloaded the .bin file and moved it to /usr/local/java. When I try to run the installer I get an out of disk space error.

# ./jdk-6u21-linux-i586.bin --tempdir /mnt/sda1/tempbeans
You will need atleast 266132 kBytes of Disk Free
Please free up the required Disk Space and try again

# ./jdk-6u21-linux-i586.bin -is:tempdir /mnt/sda1/tempbeans
You will need atleast 266132 kBytes of Disk Free
Please free up the required Disk Space and try again

I am sure it's the df problem you refer to in your post but I can't follow the instructions for replacing df (they are a little too high level for me). You refer to getting a new df binary but I'm not sure how to do that. I installed the coreutils package using ppm and rebooted but I had the same problem.

Could you please expand on your instructions for replacing df. (1) Where did you get the package. (2) How do you extract the package to a known location so that you can grab a df binary. (3) Do you need to replace the busybox df when the java installation is finished to avoid problems with existing puppy scripts.

I promise to update the thread (or start a new thread) with my experiences getting netbeans/eclipse/java ee/glassfish once I get past this problem.

Thanks in advance
swarnick

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#6 Post by muggins »

Swarnick,

I haven't installed jdk for awhile, but it's usually a painless procedure. Try moving the binary to /mnt/home, then run it. I can't recall whether you then have the option of altering the install location to /usr/local/java, but it doesn't matter, as wherever you install it to, say /mnt/home, you can then just drag the install directory to /usr/local if you want, as java will run from anywhere. You just need to symlink the binaries to say /usr/bin.

panoss
Posts: 198
Joined: Mon 31 Oct 2011, 13:36

#7 Post by panoss »

I installed Eclipse (I think 3.4.1, I'm not sure because I don't have my pc right now) and the internal browser is not working.
Shows the message: " SWT Browser Control is not available".
I read in other posts like this for example, that it has something to do with:
Mozilla 1.4 GTK2 - 1.7.x GTK2
XULRunner 1.8.x - 1.9.2.x
or Firefox.
I installed one of the package managers's xulrunners but it didn't work.
Has anybody made the internal browser work?
Last edited by panoss on Sun 20 May 2012, 19:43, edited 1 time in total.

panoss
Posts: 198
Joined: Mon 31 Oct 2011, 13:36

#8 Post by panoss »

double post

Post Reply