How to get javax.comm API? - java

I'd recently downloaded a project on SMS sending, but when I tries to compile the code it gives error on line import javax.comm.*;.
Can anybody tell me where to find javax.comm and where to place so that there will be no compilation error.

Oracle Java Communications API Reference - http://www.oracle.com/technetwork/java/index-jsp-141752.html
Official 3.0 Download (Solarix, Linux) - http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-misc-419423.html
Unofficial 2.0 Download (All): http://www.java2s.com/Code/Jar/c/Downloadcomm20jar.htm
Unofficial 2.0 Download (Windows installer) - http://kishor15389.blogspot.hk/2011/05/how-to-install-java-communications.html
In order to ensure there is no compilation error, place the file on your classpath when compiling (-cp command-line option, or check your IDE documentation).

Use RXTX.
On Debian install librxtx-java by typing:
sudo apt-get install librxtx-java
On Fedora or Enterprise Linux install rxtx by typing:
sudo yum install rxtx

you can find Java Communications API 2.0 in below link
http://www.java2s.com/Code/Jar/c/Downloadcomm20jar.htm

Another Simple way i found in Netbeans right click on your project>libraris click add jar/folder add your comm.jar and you done.
if you dont have comm.jar download it from >>> http://llk.media.mit.edu/projects/picdev/software/javaxcomm.zip

On ubuntu
sudo apt-get install librxtx-java then
add RXTX jars to the project which are in
usr/share/java

Related

Not able to install protobuf-compiler on macOS Big Sur

I am trying to execute sudo apt install protobuf-compiler on macOS, but I am not able to install the protobuf-compiler, nor to update the apt.
So far I tried, installing JDK, adding path to ./zshrc and a few other things I searched on Google but no success. The picture below shows the error I get when I try to install protobuf-compiler or update using apt.
What might be the issue? Any answer is appreciated :)
On MacOS, one of the most popular package managers is homebrew, and the command to invoke it is something like brew install <packagename>. For the protobuf package, it would be:
brew install protobuf

Netbeans is not getting installed in my Mac, it says JDK not found, though JDK is installed in the same

Error: Failure while executing the commands mentioned below:-
/usr/bin/sudo -E -- env LOGNAME=ajaygautam USER=ajaygautam USERNAME=ajaygautam /usr/sbin/installer -pkg /usr/local/Caskroom/netbeans/8.2/NetBeans\ 8.2.pkg -target / exited with 1.
Here's the output:
installer: Error - NetBeans IDE cannot be installed. Java (JRE) found on your computer but JDK 8 or newer is required. Please download and install the latest update of JDK 8 from http://www.oracle.com/technetwork/java/javase/downloads/index.html and restart NetBeans installation.
Would someone in tracing out the issue above? I'm not able to install NetBeans 8.2 package in my Mac.
I got the same problem and could to fix it with brew.
firstly install java JDK https://www.oracle.com/java/technologies/javase-downloads.html then run this in your terminal:
brew install netbeans
it will install the latest version of netbeans.
Download OpenJDK from Archived OpenJDK GA Releases.
This will give you a file such as openjdk-9.0.4_osx-x64_bin.tar. Extract the tar file and copy it to the correct place in your machine.
tar -xf openjdk-9.0.4_osx-x64_bin.tar
sudo cp -r jdk-12.0.2.jdk /Library/Java/JavaVirtualMachines/
Now you can run the Netbeans installer.
i just install using brew
brew install netbeans
and now i can use the latest 12.4
The following steps are used to install NetBeans on MacOS:-
1) Download the Latest version
In order to install NetBeans on MacOS, we have to download the latest version of NetBeans by visiting its official website I.e. https://netbeans.org/downloads/
2) Mount the disk image file
The dmg file which is downloaded from the official website of NetBeans is to be mounted to an installer. This can be done with the following command:
$ hdiutil mount Downloads/netbeans-8.2-macosx.dmg
3) Install the file
The file is mounted to the volumes directory which contains a package file (.pkg) which is installable by using the installer command. The command needs superuser privileges for which, sudo is used.
$ sudo installer -pkg Volumes/ NetBeans\ 8.2/NetBeans\ 8.2.pkg -target /
The file will be installed to the target root which is mentioned while installing the file.
4) Unmount the file
After the completion of installation process, we need to unmount the installer. This can be done by using the option Unmount with hdiutil command.
$ hdiutil unmount /Volumes/NetBeans\ 8.2
Well, we have done with the installation process of NetBeans 8.2 on MacOS.
Actually, java_home is in
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java_home
but in my case, java_home was in the next location i.e
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java_home
I deleted my java_home from /usr/libexec/java_home by root user
added new java_home in /usr/libexec by following command
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java_home /usr/libexec/.
For some reason, some Netbeans versions for Mac OS do not detect the JDK contained in JRE. For proper installation and running the application, you must have Java for Mac OS installed previously. https://www.java.com/es/download/
Install The Lates Version ONLY which is 12.1 as of now!
https://netbeans.apache.org/download/nb121/nb121.html

How to install python34 via yum in redhat

I am trying to install mariadb columnstore api (java wrapper of cpp version) on RHEL 7 and it has dependency on pythong34. The following command can not find the package.
sudo yum install python34 or to search sudo yum search python34
Other server already have the package installed and search returns the results.
python34.x86_64 : Version 3 of the Python programming language aka
Python 3000
python34-devel.x86_64 : Libraries and header files needed
for Python 3 development
python34-libs.x86_64 : Python 3 runtime
libraries
So far I have tried running
yum clean all - to clear cache and all other things update repo..
check proxy is same on both server,
yum update
Tried Installing manually by getting rpm but getting the dependency error.
python(abi) = 3.4 is needed by mariadb-columnstore-api-1.1.3-1.x86_64
Any suggestion would help. Thanks.
Finally was able to install python34, it is part of EPEP repository. So enabled using following link and then was able to to get it via yum.
https://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/
Install Python34 via Red Hat Software Collections - these are refreshed tools, db's, etc. that have a separate installation. Can also get from softwarecollections.org.
See [1] to install Python36, but change the command for python34 to rh-python34 and based on what's listed here [2].
[1] https://developers.redhat.com/products/softwarecollections/hello-world/#fndtn-python.
[2] https://access.redhat.com/documentation/en-us/red_hat_software_collections/3/html-single/3.0_release_notes/#sect-RHSCL-Features

Java Developer Kit executable unable to be found

I'm trying to install mysql on my Mac using the command
sudo apt install mysql
and it said I needed to install JDK on it. So I installed JDK but am receiving an error saying:
Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/apt" (-1)
I have updated my env path to
JAVA_HOME=/Library/Java/Home
But when I install JDK theres no java file anywhere in my library, even though when I check to see if I have installed it, it is successfully found. I've installed Homebrew but do not know what package to install after the initial installation, or if this is the problem.
Any help would be appreciated.
If you are using Mac it would be much easier to install Homebrew from https://brew.sh and then use $ brew install mysql
see this link for the apt and yum command usage

PYSpark/scala not able to install on ubuntu 12.04 due to unable to install java7

i will not able to install Scala / python because of java7 or 6 not able install on ubuntu12.04.
even i will try to install java7 manually by download tar file and put in usr/lib/jvm folder. everything goes fine but if i give java -version on command prompt.it show binary is not executable.
kindly provide some help is there any way to install java7 so that i may install Scala / spark on ubuntu

Categories

Resources