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 Wed 01 Oct 2014, 04:15
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
Remastering Lupu 5.11 w/Java Pet
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
tallthom

Joined: 03 Aug 2007
Posts: 10
Location: Southwestern Japan

PostPosted: Tue 23 Nov 2010, 08:11    Post subject:  Remastering Lupu 5.11 w/Java Pet
Subject description: Java directory not included in Lupu 5.11 remaster process
 

I'm working on a project which involves remastering Puppy with a few extra toys. One of which is Java. I used the jre.1.6.22 pet install which works perfectly in my running version.

Then I tried to remaster - all other things I added (most under /opt directory) were included. Java was omitted. I followed the links to java from /opt/java --> /mnt/home/java --> /java

Any reason why the Java PET installs java in such a unique way? And how does one include directories under / for a remaster?

I'm going to install java manually using the jre bin provided by Oracle which I'm pretty sure will solve my troubles, but if I could learn more about the remaster process then I could benefit from the ease of PET installed Java.
Back to top
View user's profile Send private message 
emil

Joined: 10 Nov 2009
Posts: 618
Location: Austria

PostPosted: Thu 23 Dec 2010, 03:16    Post subject: java and remaster  

Hello,

It is a bit later reply on your post on the forum regarding java and remaster.

The reason why Java on the repos installs to mnt/home is that it then takes up no place in the personal savefiles. So if you have multi frugal installs on your hd as many people (esp. developers) have, then you can use one Java installation for all puppies and save that 100 MB in each savefile.

There are other big packages which also use this approach (e.g. open office package).

This is exactly the reason, why it is not included in the remasterprocess, because only files which are installed under / are remastered (and there are exceptions in the /root and in the /etc directory which you have to handle manually).

It is possible to copy the files under /mnt/home back in a location somewhere in / tree (maybe /usr/local/java ... but then you have also to adapt all the symlinks etc. Thats not easy and very errorprone.

I had a similar problem, because I wanted to include Java on a distributed live CD. There you want to have java working effectivly with 1.boot so shifting java to /mnt/home was not a good option.

I have mad a pet from java which is stored traditionally in the savefile.
you could download (prop. you dont need anymore, and there is also new Java 1.6.23 released) from www.mydrive.ch (username: download@sagelive, pwd: mathematics)

EDIT: I removed Java from mydrive (ran out of space), and it is included per default in the later Sage Live Pupplets. USe this downloadlink
http://sage.math.washington.edu/home/emil/sagelive/jre_1.6.0_22.pet

Experience also shows that this is interesting for people who want to remaster something with Java working out of the box.


regards
emil

Last edited by emil on Fri 28 Jan 2011, 03:53; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
tallthom

Joined: 03 Aug 2007
Posts: 10
Location: Southwestern Japan

PostPosted: Thu 23 Dec 2010, 19:25    Post subject:  

Ok! I understand the reasoning behind it. I worked around it by manually installing Java from the Oracle Linux binary file in the /opt directory and linking Java to /usr/local/bin/java.

Then it was included in the remastering process.

Best regards and thanks for the reply.
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4296
Location: Earth

PostPosted: Sat 25 Dec 2010, 23:39    Post subject: JAVA  

tallthom wrote:
Ok! I understand the reasoning behind it. I worked around it by manually installing Java from the Oracle Linux binary file in the /opt directory and linking Java to /usr/local/bin/java. ...
When you say you "manually ..." what exactly do you mean? I'm a newbie and remastering and am trying to follow what's in this thread and specifically yur post on circumvention. Did Lupu have this folder and if so what was required for you to complete your mission..specifically? If can post your links that might help too.

Thanks in advance for your help.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
tallthom

Joined: 03 Aug 2007
Posts: 10
Location: Southwestern Japan

PostPosted: Wed 29 Dec 2010, 01:26    Post subject:  

@gcmartin

1. I went to Oracle's website and found the JAVA JRE 1.6 SELF-EXTRACTING file for LINUX. http://java.com/en/download/manual.jsp

2. I downloaded it into the /opt directory in my Puppy system.

3. I opened a terminal in puppy and navigated to that directory:

Code:
$ cd /opt


4. I made sure the binary file was executable.

Code:
$ chmod 755 <filename>

Note: (<filename> is the name of the JRE binary you downloaded)

5. I executed the binary.

Code:
$ ./<filename>

Note: I run this from the command line because you have to read the text and accept the license agreement. Just hit <enter> until you reach the end of the agreement and then type "y" to accept it.

6. The JRE installs in /opt.

7. I navigated to /usr/local/bin
Code:
$ cd /usr/local/bin


8. I created a symbolic link to the java binary in /opt.
Code:
$ ln -s /opt/<jre_directory>/bin/java


9. That should do it. You can test that your java is seen by the environment by typing the following command:
Code:
$ which java


If it is correctly installed, the system should return the following line to you:
Code:
/usr/local/bin/java


-----

Need more help? Post your reply! Best regards!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
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.0660s ][ Queries: 12 (0.0107s) ][ GZIP on ]