Java runtime Sun 1.5.0_08 (updated Oct 25)
Java runtime Sun 1.5.0_08 (updated Oct 25)
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
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.
-
- Posts: 166
- Joined: Sun 20 Aug 2006, 03:43
that's Duke, and thanks to your help i now can see him!MU wrote:On my system, the Java-applett loads correct, but I can not see this dancing something.
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.
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
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?)
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?)
- Pizzasgood
- Posts: 6183
- Joined: Wed 04 May 2005, 20:28
- Location: Knoxville, TN, USA
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]
[img]http://www.browserloadofcoolness.com/sig.png[/img]
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
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
-
- Posts: 3
- Joined: Wed 20 Sep 2006, 15:26
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.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
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 ?
-
- Posts: 3
- Joined: Wed 20 Sep 2006, 15:26
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 !
Web pages with Java applets are still killing firefox though !
-
- Posts: 166
- Joined: Sun 20 Aug 2006, 03:43
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.jj_hunsecker wrote:Web pages with Java applets are still killing firefox though !
hope that helps.
so much to learn, so late a start.
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:
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
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
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.
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
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
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:
Mark
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 &
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
http://dotpups.de/dotpups/Libraries/jre ... STABLE.pup
Mark
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
http://dotpups.de/dotpups/Libraries/jre ... STABLE.pup
Mark
OK, I found a "easy" 12MB reduction
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.
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!!!
- Sit Heel Speak
- Posts: 2595
- Joined: Fri 31 Mar 2006, 03:22
- Location: downwind
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
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