nsight - Java installed but still not finding [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :)

Moderator: Moderators

User avatar
sabayonino
Sagely Hen
Posts: 3290
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Java JRE or JDK installed but still not finding it

Post by sabayonino » Thu Dec 26, 2013 15:08

fjkhf wrote:Hello, trying to running a program (viewtopic.php?f=86&t=31139&start=10) it gives me:
A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Nsight. No Java virtual machine
was found after searching the following locations:
../jre/bin/java

ok. I think your JM enviroment is fine but Nsight check excutable in other path

please paste

Java and Jar and Javac Location exutable

Code: Select all

$ java-config -{J,j,c}
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

fjkhf
Simple Hen
Posts: 97
Joined: Tue Jun 26, 2012 13:41

Re: Java JRE or JDK installed but still not finding it

Post by fjkhf » Thu Dec 26, 2013 15:11

If you mean oracle-jre ,I tried it also but still nothing :(

fjkhf
Simple Hen
Posts: 97
Joined: Tue Jun 26, 2012 13:41

Re: Java JRE or JDK installed but still not finding it

Post by fjkhf » Thu Dec 26, 2013 15:12

Code: Select all

java-config -{J,j,c}
/opt/oracle-jdk-bin-1.7.0.45/bin/java
/opt/oracle-jdk-bin-1.7.0.45/bin/jar
/opt/oracle-jdk-bin-1.7.0.45/bin/javac

User avatar
sabayonino
Sagely Hen
Posts: 3290
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Java JRE or JDK installed but still not finding it

Post by sabayonino » Thu Dec 26, 2013 15:22

you can make a symlink to full_java_version to jre in /opt


Code: Select all

# ln -s /opt/oracle-jdk-bin-1.7.0.45 /opt/jre
run Nsight
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

fjkhf
Simple Hen
Posts: 97
Joined: Tue Jun 26, 2012 13:41

Re: Java JRE or JDK installed but still not finding it

Post by fjkhf » Thu Dec 26, 2013 15:30

Still nothing..

Also , I did :

Code: Select all

cat nsight
#!/bin/sh
CUDA_BIN=$( cd "$( dirname "$0" )" && pwd )
PATH=$PATH:$CUDA_BIN LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CUDA_BIN/../lib:$CUDA_BIN/../lib64 UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 $CUDA_BIN/../libnsight/nsight [email protected]

I must mention that nsight lies in

Code: Select all

/opt/cuda/bin 
and there is no

Code: Select all

/libnsight
folder (as stated above).

Maybe sth is wrong with this?Or with eclipse?

Thanks for helping.

User avatar
sabayonino
Sagely Hen
Posts: 3290
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Java JRE or JDK installed but still not finding it

Post by sabayonino » Thu Dec 26, 2013 15:42

uuhhmmm...

need Eclipse Compiler for Java ?

Code: Select all

# equo s dev-java/eclipse-ecj

Code: Select all

# equo query installed dev-java/eclipse-ecj
can you try this ?
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

fjkhf
Simple Hen
Posts: 97
Joined: Tue Jun 26, 2012 13:41

Re: Java JRE or JDK installed but still not finding it

Post by fjkhf » Thu Dec 26, 2013 15:47

I have it installed.

Code: Select all

equo query installed dev-java/eclipse-ecj
╠ @@ Searching...
╠ @@ Package: dev-java/eclipse-ecj-4.2.1 branch: 5, [__system__]
╠ Installed: version: 4.2.1 ~ tag: NoTag ~ revision: 0
╠ Slot: 4.2
╠ Homepage: http://www.eclipse.org/
╠ Description: Eclipse Compiler for Java
╠ License: EPL-1.0
╠ Keywords: dev-java/eclipse-ecj
╠ Found: 1 entry
(If I remember well , I had installed manually eclipse because i wanted the most recent edition).I don't know if that
plays a role.

User avatar
sabayonino
Sagely Hen
Posts: 3290
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Java JRE or JDK installed but still not finding it

Post by sabayonino » Thu Dec 26, 2013 16:36

fjkhf wrote: I had installed manually eclipse because i wanted the most recent edition).I don't know if that
plays a role.
:mrgreen: ... i think this is the "problem"

can you try entropy-version of eclipse to check if nsighs works ?
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

fjkhf
Simple Hen
Posts: 97
Joined: Tue Jun 26, 2012 13:41

Re: Java JRE or JDK installed but still not finding it

Post by fjkhf » Thu Dec 26, 2013 19:33

Hmm.. I removed eclipse4.2 and installed eclipse3.7 but still the same problem..

fjkhf
Simple Hen
Posts: 97
Joined: Tue Jun 26, 2012 13:41

Re: Java JRE or JDK installed but still not finding it

Post by fjkhf » Sat Dec 28, 2013 10:05

Any more ideas? :)
Maybe some configuration inside eclipse?

Thank you!

Post Reply