WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: dCore-java-installer does not work...  (Read 4196 times)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
dCore-java-installer does not work...
« on: June 30, 2016, 04:18:38 PM »
Attempting to install Java, dCore-java-installer does not work in dCore-wily.

Downloaded  jre-7u79-linux-i586.tar.gz  to  /tmp  from http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html.

cd /tmp and attempt to run dCore-java-installer:
Code: [Select]
tc@box:/tmp$ dCore-java-installer
 
 
 
 
Press [Enter] key once you have downloaded...
cp: cannot stat '': No such file or directory
tar: invalid tar magic
mv: cannot stat './j??1.7.?_??': No such file or directory
cp: cannot stat 'usr/lib/jvm/java1.7/plugin/desktop/sun_java.desktop': No such file or directory
cp: cannot stat 'usr/lib/jvm/java1.7/plugin/desktop/sun_java.png': No such file or directory
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /etc/sysconfig/tcedir/sce/.sce, block size 4096.

Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 4096
        compressed data, compressed metadata, compressed fragments, no xattrs
        duplicates are removed
Filesystem size 0.47 Kbytes (0.00 Mbytes)
        58.97% of uncompressed filesystem size (0.79 Kbytes)
Inode table size 165 bytes (0.16 Kbytes)
        42.64% of uncompressed inode table size (387 bytes)
Directory table size 148 bytes (0.14 Kbytes)
        68.84% of uncompressed directory table size (215 bytes)
Number of duplicate files found 0
Number of inodes 11
Number of files 0
Number of fragments 0
Number of symbolic links  1
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 10
Number of ids (unique uids + gids) 3
Number of uids 2
        root (0)
        tc (1001)
Number of gids 2
        root (0)
        staff (50)
 
Use 'loadsce ' to install this package.

Thanks.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: dCore-java-installer does not work...
« Reply #1 on: June 30, 2016, 08:25:24 PM »
It works fine here through a browser as expected, but I see you downloaded the file first before running the script.  And the script looks for the Java file in the ~ home directory.  What I did do is add Dillo to the list of browsers looked for that can be selected by the menu as well as now the script looks in the current dir or below.  Also, added an -e "existing" option to be able to use an existing Java tar.gz file.  If you look, there is an -r option to use RAM like sce-import does, and a -b option to add to sceboot.lst.

This script is poorly documented, and any help would be appreciated.  Uploaded new version, please test.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: dCore-java-installer does not work...
« Reply #2 on: June 30, 2016, 08:39:45 PM »
Hi Jason. Okay will update the installer and try again with this new information. Also noticed a new sce-update bug, will report separately. Thanks.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: dCore-java-installer does not work...
« Reply #3 on: June 30, 2016, 09:09:19 PM »
Updated script. Now see both Dillo and Firefox in the menu - thanks. Actually wanted it for Firefox but the menu never popped up before, now works fine. I should have checked that the script searches /home for the Java download, i always use /tmp, another point of failure.

Got it running now but couple other issues:

* SCEs now require md5sum files to load, not created by script - minor :
Code: [Select]
Loading jre-7u80-linux-i586...
Missing md5sum file /etc/sysconfig/tcedir/sce/jre-7u80-linux-i586.sce.md5.txt, not loading..

* Newly installed  Java plugin shows in Firefox as outdated. My fault, download page had JRE 7 update 79 and 80 and grabbed the wrong one. Sheesh...Java is worse than Flash. Banking website still fails to run properly though, will try installing the updated version and retest later tonight or tomorrow.

Thanks again for your help.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: dCore-java-installer does not work...
« Reply #4 on: June 30, 2016, 10:16:58 PM »
Ok, will add the md5sum creation, and we can work from there.  Thanks.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: dCore-java-installer does not work...
« Reply #5 on: June 30, 2016, 10:43:35 PM »
Added md5sum creation, as well as making the SCE in scedir/update if the same name SCE is mounted and in use, like with sce-import.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: dCore-java-installer does not work...
« Reply #6 on: July 01, 2016, 11:00:12 AM »
JRE 7 is flagged out of date and vulnerable in Firefox, won't even allow 'always activate'. The current is JRE 8. Revised  dCore-java-installer  to install JRE 8, now my banking site works! Crazy that a banking site requires less than secure Java, their new site feedback questionnaire will indicate same. If anyone knows of a way to simply install a Firefox Java plugin without installing the entire JRE platform please let me know. Searched Google, Firefox add-ons and tinkered without success.

Further modified the script with --help and UI tweaks. Will play around with it next couple days, still needs cleanup modification, may indicate download to /home or /tmp, stuff like that. Hope to submit by the end of this weekend. Question, are there some older dCores that couldn't run JRE 8 (ie. require separate JRE 7 and JRE 8 scripts or select option), should be platform independent right?

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: dCore-java-installer does not work...
« Reply #7 on: July 01, 2016, 01:02:20 PM »
Great.  I had the script look for the file as different browsers download to different places.  But I am good with another solution.  Don't know if one can simply install the plugin file for java plugin without the suite, but if so that would be great. 

I am not sure if the older dCores can or can't run JRE 8, if they can then there is no reason to have a need for 7. 

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: dCore-java-installer does not work...
« Reply #8 on: July 01, 2016, 09:11:51 PM »
I have read a tutorial on how to install Java 8 on Debian Wheezy, so it does appear Java 8 is good across the dCore ports.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: dCore-java-installer does not work...
« Reply #9 on: July 03, 2016, 01:49:19 AM »
Think you're correct. Import search 'openjdk' in dCore-wily indicates Java 6, 7 and 8 available in default repository. Updated script almost complete, final testing, hope to finish tomorrow. Sacrificed some coding time for testing: https://sourceforge.net/projects/domination/ :)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: dCore-java-installer does not work...
« Reply #10 on: July 04, 2016, 02:03:31 AM »
Submitted  dCore-java-installer  update, hopefully works okay for others:
* Now imports latest JRE 8
* Updated /usr/bin links
* Added detailed --help
* Numerous UI tweaks
* Large extension, scavenged Jason's re-nice code
* JRE download browsers: Firefox, Iceweasel, Nautilus, Midori, Chromium
* Removed Dillo, Oracle site requires javascript capable browser to access downloads
* Select list excludes ondemand browsers (ie. must be loaded, loading interfered with script run)
* Now searches /home and /tmp for downloaded JRE *.tar.gz
* Firefox Java plugin created as before
* Chrome/Chromium Java plugin out of luck: http://www.java.com/en/download/faq/chrome.xml
* Added Java notes at end of script
* Tested in dCore-wily, Firefox 47

End of script Java notes:
*  jre-8u92-linux-i586 added to /etc/sysconfig/tcedir/sceboot.lst.
*  Run sce-load jre-8u92-linux-i586 to load this extension.
*  Manually remove /home/tc/jre-8u92-linux-i586.tar.gz as desired.
*  If old version installed:
       * Remove old /etc/sysconfig/tcedir/sceboot.lst entry
       * Reboot system
*  Firefox Java plugin installed, restart browser to activate.
*  Java plugin test:
       *  http://java.com/en/ -> Do i have Java?
       *  http://www.test-java.com/
*  Import and load bash to launch ControlPanel (or jcontrol).
*  Default security high so most web applets won't run, at own risk use
   ControlPanel to add Exception Sites and modify security settings.
*  ControlPanel can also remove temporary files, enable debug console, etc.
*  Re-run this script to install Java updates.

dCore-java-installer --help info:
Code: [Select]
dCore-java-installer - Create a JRE 8 SCE (Java Runtime Environment, eg.
                       jre-8u92-linux-i586.sce). Imports JRE only, not JDK
                       (Java Development Kit), may use option combinations.
 
If >1 web browser installed select from list, opens Oracle Java JRE 8 download
site, manually download file (eg. jre-8u92-linux-i586.tar.gz) to home
(eg. /home/tc/) or /tmp directory, then prompted to create the SCE.
 
Re-run this script and repeat the process when Java updates available
(eg. Firefox will flag Java plugin out of date).
 
Oracle JRE 8 download site:
www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
 
Usage:
dCore-java-installer     Create a Java SCE.
dCore-java-installer -b  Create a Java SCE, add SCE to sceboot.lst.
dCore-java-installer -e  Create a Java SCE, search home and /tmp
                         directory for an already downloaded jre-8*.tar.gz file.
dCore-java-installer -r  Create a Java SCE, create SCE in RAM.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: dCore-java-installer does not work...
« Reply #11 on: July 04, 2016, 12:45:24 PM »
Thanks, uploaded to the repo.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: dCore-java-installer does not work...
« Reply #12 on: July 05, 2016, 12:53:36 AM »
This with it's Java 8 provides Java functionalty with dCore-wheezy and it's current version of Iceweasel, so this should be good across all dCore x86 ports.