Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Minimserver compatibility
02-12-2015, 16:26 (This post was last modified: 02-12-2015 16:30 by simoncn.)
Post: #21
RE: Minimserver compatibility
(02-12-2015 16:18)ciccio1112 Wrote:  I first have to install java with command
apt-get install openjdk-7-jre-headless

or it is not necessary?

This is not necessary but it should not cause any problems if you do it. Because your PATH has /usr/local/bin before /usr/bin, MinimServer will use /usr/local/bin/java if both versions are installed.
Find all posts by this user
Quote this message in a reply
02-12-2015, 16:44 (This post was last modified: 02-12-2015 16:45 by ciccio1112.)
Post: #22
RE: Minimserver compatibility
I upgraded the firmware on the WD unpacked file ejre-7u75-FCS-b13-linux-ppc-Headless-18_dec_2014.tar.gz folder /shares/Public/Java/ejre1.7.0_75
put the path /shares/Public/Java/ejre1.7.0_75/bin/java ln -s / usr / local / bin / java
but when I type java - version

-bash: line 7: java: command not found
if I write the test command ls -l /shares/Public/Java/ejre1.7.0_75/bin/java
He says:

ls: can not access /shares/Public/Java/ejre1.7.0_75/bin/java: No such file or directory
Find all posts by this user
Quote this message in a reply
02-12-2015, 17:51
Post: #23
RE: Minimserver compatibility
(02-12-2015 16:44)ciccio1112 Wrote:  I upgraded the firmware on the WD unpacked file ejre-7u75-FCS-b13-linux-ppc-Headless-18_dec_2014.tar.gz folder /shares/Public/Java/ejre1.7.0_75
put the path /shares/Public/Java/ejre1.7.0_75/bin/java ln -s / usr / local / bin / java
but when I type java - version

-bash: line 7: java: command not found
if I write the test command ls -l /shares/Public/Java/ejre1.7.0_75/bin/java
He says:

ls: can not access /shares/Public/Java/ejre1.7.0_75/bin/java: No such file or directory

You have unpacked the .tar.gz file to the wrong directory. It needs to be unpacked to the directory /shares/Public/Java.
Find all posts by this user
Quote this message in a reply
02-12-2015, 18:36
Post: #24
RE: Minimserver compatibility
(02-12-2015 17:51)simoncn Wrote:  
(02-12-2015 16:44)ciccio1112 Wrote:  I upgraded the firmware on the WD unpacked file ejre-7u75-FCS-b13-linux-ppc-Headless-18_dec_2014.tar.gz folder /shares/Public/Java/ejre1.7.0_75
put the path /shares/Public/Java/ejre1.7.0_75/bin/java ln -s / usr / local / bin / java
but when I type java - version

-bash: line 7: java: command not found
if I write the test command ls -l /shares/Public/Java/ejre1.7.0_75/bin/java
He says:

ls: can not access /shares/Public/Java/ejre1.7.0_75/bin/java: No such file or directory

You have unpacked the .tar.gz file to the wrong directory. It needs to be unpacked to the directory /shares/Public/Java.

I solved this way:

Place the downloaded file in the /usr/java/latest directory.
From the /usr/java/latest directory, unpack the tarball and install the JRE:
$ sudo tar zxvf ejre-7u75-fcs-b13-linux-ppc-headless-18_dec_2014.gz
The JRE files are installed into a directory called jre-7u_75.

Tell the system that there's a new Java version available:

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/java/latest/ejre1.7.0_75/bin/java" 1

sudo update-alternatives --set java /usr/java/latest/ejre1.7.0_75/bin/java

thanks Simon
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)