OpenJDK and OpenJFX on Linux mint 19 (tara) - openjfx

I'm trying to run a program that requires Java FX. I just installed Linux Mint (Tara) Cinnamon. It has OpenJDK installed.
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3, mixed mode)
I also installed openJFX. Re-running apt-get install openjfx produces:
Reading package lists... Done
Building dependency tree
Reading state information... Done
openjfx is already the newest version (8u161-b12-1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
When I try to run the application, I get the following error:
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
Thanks,
Chris

Related

spa/meson.build:29:4: ERROR: Dependency "bluez" not found, tried pkgconfig and cmake while installing PIPEWIRE in Ubuntu 16.04

I am trying to install Pipewire in my Ubuntu 16.04 x86 amd64 machine using instructions found here : https://pipewire.org/#getting
./autogen.sh --prefix=$PREFIX
On running the above command, I get this error
spa/meson.build:29:4: ERROR: Dependency "bluez" not found, tried pkgconfig and cmake
I have installed bluez already. This is the output for running
**sudo apt-get install bluez**
Reading package lists... Done
Building dependency tree
Reading state information... Done
bluez is already the newest version (5.37-0ubuntu5.3).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
The files that are required to do development on top of a package are often separate (since this is really only needed by developers, and would take up too much size for no reason otherwise).
In your case, the package you're looking for is libbluetooth-dev. So you can do sudo apt install libbluetooth-dev

REDHAT 7 yum update is not installing the packages on graphite, gtk3 and etc

its REDHAT 7 server, i was trying to do the patch update in this server.
its not allowing me to the updates, throwing the errors.
most of the Gnome packages are not updating....
Kernel version: 3.10.0-514.10.2.el7.x86_64
OS Release : Red Hat Enterprise Linux Server release 7.3 (Maipo)
--> Finished Dependency Resolution
Error: Package: graphite2-devel-1.3.6-1.el7_2.x86_64 (rhui-REGION-rhel-server-releases)
Requires: graphite2(x86-64) = 1.3.6-1.el7_2
Installed: graphite2-1.3.10-1.el7_3.x86_64 (#rhui-REGION-rhel-server-releases)
graphite2(x86-64) = 1.3.10-1.el7_3
Available: graphite2-1.2.2-5.el7.x86_64 (rhui-REGION-rhel-server-releases)
graphite2(x86-64) = 1.2.2-5.el7
Available: graphite2-1.3.6-1.el7_2.x86_64 (rhui-REGION-rhel-server-releases)
graphite2(x86-64) = 1.3.6-1.el7_2
Please help me to resole this issue.
Thanks
Rameshkumar.
I was facing the same issue just did below
sudo yum downgrade graphite2
this downgraded graphite 2to graphite2-1.3.6-1.el7_2.x86_64
enable ol7_optional_latest repository
[ol7_optional_latest]
name=Oracle Linux $releasever Optional Latest ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/optional/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

Can't install libffi-devel

I am trying to install libffi-devel on RHEL, but when I try I get this message:
Transaction Check Error:
package libffi-3.0.5-1.el5.6.z.x86_64 (which is newer than libffi-3.0.5-1.el5.i386) is already installed
I am running this command:
sudo yum install -y libffi-devel
And here is the full output of the command:
Loaded plugins: downloadonly, rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
Excluding Packages in global exclude list
Finished
Excluding Packages from Rackspace - RHEL (v. 5 for 64-bit x86_64) - Common
Finished
Excluding Packages from Rackspace - RHEL (v. 5 for 64-bit x86_64) - MySQL 5.1
Finished
Excluding Packages from Rackspace - RHEL (v. 5 for 64-bit x86_64) - PHP 5.2
Finished
Excluding Packages from Red Hat Enterprise Linux (v. 5 for 64-bit x86_64)
Finished
Excluding Packages from Red Hat Network Tools for RHEL Server (v.5 64-bit x86_64)
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libffi-devel.x86_64 0:3.0.5-1.el5 set to be updated
--> Processing Dependency: libffi = 3.0.5-1.el5 for package: libffi-devel
--> Running transaction check
---> Package libffi.i386 0:3.0.5-1.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================================================================================================================================================
Installing:
libffi-devel x86_64 3.0.5-1.el5 epel 16 k
Installing for dependencies:
libffi i386 3.0.5-1.el5 epel 21 k
Transaction Summary
================================================================================================================================================================================================================================================================================
Install 2 Package(s)
Upgrade 0 Package(s)
Total size: 37 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Check Error:
package libffi-3.0.5-1.el5.6.z.x86_64 (which is newer than libffi-3.0.5-1.el5.i386) is already installed
Error Summary
-------------
Looks like you already have a version of libffi-3.0.5-1.el5.6.z.x86_64 installed on your system. Check with the command and remove the rpm first.
rpm -qa | grep libffi
rpm -e <rpm from the above>
Then try installing using:
sudo yum install -y libffi libffi-devel

Android Studio 'tools.jar' file is not present in classpath

I downloaded the current version of Android Studio (latest as of 4th July 2013)
I also downloaded the JDK version 7u25.
However, it displays error after startup: Please ensure JAVA_HOME points to JDK rather than JRE.
I don't know how to solve this problem, which won't let me run the IDE. I would appreciate any help.
Check if java JDK is installed correctly
dpkg --list | grep -i jdk
if not install JDK
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-jdk7-installer
After the installation you have enable the jdk
update-alternatives --display java
Check if Ubuntu uses Java JDK 7
java -version
If all went right the answer should be something like this:
java version “1.7.0_25″
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) Server VM (build 23.3-b01, mixed mode)
Check what compiler is used
javac -version
It should show something like this
javac 1.7.0_25
Add JAVA_HOME to environment variable
Edit /etc/environment and add JAVA_HOME=/usr/lib/jvm/java-7-oracle to the end of the file
sudo nano /etc/environment
Append to the end of the file
JAVA_HOME=/usr/lib/jvm/java-7-oracle
Log in and out (or reboot) for the changes to take effect.
If you want to remove oracle JDK
sudo apt-get remove oracle-jdk7-installer
read this:
http://arwankhoiruddin.blogspot.co.il/2014/01/android-studio-in-ubuntu-problem.html
in short:
type at the terminal
$ sudo update-alternatives --config java
now you need to choose
usr/lib/jvm/java-7-openjdk/jre/bin/java
by pressing #3
I have Ubuntu 14.04 and OpenJDK and for me a fresh install worked.
just did
sudo apt-get install openjdk-7-jdk
or,
sudo apt-get install --reinstall openjdk-7-jdk if it is already installed and giving error,
and everything was fine.
On ubuntu I have tried all the methods that are described here but none worked.
What I did in the end was to:
download JDK from oracle and extract the archive
edit android-studio/bin/studio.sh and add at the top
export JAVA_HOME=/path/to/jdk
save the file and cd android-studio/bin and launch Android Studio: ./studio.sh
On Fedora (and other RedHat derivatives, e.g. RHEL 7 and CentOS 7), it was the missing openjdk-devel package that was the issue for me. It's an easy fix and nothing to do with the JAVA_HOME path or the JRE.
sudo yum install java-1.7.0-openjdk-devel.x86_64
If you are using Windows, the installation can be confusing for many users...
The installer lets you specify an installation path, but this is only if you have the JRE option selected to install.
The actual JDK installs automatically to...
C:\Program Files\Java\jdkX.XX on 64-bit
C:\Program Files (x86)\Java\jdkX.XX on 32-bit
So you need to make sure you set the JAVA_HOME variable in environment variables set to this JDK path, not the JRE path that appears in the installer.
In windows Create new environment as STUDIO_JDK which refers to your jdk C:\Program Files\Java\jdk1.7.0
This answer may be very specific to a Windows 7 32 bit system:
Even after setting the JAVA_HOME variables, I had problems. After installing the JAVA again from the website, http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
BUT THIS TIME I TRIED "Windows x64 54 MB jdk-8u51-windows-x64-demos.zip" which seems to be for 64 bit even though my system is 32 bit and the ANDROID STUDIO started working for me. My environment settings are following (under System variables and not under user variables):
JAVA_HOME-C:\Program Files (x86)\Java\jre1.8.0_51
JDK_HOME-C:\Program Files (x86)\Java\jdk1.8.0_51
I had the same problem on Linux Mint 17.2 and it was very simple:
In the package manager I found that openjdk-7-jre was installed but not the JDK. All I had to do was to install openjdk-7-jdk.
As I'm new to Linux it took me some time to figure this out though because I assumed by the name of the path /usr/lib/jvm/java-7-openjdk-amd64 that it was already the JDK but it was just the JRE.
On Linux Mint 17 (or Ubuntu 14.04):
sudo apt-get install openjdk-7-jdk
Then change the JAVA_HOME env variable.
export JAVA_HOME=JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Downloading the latest Android Studio resolve this issue / OSX /MAC

Install Mono on Centos 5.5 using YUM

How do I install the Mono 2.6.7 runtime on CentOS 5.5 using YUM?
I know how to build Mono from the source. However, according to the page Getting Started With Mono Tools it is possible to install the binaries directly. I'd prefer to install the binaries to avoid having to install all the development pre-requisites on a server with little disk space.
Am I supposed to add a new repository description to YUM? I tried doing that, but I must have done it wrong, because "yum list mono-core" still says the old version (1.2.4-2.el5.centos).
And, why are the .rpm's called "mono-addon-" on the release server? It's a bit confusing. It sounds like the .rpm's are an add-on to Mono. I guess they mean they are an "add-on" to the server(?).
I figured it out.
Create a new repository configuration file
cd /etc/yum.repos.d
vi mono.repo
Add the following lines to the file
[Mono]
name=Mono Stack (RHEL_5)
type=rpm-md
baseurl=http://ftp.novell.com/pub/mono/download-stable/RHEL_5/
gpgcheck=1
gpgkey=http://ftp.novell.com/pub/mono/download-stable/RHEL_5/repodata/repomd.xml.key
enabled=1
Update the YUM cache to be on the safe side
yum clean all
Install the Mono server stack
yum install monotools-addon-server
The installed binaries will end up in "/opt/novell/mono/bin".
You should issue the following command to set up your shell environment so that it finds Mono, mcs and the other Mono tools
source /opt/novell/mono/bin/mono-addon-environment.sh
Verify the version
mono --version
Mono JIT compiler version 2.6.7 (tarball Mon Jul 19 18:28:58 UTC 2010)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC and Parallel Mark)
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
If you want the Mono environment to be permanent you can issue the following command.
cp /opt/novell/mono/bin/mono-addon-environment.sh /etc/profile.d
Happy Mono'ing!!!
In addition to octonion's post, if, like me, you want to use Apache mod_mono, you need to ensure you install the correct version of mod_mono by running the following, and it will get the right one:
yum install mod_mono-addon
Don't just issue yum install mod_mono. It may install mod_mono 1.2 version from the CentOS extras repository and not what you're actually after.
As a reference, I was getting the following error in /var/log/httpd/error_log when running the incorrect mod_mono version:
Root directory: /
mod_mono and xsp have different versions. Expected '9', got 6
System.InvalidOperationException: mod_mono and xsp have different versions. Expected '9', got 6
It is a silly, but easy mistake to make if you new to this like me.