Java runtime Sun 1.5.0_08 (updated Oct 25)

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

Java runtime Sun 1.5.0_08 (updated Oct 25)

#1 Post by MU »

You can choose to what drive this Dotpup will be installed.
Use only Linux-drives, or confirm the default "/usr/local".

After installation, you default-Webbrowser is started with this page:
http://www.java.com/en/download/help/testvm.xml

Download: (25 MB download, extracted it is 85 MB !)
http://dotpups.de/dotpups/Libraries/Jre1.5.0_08.pup

Mark
Last edited by MU on Wed 25 Oct 2006, 16:35, edited 3 times in total.

laptopnewbee
Posts: 166
Joined: Sun 20 Aug 2006, 03:43

#2 Post by laptopnewbee »

MU wrote:On my system, the Java-applett loads correct, but I can not see this dancing something.
that's Duke, and thanks to your help i now can see him!

BTW i did see a warning while the install dotpup was running saying that /usr/local had 0 diskspace, but seeing as how the install went on and compleated i would guess that the message came up in error. maybe some tiny oversight in the script caused the message when it was not supposed to come up?
so much to learn, so late a start.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#3 Post by Lobster »

Here is another java test page
http://www.bodo.com/javame.htm

I am using firefox, the java install did not work for me

I am also having problems with other programs
xaralx (stable release) .pup or gzip - finally got it working long enough to do the 1.10ce logo then errors . . .
audacity - not working

NVU I got working
My feeling is (I am using 2.10) there are problems moving to t2 or the new extra compression?)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#4 Post by Pizzasgood »

You need to enable Java in Firefox (unless the installer you used did that, I don't know if the Puppy specific ones do or not). It's in the preferences under content.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#5 Post by Lobster »

:) Thanks for the reminder (I had done that) and thought that would fix it when I remembered originally
. . . but no . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

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

#6 Post by MU »

Lob, please try to find out, where your firefox-folder is.

Something like
/usr/lib/firefox

It should have a subfolder "plugins".
Copy there
/usr/lib/mozilla/plugins/libjavaplugin_oji.so
It is a small symbolic link.

Does that fix it?
If yes, please tell me the full pathname of your plugin-folder, than I'll add it to the dotpup.

Mark

jj_hunsecker
Posts: 3
Joined: Wed 20 Sep 2006, 15:26

#7 Post by jj_hunsecker »

MU wrote:Lob, please try to find out, where your firefox-folder is.

Something like
/usr/lib/firefox

It should have a subfolder "plugins".
Copy there
/usr/lib/mozilla/plugins/libjavaplugin_oji.so
It is a small symbolic link.

Does that fix it?
If yes, please tell me the full pathname of your plugin-folder, than I'll add it to the dotpup.

Mark
I've just downloaded the .pup and installed it. I've created a symbolic link from /usr/local/Jre1.5.0_08/plugin/i386/ns7/libjavaplugin_oji.so to /usr/root/firefox/plugins.

Now when I run the java test page, firefox (v1.5.0.7) dies !

I don't have a /usr/lib/mozilla/ directory, by the way.

Also, what I'm really trying to do is get a swing application to work - Do I need to install java web start as well as the JRE .pup ?

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#8 Post by Lobster »

Yep - that fixed it for me
I have a friend starting a java course, so this is important to them

As far as I remember (I may be wrong) Firefox installs to the tmp directory - I then moved it to /usr/local

Up till now I have used G2's excellent java installer

/usr/local/firefox/plugins/
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

jj_hunsecker
Posts: 3
Joined: Wed 20 Sep 2006, 15:26

#9 Post by jj_hunsecker »

To answer my own questions about running swing apps, java webstart is part of the standard runtime environment. And the program is javaws (doh!). So for me using firefox, I just click on a link for a swing app then select to run with /usr/local/Jre1.5.0_08/bin/javaws.

Web pages with Java applets are still killing firefox though !

laptopnewbee
Posts: 166
Joined: Sun 20 Aug 2006, 03:43

#10 Post by laptopnewbee »

jj_hunsecker wrote:Web pages with Java applets are still killing firefox though !
check your /root/.mozilla/plugins directory for a symlink to the java plugin file, on my machine using puppylinux 2.10 when i have the file symlinked to that directory it crashes my browser regaurdless of any symlink or file copy in the correct directory.

hope that helps.
so much to learn, so late a start.

User avatar
mjg
Posts: 109
Joined: Thu 12 May 2005, 07:50
Location: Kalgoorlie, Western Australia
Contact:

#11 Post by mjg »

To get this to work I had to delete the old java first and create a symlink in Firefox and Flock to the new version.

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

#12 Post by MU »

Today I wanted to watch this site in seamonkey and firefox:
http://www.wetter.com/v2/?SID=&LANG=DE& ... CFROM=0293
But it just told me to install java.
Running firefox from a consolewindow showed me the problem.
The plugin requires a symlink in /lib.
I don't know, why it had worked before with another applett.
However, these commands fixed it:

mkdir /lib/i386
ln -s /usr/local/Jre1.5.0_08/lib/i386/libjavaplugin_nscp.so /lib/i386/libjavaplugin_nscp.so

Then it worked, but did not display the progressbar while loading it.
This issue could be solved like this:

Edit with the texteditor the file /etc/profile.local (create it from new, if it does not exist).
Add these lines:

Code: Select all

export JAVA_HOME=/usr/local/Jre1.5.0_08
export PATH=$PATH:$JAVA_HOME/bin 
Then reboot so that the changes take effect.
I will try to update the dotpup tomorrow or so to do it automatically, but this might be a bit tricky to work reliable, so don't know when I finish it.
(*edit: will have a look at GuestToos dotpup, how he made it, see next message)

Mark
Last edited by MU on Mon 23 Oct 2006, 02:35, edited 3 times in total.

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#13 Post by GuestToo »

i would put it in /etc/profile.local:

export JAVA_HOME=/usr/local/Jre1.5.0_08
export PATH=$PATH:$JAVA_HOME/bin

if you put it in /etc/profile, it will be removed when Puppy upgrades

if grep -qv 'JAVA_HOME' /etc/profile.local ;then
echo 'export JAVA_HOME= ...' >> /etc/profile.local
etc etc

but it's your package ...

what i did in my package was to strip out any JAVA lines from profile.local, then append my "export JAVA" lines

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

#14 Post by MU »

Thanks, updated my instruction :)
Mark

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

#15 Post by MU »

I updated the dotpup.
Now the postinstall-script should setup everything correct.

The browser-plugin installs to /root/.mozilla/plugins/

It creates a backup of /etc/profile, too, just in case I made a mistake.

If you used the old dotpup already, you don't need to download it again, simply run this script instead:

Code: Select all

#!/bin/bash

BASE=`grep dotpupwizard.marker /root/.packages/Jre1.5.0_08.files|grep -v grep| sed "s#/dotpupwizard.marker##"`/Jre1.5.0_08

echo $BASE

if [ ! -f "$BASE/plugin/i386/ns7/libjavaplugin_oji.so" ];then

xmessage -center "
ERROR:
there was a problem creating symlinks,
report it to the forum.

"
exit 1
fi

cd "$BASE"
BASE=`pwd`

# delete Java path from /etc/profile
# create a backup first
cp -ax /etc/profile /etc/profile.$$
sed -i -e "s/.*JAVA_HOME=.*$//" /etc/profile
sed -i -e "s#:\$JAVA_HOME/bin##" /etc/profile

  # set JAVA_HOME and PATH // based on GuestToos installer
  if grep JAVA_HOME /etc/profile.local
  then
    cp -f /etc/profile.local /tmp/pf0
    grep -v JAVA_HOME /tmp/pf0 > /etc/profile.local
    rm -f /tmp/pf0
  fi
  echo "">> /etc/profile.local
  echo 'export JAVA_HOME='"${BASE}">> /etc/profile.local
  echo 'export PATH=$PATH:$JAVA_HOME/bin' >> /etc/profile.local

# this additional symlink seems to be needed
mkdir /lib/i386
rm -f /lib/i386/libjavaplugin_nscp.so
ln -s "$BASE/lib/i386/libjavaplugin_nscp.so" /lib/i386/libjavaplugin_nscp.so



rm -f /usr/bin/java
ln -s "$BASE/bin/java" /usr/bin/java

rm -f /usr/bin/java-vm
ln -s "$BASE/bin/java-vm" /usr/bin/java-vm


# delete symlinks from the first version of this installer

rm -f /usr/lib/mozilla/plugins/libjavaplugin_oji.so
rm -f /usr/lib/mozilla-firefox/firefox/plugins/libjavaplugin_oji.so
rm -f /usr/lib/mozilla-firefox/plugins/libjavaplugin_oji.so
rm -f /usr/lib/firefox/plugins/libjavaplugin_oji.so

# use home instead

mkdir /root/.mozilla
mkdir /root/.mozilla/plugins
rm -f /root/.mozilla/plugins/libjavaplugin_oji.so
ln -s "$BASE/plugin/i386/ns7/libjavaplugin_oji.so" /root/.mozilla/plugins/libjavaplugin_oji.so

defaultbrowser http://www.java.com/en/download/help/testvm.xml &


Mark

User avatar
sbaguz
Posts: 52
Joined: Thu 07 Sep 2006, 09:26
Location: Italy

#16 Post by sbaguz »

Pizzasgood wrote:You need to enable Java in Firefox...
If you remember to select Enable Java in the Advanced section under Preferences, it works flawlessy with SeaMonkey too... :wink:

OverDrive
Posts: 178
Joined: Mon 02 Jan 2006, 05:07
Location: Cleveland, OHIO,USA

#17 Post by OverDrive »

Has anyone figured out how to trim some of the fat out of this install? Having a 85MB Java inside 65MB Puppy just doesn't feel right.

OverDrive
Instant Puppy Fan!!!

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

#18 Post by MU »

There is a version based on free libraries.
I had 2 report that it destroyed pup_save.3fs or pup001, so I marked it as unstable.
But there also were reports, that it worked.
If you want to try, backup first your savefile!

I can't tell you details, you had to search the forum, sorry :oops:
http://dotpups.de/dotpups/Libraries/jre ... STABLE.pup

Mark

OverDrive
Posts: 178
Joined: Mon 02 Jan 2006, 05:07
Location: Cleveland, OHIO,USA

OK, I found a "easy" 12MB reduction

#19 Post by OverDrive »

First thing I did was remove the 1.5.08 install ( BTW Pupget didn't remove it at all) by hand including the symlink in .mozilla/plugins/ and the /Root/.Java/ directory. Then after backing up my savefile, I went ahead and tried the 1.4.2-blackdown version. I had to re-add a symlink to .mozilla/plugins/ and It worked, Albiet, Not as fast as 1.5.08. Also, It did not display the specific Java webpage I want to use it for as well as I wanted. But most importantly it did not munch my savefile! So if any of you want to try it, Here is a report it *does* work and *did not* destroy the savefile. But you will want to test it for your intended use to confirm it's "good enough". The install was around 30MB.

Now, for my intended use I went back to 1.5.08. Did a removal of 1.4.2 first ( same brute force method). Did a reinstall and then went poking around looking for anything that looked like it didn't need to be there for my use. Found a README file in /usr/local/jre1.5.0_08/ , and found this tidbit of info:

-----------------------------------------------------------------------
Optional Files and Directories
-----------------------------------------------------------------------
The following files may be optionally excluded from redistributions.
These files are located in the jre1.5.0_<version> directory, where
<version> is the update version number. Solaris and Linux filenames
and separators are shown. Windows executables have the ".exe" suffix.
Corresponding files with _g in name can also be excluded.

lib/charsets.jar
Character conversion classes
lib/ext/
sunjce_provider.jar - the SunJCE provider for Java
Cryptography APIs
localedata.jar - contains many of the resources
needed for non US English locales
ldapsec.jar - contains security features supported
by the LDAP service provider
dnsns.jar - for the InetAddress wrapper of JNDI DNS provider
bin/rmid
Java RMI Activation System Daemon
bin/rmiregistry
Java Remote Object Registry
bin/tnameserv
Java IDL Name Server
bin/keytool
Key and Certificate Management Tool
bin/kinit
Used to obtain and cache Kerberos ticket-granting tickets
bin/klist
Kerberos display entries in credentials cache and keytab
bin/ktab
Kerberos key table manager
bin/policytool
Policy File Creation and Management Tool
bin/orbd
Object Request Broker Daemon
bin/servertool
Java IDL Server Tool
bin/javaws, lib/javaws/ and lib/javaws.jar
Java Web Start


Well, I deleted them all and went ahead and tested all the links in this thread plus the site for my intended use and everyone of them worked fine. After deleting them all I got a 12MB reduction without any percieved reduction of functionality. YMMV. Hope this helps...

OverDrive

P.S. If anybody finds any other files that are "not needed", please post to this thread. TIA.
Instant Puppy Fan!!!

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#20 Post by Sit Heel Speak »

I installed jre1.5.0.08.pup in a fresh install of Puppy 2.13 final, rebooted, and Java was not fully working...i.e.,

Lobster's alternate "Can I See Java" page http://www.bodo.com/javame.htm said "Yes," I have Javascript enabled, but the Dancing Duke page at
http://www.java.com/en/download/help/testvm.xml
did not perform...

...but I discovered why. When I tried to follow sbaguz's advice, above, I clicked (in SeaMonkey) Edit-Preferences and then the + beside Advanced, and then Scripts and Plugins. Enable Javascript for Navigator was enabled. At first though, I did not realize that I also need to click "Edit-Preferences" and then click "Advanced" itself, not the expansion + beside it, to bring up the Enable Java checkbox. And check it.

Now the Dancing Duke performs.

Hope this saves another newbie some time.

SHS

Post Reply