Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 30 Sep 2014, 08:26
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Install JDK, netbeans, Eclipse in Puppy 2.14 (and Muppy0084)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 01 Apr 2007, 09:27    Post subject:  Install JDK, netbeans, Eclipse in Puppy 2.14 (and Muppy0084)  

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:
#!/bin/bash

/mnt/sda6/java/netbeans-5.5/bin/netbeans


-------------------
To be able to run Java programs, create a file
/etc/profile.local

Code:
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
df.tar.gz
Description 
gz

 Download 
Filename  df.tar.gz 
Filesize  15.46 KB 
Downloaded  757 Time(s) 

Last edited by MU on Sat 08 Nov 2008, 11:47; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website 
ralphv

Joined: 17 Mar 2007
Posts: 41

PostPosted: Sun 01 Apr 2007, 17:16    Post subject:  

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
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 01 Apr 2007, 17:35    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sat 08 Nov 2008, 11:26    Post subject:  

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
eclipse.jpg
Description 
jpg

 Download 
Filename  eclipse.jpg 
Filesize  109.04 KB 
Downloaded  600 Time(s) 

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
swarnick

Joined: 25 Dec 2006
Posts: 21

PostPosted: Wed 18 Aug 2010, 10:15    Post subject: Can't do jdk install - out of disk space error
Subject description: Need to replace df (I think) but the instructions are too high-level for me
 

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
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6687
Location: lisbon

PostPosted: Thu 19 Aug 2010, 00:04    Post subject:  

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.
Back to top
View user's profile Send private message 
panoss

Joined: 31 Oct 2011
Posts: 125

PostPosted: Sun 20 May 2012, 15:17    Post subject:  

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, 15:43; edited 1 time in total
Back to top
View user's profile Send private message 
panoss

Joined: 31 Oct 2011
Posts: 125

PostPosted: Sun 20 May 2012, 15:41    Post subject:  

double post
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0669s ][ Queries: 12 (0.0034s) ][ GZIP on ]