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 Fri 31 Jul 2015, 13:34
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Java JDK and JRE
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [19 Posts]   Goto page: 1, 2 Next
Author Message
OscarTalks

Joined: 05 Feb 2012
Posts: 1089
Location: London, England

PostPosted: Wed 22 Jul 2015, 11:32    Post subject:  Java JDK and JRE  

Please note that other Puppy community members also produce Java packages which may be just as good as mine if not better.

I do not know very much about Java, nor do I use it much, but these packages have worked for me for the tests I have done and for the tasks I have needed to perform (including some which required JDK and not just JRE). Other users have also reported that my packages work for them so if that is the case then I am happy to share.

These packages install the main (numbered) directory under /usr/local/java with symlinks to the executables in /usr/local/bin and the control panel appears in the Utility section of the Menu. The browser plugin is also enabled and working. Go to java.com and click on the "Do I Have Java?" link to confirm. Also test by typing java -version in terminal. Executables and solibs are stripped although this does not reduce the size by a great deal. Also I do make sure that all the ownerships are changed to root:root which seems to be important with these.

Updates to these Java packages are released fairly frequently. As far as I can tell these have to be installed manually by uninstalling the old and downloading and installing the new.

The JDK is considerably larger than the JRE but it does contain the JRE so users should determine which they need or which they wish to install. You don't need both. Because the JDK is so large I will upload it as .pet and .sfs to my copy.com storage. In my Smokey01 storage I will upload the JRE as .sfs and there will be a text file with the copy.com download link for JDK.
https://copy.com/00W3UUzeibWnunSc
http://smokey01.com/OscarTalks

_________________
Oscar in England

Back to top
View user's profile Send private message 
gcmartin


Joined: 14 Oct 2005
Posts: 5277
Location: Earth

PostPosted: Wed 22 Jul 2015, 18:43    Post subject:  

THANK YOU @OscarTalks!

Great idea to post this where 32bit users can get either the JRE or the JDK. Thanks hopefully the PETs ends in WOOFCE as well for those who do distro building.

You file for Java, there, is a pointer to the current locations of both otpions for user selection.

Thanks.

_________________
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 
ASRI éducation


Joined: 09 May 2009
Posts: 3109
Location: France

PostPosted: Wed 22 Jul 2015, 20:01    Post subject:  

Thank you OscarTalks.
Very Happy

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send private message Visit poster's website 
rerwin


Joined: 24 Aug 2005
Posts: 1621
Location: Maine, USA

PostPosted: Thu 23 Jul 2015, 16:34    Post subject: Creation of a standard structure for JRE and JDK packages  

gcmartin, in another thread, wrote:
JAVA libraries: If all developers use a consistent library pathing, it could make life very simple to movements within versions. I am NOT sure what JAVA recommends on the issue of library placements for consistency.
I support this idea and propose that we establish a standard implementation of JAVA that requires only replacement of the downloaded jre packages, with the supporting infrastructure files as a separate package.

I am concerned that there are several, sometimes very different sets of accompanying files, suggesting that some essentials might be omitted from some of the jre SFS packages. I propose that we here in this thread work as a group to create a standard structure for JAVA (jre and jdk), to make this thread the central one for all things related to JAVA.

OscarTalks, would you be open to adapting this thread for that project?

IMHO, the areas we should work on are:
    - Location of downloaded JRE release - /usr/local/java is most consistent with puppy practice.
    - Content of supporting file set for all uses of JAVA.
    - Method of initializing JRE - /etc/profile.d/java, /root/Startup script (?). /etc/init.d/java (?), setting of appropriate linkages to JRE
    - Means of packaging support structure and JRE directory, consistent with woof-CE requirements
    - Automation of the conversion of a JRE package into squash or pet archive

I have collected lists of the files (other than JRE itself) in the various implementations of a JRE SFS file, as a basis for determining and discussing the set to go into the "standard" support package. But I will hold off on details until we decide whether and where we want to hold the conversation.

There appears to be some interest in cleaning up the JRE SFS supply situation, making this a good time to work toward that end. Who's in?
Richard
Back to top
View user's profile Send private message 
OscarTalks

Joined: 05 Feb 2012
Posts: 1089
Location: London, England

PostPosted: Fri 24 Jul 2015, 08:19    Post subject:  

Richard and everyone,
I am always happy to help in any way I can. It would certainly be good to have something better organised for Java in Puppy, maybe a GetJava utility or something. The location of the main directory seems to be something which the user can select. The java.com website mentions /usr/java as a suggestion and I believe others have gone for that. To me it just didn't feel quite right (although I don't think technically there is anything wrong with it) so I went for /usr/local/java. The most important thing to note about any mechanism which downloads java is that it will need to make sure it changes the ownerships. With some of the other packages that folks install as files or directories unpacked from tarballs it seems we get away with it, but not in this case.

I am only a relative novice so wouldn't be able to code scripts or GUIs or anything like that. I just try to learn by tinkering and upload a few bits and pieces from time to time. If I post any packages I would never want other users to feel that they should not post their own versions of the same thing. Likewise I am happy for discussion about Java in Puppy to take place in this thread or otherwise it is perfectly OK by me if folks want to start other threads (if for example someone wants to have editorial control of the first post) and I will chip in there if I feel I have anything to add.

_________________
Oscar in England

Back to top
View user's profile Send private message 
rerwin


Joined: 24 Aug 2005
Posts: 1621
Location: Maine, USA

PostPosted: Fri 24 Jul 2015, 14:06    Post subject:  

OscarTalks,
Thanks for letting us use your thread for development of a standard JRE/JDK setup. I do not want to see more threads for JDK. Better to have a central place for Java issues.

I concur with your idea of a "get_java" script to automate the download and creation of the SFS/pet file. Musher0 had posted one that I will use as a basis. BTW, I can handle the coding stuff, but want to share my thinking here so that others can correct it or add to it to create a consensus product.

My background as a programmer includes the concept of design/code inspection teams, where the details are shared and critiqued within the team, all in the effort to perfect the product. That's the spirit I encourage us to use here.

Here is my idea at this point:
    - The "get_java" script handles the download though SFS/pet file, including owner change and possibly a link to the associated version-related directory (probably based on musher0's install_java script).
    - A separate pet package that can go into woof-CE contains the added files to support the JRE/JDK package.
    - The added supporting files include automatic setup for whatever JRE/JDK version is installed, at bootup and maybe as part of an sfs_load operation.
    - Of the two methods I see for accessing the JRE functions -- a set of links to the package /bin directory versus adding that directory to the PATH environment variable -- I favor the latter, which is what shinobar and gjuhasz use.
Keep in mind that I, too, am not intimately familiar with the fine points of Java, so welcome input from those of you with more Java experience. I am just working with what I see that others have done, so far, with the JRE SFS package.

TIA for any/all assistance with this project.

Note that I am aware of Barry's new work with JDK and will be monitoring what he does, so as to fit in with how he implements JDK.
R
Back to top
View user's profile Send private message 
SmartDuck

Joined: 20 Jul 2015
Posts: 7

PostPosted: Sun 26 Jul 2015, 06:47    Post subject:  

I' m a newbe Puppy Linux (Tahrpup 6.0.2) but not a newbe Linux user.
(Xubuntu/Lubuntu/Bodhi/Vector/TinyCore/Rasbian)
I like the simplicity and speed of Puppy and would like to use it as my main distro.

I love to program android apps and PHP driven websites for my personal projects and use mainly Eclipse. Eclipse and JDK/JRE packages installed fine but java is not found. java --version gives command not found. The path is not set in the environment I think. How to solve this?
Back to top
View user's profile Send private message 
OscarTalks

Joined: 05 Feb 2012
Posts: 1089
Location: London, England

PostPosted: Sun 26 Jul 2015, 07:25    Post subject:  

Hello SmartDuck,
Welcome to Puppy.
How have you installed Java?
The packages posted in this forum should normally be configured to work in Puppy. As mentioned in my first post, my packages have symlinks in /usr/local/bin which ensure that the executables are in the PATH. Another method is to add the path of the java bin directory to PATH in the file /etc/profile and reboot. If you have unpacked a tarball from the java website, make sure the ownerships have been set to root:root

_________________
Oscar in England

Back to top
View user's profile Send private message 
SmartDuck

Joined: 20 Jul 2015
Posts: 7

PostPosted: Sun 26 Jul 2015, 07:59    Post subject:  

I installed java JRE and JDK via the Puppy Package Manager (Ubuntu trusty main repo).
java_eclipse_error.png
 Description   
 Filesize   17.75 KB
 Viewed   98 Time(s)

java_eclipse_error.png

Back to top
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 5292
Location: World_Hub

PostPosted: Sun 26 Jul 2015, 08:07    Post subject:  

State your Java version and how you're running Pup.. USB, hard drive install or frugal?
_________________
>>> Great minds discuss ideas; Average minds discuss events; Small minds discuss people. <<<
Back to top
View user's profile Send private message 
SmartDuck

Joined: 20 Jul 2015
Posts: 7

PostPosted: Sun 26 Jul 2015, 08:19    Post subject:  

Full install on hard drive.
Open JDK version 7
/usr/local/java or /usr/local/bin does not exists.
Back to top
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 5292
Location: World_Hub

PostPosted: Sun 26 Jul 2015, 08:24    Post subject:  

I'd remove that and try the JDK.sfs here. After your dwnld it's rt-clk, sfs_load.

Because Java updates rather frequently, I prefer this proactive approach.

_________________
>>> Great minds discuss ideas; Average minds discuss events; Small minds discuss people. <<<

Last edited by Semme on Sun 26 Jul 2015, 08:29; edited 1 time in total
Back to top
View user's profile Send private message 
SmartDuck

Joined: 20 Jul 2015
Posts: 7

PostPosted: Sun 26 Jul 2015, 08:26    Post subject:  

There is also a cross reference between the openjdk-7-jre-headless and ca-certificates-java package so you can' t uninstall these.
Back to top
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 5292
Location: World_Hub

PostPosted: Sun 26 Jul 2015, 08:32    Post subject:  

You mean symlink? Whatever PPM can't uninstall can be deleted.
_________________
>>> Great minds discuss ideas; Average minds discuss events; Small minds discuss people. <<<
Back to top
View user's profile Send private message 
SmartDuck

Joined: 20 Jul 2015
Posts: 7

PostPosted: Sun 26 Jul 2015, 09:49    Post subject:  

Thanks Semme, the sfs files from shinobar work fine.
I have Eclipse running now Smile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [19 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
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.0846s ][ Queries: 12 (0.0085s) ][ GZIP on ]