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 Mon 01 Sep 2014, 07:48
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
DIY - How to Install Java
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [43 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Tue 15 Sep 2009, 09:05    Post subject:  

utensil wrote:
How do you run .jar files?

The Java Virtual Machine works fine in windows, but I can't run java executable files in puppy. Do I need a pet for that?


perhaps this will help

how i installed free jin online interactive remote players chess i.e. play against other real people not a computer, into puppy4,2.1
have as above java in /mnt/home/home/user/My Documents/puppy/jre1.6.0_15/ i.e. not in the pup_save
download jin chess from http://www.jinchess.com/unix_download, click it and extracted to /mnt/home/home/user/jin-2.14.1/
then dragged and link absolute the file named jin from /mnt/home/home/user/jin-2.14.1/ into directory /root/bin/
then dragged and link absolute the file named java from /mnt/home/home/user/My Documents/puppy/jre1.6.0_15/ into directory /root/bin/
then click on the jin link in directory /root/bin/ and jin chess will start.
then optionally you can drag and drop the jin link from /root/bin/ to the desktop:
tell us if it works for you.
local installed jin install saves waiting for the applet to download every time which is what occurs if you use your java enabled browser to play/connect .

_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send private message Visit poster's website 
mary john
Guest


PostPosted: Thu 24 Sep 2009, 09:03    Post subject:  

Hey all,
If u want to install Java then u must follow this path
1. Create new directory /usr/java
2. www.sun.com, Java, Downloads...Download Free Java Download Linux Self Extracting File
3. Save it to disk, save jre-6u15-linux-i586.bin to /usr/java
4. In Rox window of /usr/java right-click jre-6u15-linux-i586.bin's icon, Properties, check to give owner execute permission, close dialogbox
4. In Rox window of /usr/java right-click in whitespace
5. Window --> Terminal here. In terminal window run
6. Code:
./jre-6u15-linux-i586.bin


7. Press PgDn then R to go straight to bottom of EULA
8 yes {Enter}
9. In same terminal window (ignore error messages) (you can highlight each of these lines then middlemousebutton to paste after # prompt in rxvt window): Code:
cd /usr/lib/seamonkey/plugins
rm libjavaplugin_oji.so
ln -s /usr/java/jre1.6.0_15/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so
mkdir /usr/lib/mozilla/plugins
cd /usr/lib/mozilla/plugins
rm libjavaplugin_oji.so
ln -s /usr/java/jre1.6.0_15/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so
mkdir /root/.mozilla/plugins
mkdir /root/.mozilla/plugins/java
cd /root/.mozilla/plugins/java
rm libjavaplugin_oji.so
ln -s /usr/java/jre1.6.0_15/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so


10. In Seamonkey, Edit-->Preferences-->Advanced (click on the +)-->Scripts and Plugins
Check Enable JavaScript for Navigator and for Mail & Newsgroups,
click Advanced (the word Advanced) and check Enable Java.
Close Seamonkey.
Reboot the computer.


11. Start Seamonkey.
Surf to www.sun.com, Java under Downloads, "Download", "Do I Have Java?", and you should in about 60 seconds see the
"Congratulations!
You have the recommended Java installed (Version 6 Update 15)."
notification.

12. Done.

hey, i hope u don't get any problem after do this coding
Back to top
xman


Joined: 24 Sep 2009
Posts: 145

PostPosted: Thu 24 Sep 2009, 10:03    Post subject:  

I have old pc and 4.30-k2.6.25.16 on it. I try new kernel, but puppy was seized with panic at startup. Shocked

At first I have to thank playdayz for Firefox-DIY. I installed your pets, downloaded and zipped old 3.5.2 from mozilla archive, and then updated it online to 3.5.3.

I have used old java-jre-6u14.sfs, but during the last few days I have done some minor experiments using java-jre-6u16. Browsers and atunes are now more stable than ever in my few puppy days. I find this java DIY-install more difficult than to use pet or sfs found from http://koinunoesa.blog46.fc2.com/blog-entry-81.html. Thank You very much, nikukyu. Very Happy

Finally, I tested new java-jre-6u16.pet installation using it briefly with opera 10, firefox 3.5.3, seamonkey 1.1.18, atunes and oxygenoffice. I set atunes to play Frank Zappa's “Penguin in Bondage”, firefox to play Skinny Puppy's “Pro-Test” from youtube, then I click oxygenoffice to open very large file and finally, I turn “Pro-Test” from youtube on full screen mode. This was a magical moment: Everything worked fine and nothing tilted. Cool
Back to top
View user's profile Send private message 
swiatmar


Joined: 09 Aug 2008
Posts: 241
Location: Danube, AT

PostPosted: Tue 27 Oct 2009, 08:33    Post subject:  

Hallo!!
Does anybody knows how to do this in xfce? I don't have rox. How do I change the permission? Until now i get always the massage :permission denied
regards
mar
Back to top
View user's profile Send private message Visit poster's website 
imnotrich

Joined: 02 Jun 2006
Posts: 44
Location: Northern California

PostPosted: Tue 27 Oct 2009, 19:23    Post subject: Update java install instructions for 4.3.1 please  

Followed the step by step instructions to the letter, still no joy.

Also found a script entitled "install java" elsewhere in these forums. Same result.

Java won't run. Java web pages tell me only that "something is wrong" or that my browser does not have Java enabled but I do indeed have Java enabled in Sea Monkey.

I've also tried Firefox 2 (newest firefox is 3.5) which is the only fox in the Puppy repos.

Anybody get this to work yet?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 
playdayz


Joined: 25 Apr 2008
Posts: 3788

PostPosted: Sun 01 Nov 2009, 22:40    Post subject:  

@ imnotrich, where those mary john's instructions (several messages above here) to the letter or mine? I could try to help if you could list what you did and what the results were for each step--that is, just for instance, did you get a java folder named jre-1.6.0_16 after you ran the java install? Were you able to run the java install, etc. There is an alternative to use one of the java.sfs files prepared by community members. I have used them in the past and they worked well. However, the only one a quick search turns up is java 1.6 update 14 by Wolf Pup; maybe someone will post an update. http://www.murga-linux.com/puppy/viewtopic.php?search_id=1161907159&t=27341
Back to top
View user's profile Send private message 
imnotrich

Joined: 02 Jun 2006
Posts: 44
Location: Northern California

PostPosted: Mon 02 Nov 2009, 18:25    Post subject: diy's java install  

I don't recall who the original posters were, and because of how this forum is organized I doubt I'd be able to find them again easily.

One was a step by step procedure to download from Sun, folders to put it in, symlink creation and all.

Another was a script to run called install java.

After each procedure I went to various java test pages and they tell me it's not enabled in my browser, but seamonkey claims it is enabled.

I'm not adept enough to write these programs and scripts myself, I suppose given enough time I could learn but for those of us who need our computers to just work, tinkering should be kept to a minimum. Now that java is openly available I don't see why it's so difficult in so many distros, not just puppy but I'm getting a bit off topic.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 
mathew

Joined: 03 Nov 2009
Posts: 3

PostPosted: Thu 05 Nov 2009, 01:21    Post subject:  

Hello All
I am Mathew and i want to install Java so which tools to first download and how to install it please tell me and when i download the Java kit so its in the full version?
Thnaks
Back to top
View user's profile Send private message 
playdayz


Joined: 25 Apr 2008
Posts: 3788

PostPosted: Thu 05 Nov 2009, 20:24    Post subject:  

imnotrich and mathew, these DIY articles are for people who *like* to tinker Wink and thereby understand what is going on underneath the surface. i think the instructions are something that anyone can follow though--no doubt there could be a learning curve. i suggest the instructions in the first article (which is mine) but someone else has added a different set--they both have the same purpose. I would suggest reading the whole first page of this forum in order to try to maximize learning if you continue to DIY. There is a lot to be said for things just working, I agree, and the best guess I have for that is wolf pup's java (link above). As I recall there are also some puplets that have java installed--those could be found by browsing or searching the forum category "Puppy Derivatives."
Back to top
View user's profile Send private message 
xman


Joined: 24 Sep 2009
Posts: 145

PostPosted: Fri 06 Nov 2009, 04:52    Post subject:  

Sun has published a new version of java. This 6u17 release contains fixes for one or more security vulnerabilities (http://java.sun.com/javase/6/webnotes/6u17.html).

Sad So, I replaced excellent 6u16.pet by DIY-install of 6u17. Now seamonkey 1.1.18, firefox 3.5.5, Gooo 3.1.1 and Opera 10.01 are recognizing java-jre-6u17, but aTunes has gone. I did some dirty work with DIY-opera until it accepts DIY-java. Now it is time to wash my hands and wait for an excellent 6u17 pet. Very Happy Aqualung included 4.31 is so nice music player that I can live for a while without aTunes.
Back to top
View user's profile Send private message 
didik


Joined: 05 Jan 2009
Posts: 44
Location: Bandung, Indonesia

PostPosted: Fri 20 Nov 2009, 07:50    Post subject:  

I have jre-6u17-linux-i586.pet run on firefox-3.5.5.

It works on my Puppy 4.3.1
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
imnotrich

Joined: 02 Jun 2006
Posts: 44
Location: Northern California

PostPosted: Fri 20 Nov 2009, 13:03    Post subject: java diy  

Regards learning curve for those DIY guides, I'm fluent in English so that's not the issue. Following those well articulated steps verbatim did not solve my problem. There were no java pets or dot pups listed either.

Java, flash, misc. plug ins and a decent set of web fonts plus other basic functionality needs to be included in a distro or at least easily available.

Puppy has long neglected wifi encryption too. Works great with WEP, but my network is wpa2 and Puppy still does not support wpa2 tkip/aes out of the box.

If said distro is not intended for use on the web or a network then that's another story, in which case you might as well delete e-mail, browsers, modem and nic/wireless drivers.

Sorry this turned into a bit of a rant. I know Puppy represents an enormous amount of effort from many very talented people, but I wish the developers would focus on basic functionality and leave the obscure stuff for those who like to tinker.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 
xman


Joined: 24 Sep 2009
Posts: 145

PostPosted: Fri 20 Nov 2009, 16:39    Post subject:  

Nikukyu has uploaded jre-6u17 pet and sfs (http://koinunoesa.blog46.fc2.com/blog-entry-99.html). They are certainly very cool but they come too late for me because I have used two weeks half-diyded jre-6u17. This is very OK with aTunes 1.13.5 Very Happy, seamonkey old, firefox 3.5.5 and opera 10.01.

My steps (Puppy 4.31-k2.6.25.16):
1. Install 6u14.pet (http://puppylinux.asia/tpp/bugs/java-1.6u14.pet).
2. Delete java folder from /usr.
3. Download jre-6u17-linux-i586.bin file (http://javadl.sun.com/webapps/download/AutoDL?BundleId=35675).
4. Unpack jre-6u17-linux-i586.bin file to /usr (run ./jre-6u17-linux-i586.bin).
5. Rename new jre1.6.0_17 folder to java.
6. Configure browser if needed (java support for firefox, flock, iceape, icecat, iceweasel, mozilla, opera, and seamonkey).
Back to top
View user's profile Send private message 
mcewanw

Joined: 16 Aug 2007
Posts: 2338
Location: New Zealand

PostPosted: Sat 21 Nov 2009, 04:04    Post subject: export java paths  

I found this useful. Allows the system to find the java bits and pieces whilst allowing you to install java outside your pupsave in:

From thread post: http://www.murga-linux.com/puppy/viewtopic.php?p=123133&search_id=366742748#123133

GuestToo wrote:

in /etc/profile.local, i have:

export JAVA_HOME=/usr/jre
export PATH=$PATH:$JAVA_HOME/bin

/usr/jre is a symlink to where i have Java installed ... /mnt/hda15/jre1.6.0_01/


EDIT: Since, as playdayz says, Openoffice finds java automatically if the folder is in /usr/java, it would probably better to change the above two lines in /etc/profile.local to:

Code:

export JAVA_HOME=/usr/java
export PATH=$PATH:$JAVA_HOME/bin


and make /usr/java (instead of /usr/jre) a symlink to where you have java installed.

Note that Puppy 4.3.1, for example, doesn't include the file /etc/profile.local by default. You therefore need to create a blank text file /etc/profile.local and include the above lines (and make the above suggested symlink to where you have your java installation).
Puppy will automatically read the file /etc/profile.local on reboot.

In addition, if you then create a shell script called application_x-jar in ~/Choices/MIME-types you should be able to simply click on .jar files to execute them from ROX. The file application_x-jar should contain the likes of:

Code:

#! /bin/sh
exec java -jar "$1"


[Note: I don't have java on my system at the moment, so I can't actually test the above code at the moment; I'm "guessing" the option -jar from memory.]

This uses the MIME-type mechanism to control the execution. See the following Howto on mime file type handling for an explanation of its operation:

http://www.murga-linux.com/puppy/viewtopic.php?p=363990#363990

EDIT: An alternative to manually creating an application_x-jar script in ~/Choices/MIME-types is to right click on a jar file and set Run Action to:

Code:

java -jar "$1"


[or: java -jar "$@" should be fine I think]

That action will automatically create a application_x-jar shell script in the folder ~/.config/rox.sourceforge.net/MIME-types

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send private message Visit poster's website 
didik


Joined: 05 Jan 2009
Posts: 44
Location: Bandung, Indonesia

PostPosted: Sat 21 Nov 2009, 09:45    Post subject:  

xman wrote:
Nikukyu has uploaded jre-6u17 pet and sfs (http://koinunoesa.blog46.fc2.com/blog-entry-99.html). They are certainly very cool but they come too late for me because I have used two weeks half-diyded jre-6u17. This is very OK with aTunes 1.13.5 Very Happy, seamonkey old, firefox 3.5.5 and opera 10.01.

My steps (Puppy 4.31-k2.6.25.16):
1. Install 6u14.pet (http://puppylinux.asia/tpp/bugs/java-1.6u14.pet).
2. Delete java folder from /usr.
3. Download jre-6u17-linux-i586.bin file (http://javadl.sun.com/webapps/download/AutoDL?BundleId=35675).
4. Unpack jre-6u17-linux-i586.bin file to /usr (run ./jre-6u17-linux-i586.bin).
5. Rename new jre1.6.0_17 folder to java.
6. Configure browser if needed (java support for firefox, flock, iceape, icecat, iceweasel, mozilla, opera, and seamonkey).


Why do you need 6u14.pet?

Just simple single click jre-6u17*.pet from rox to install and let pinstall.sh do symlinking, etc.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
Display posts from previous:   Sort by:   
Page 2 of 3 [43 Posts]   Goto page: Previous 1, 2, 3 Next
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.1054s ][ Queries: 13 (0.0095s) ][ GZIP on ]