cytoscape java issues

70 views
Skip to first unread message

Mike Starr

unread,
Jan 30, 2016, 11:39:12 PM1/30/16
to cytoscape-helpdesk
Hi there. I'm trying to install cytoscape on ubuntu. I'm pretty sure I have jre installed, and I've set the right environment variables. But the checker is yielding a negative for some reason. See attached text file for my bash session.

Thank you!
cytoscape java error

Scooter Morris

unread,
Jan 31, 2016, 12:34:56 PM1/31/16
to cytoscape...@googlegroups.com
On 1/30/16 8:35 PM, Mike Starr wrote:
Hi there. I'm trying to install cytoscape on ubuntu. I'm pretty sure I have jre installed, and I've set the right environment variables. But the checker is yielding a negative for some reason. See attached text file for my bash session.

Thank you!
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
For more options, visit https://groups.google.com/d/optout.
Hi MIke,
    You may have installed a jre, but the "java" command is not on the path.  You need to make sure that /usr/bin/java or /usr/local/bin/java point to the java binary where you installed java.  You may need to run update-alternatives to select the appropriate location for java.

-- scooter

Mike Starr

unread,
Jan 31, 2016, 1:58:46 PM1/31/16
to cytoscape-helpdesk
But when I open a terminal and type "java", it looks like it runs properly. And echo $PATH shows the java binary location is there.

I am wondering if it is only valid when I have a terminal open, though? Like, the path pointer is activated in .bashrc. So, maybe the path isn't activated when I'm trying to install cytoscape?

Scooter Morris

unread,
Jan 31, 2016, 7:26:58 PM1/31/16
to cytoscape...@googlegroups.com
On 01/31/2016 10:58 AM, Mike Starr wrote:
But when I open a terminal and type "java", it looks like it runs properly. And echo $PATH shows the java binary location is there.
What is your $PATH?

-- scooter


I am wondering if it is only valid when I have a terminal open, though? Like, the path pointer is activated in .bashrc. So, maybe the path isn't activated when I'm trying to install cytoscape?

On Saturday, January 30, 2016 at 8:39:12 PM UTC-8, Mike Starr wrote:
Hi there. I'm trying to install cytoscape on ubuntu. I'm pretty sure I have jre installed, and I've set the right environment variables. But the checker is yielding a negative for some reason. See attached text file for my bash session.

Thank you!
--

Matthias König

unread,
Feb 1, 2016, 4:19:37 AM2/1/16
to cytoscape-helpdesk
Hi Mike,
you should do the following on Ubuntu. This will also guarantee that you get the java updates.

Perform in terminal:

# remove openjdk
sudo apt-get -y purge openjdk*
sudo -E add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
sudo apt-get install -y oracle-java8-installer
# switch java alternatives
sudo update-java-alternatives -s java-8-oracle
java -version
javac -version


Add to your /etc/bash.bashrc
export JAVA_HOME=/usr/lib/jvm/java-8-oracle

The best
Matthias

Mike Starr

unread,
Jun 8, 2019, 1:27:00 AM6/8/19
to cytoscape...@googlegroups.com
Thanks.

--
You received this message because you are subscribed to a topic in the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cytoscape-helpdesk/9-etExVJGrI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cytoscape-helpd...@googlegroups.com.

Matthias König

unread,
Jun 12, 2019, 10:52:58 AM6/12/19
to cytoscape-helpdesk
Posted instructions do not work anymore since oracle pulled all files.
If anybody has a simple solution to install oracle java 8 or 9 on a debian system like Ubuntu please let me know.
Best Matthias
Thanks.

To unsubscribe from this group and all its topics, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages