[Bug 908679] Re: No java runtime found
MankyGitt
dnadruff at yahoo.com.au
Mon Jan 27 22:02:58 UTC 2014
For Freemind:
I solved this as follows:
ENVIRONMENT: Ubuntu 12.04.3 (clean installation)
java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
Freemind installed via the Ubuntu Software Centre - the supported
package.
in the terminal:
$ sudo nano /usr/bin/freemind
in the section:
#--------- Put the environment together --------------------------------
replace the reference to java-wrappers.sh as follows: (I have commented out the original line (x2) and followed with the correct path for this installation environment.
# if [ -r /usr/lib/java-wrappers/java-wrappers.sh ]
if [ -r /usr/lib/java-wrappers.sh ]
then # the Debian method
# . /usr/lib/java-wrappers/java-wrappers.sh
. /usr/lib/java-wrappers.sh
require_java_runtime java6
else
findjava
if [ $? -ne 0 ]
then
exit 1
fi
fi
--------------end of sample --------------
It appears that the location of java-wrappers.sh has changed in more
recent releases.
Freemind now launches as intended.
The same fix will resolve the freeplane issue.
The other way to solve this (but I think it is messy) is to create the path
/usr/lib/java-wrappers/
and place a symbolic link to /usr/lib/java-wrappers.sh into this directory.
This would perhaps address issues if you have multiple applications that
look for the old path.
** This bug is no longer a duplicate of bug 887077
alternatives are not updated to new paths
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to java-wrappers in Ubuntu.
https://bugs.launchpad.net/bugs/908679
Title:
No java runtime found
Status in “java-wrappers” package in Ubuntu:
Triaged
Bug description:
When I try to run freemind with precise, I get this error:
$ freemind
[warning] /usr/bin/freemind: No java runtime was found
[error] /usr/bin/freemind: Unable to find an appropriate java runtime. See java_wrappers(7) for help
In addition:
$ man 7 java_wrappers
No manual entry for java_wrappers in section 7
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: freemind 0.9.0+dfsg-1
ProcVersionSignature: Ubuntu 3.2.0-6.12-generic 3.2.0-rc6
Uname: Linux 3.2.0-6-generic x86_64
ApportVersion: 1.90-0ubuntu1
Architecture: amd64
Date: Mon Dec 26 17:02:17 2011
EcryptfsInUse: Yes
PackageArchitecture: all
SourcePackage: freemind
UpgradeStatus: Upgraded to precise on 2011-12-15 (10 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/java-wrappers/+bug/908679/+subscriptions
More information about the foundations-bugs
mailing list