jna installation for ubuntu 12.04 - java

I started to install datastax by referring this link. It requires jna for performance improvement.
I am using ubuntu:12.04 system. I installed using
sudo apt-get install libjna-java
I din't get any error. But there is a list of steps specified for ubuntu:10.04. So it confused me whether i installed jna proper version which supports cassandra.
I googled it for jna verification but i end up with only one little useful link. It says about logs. So
How do i verify ubuntu:12.04 is compatible with the jna version i installed
And where ll be the log file to check for logs
And Do i must write a c or c++ program to check jna or is there any commands such as verifying java i.e java -version
Any suggestions?

Related

How to install JDK and JRE

I am attempting to run an application (monitor.exe) for monitoring things going on with my device when running a test program, but I am getting the following error message:
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Monitor. No Java virtual machine was found after searching the following locations:
C:\Users\Datu1\AppData\Local\ANdroid\Sdk\tools\lib\monitor-x86_64\jre\bin\javaw.exe
javaw.exe in your current PATH
Can I install via Android Studio or should I go to the Oracle website? Is it a single installation package for both the JRE and JDK? Also I have tried running command line commands to see if the JDK is installed as well as searching folders and it is not installed.
As #davedwards has said above, you would need to download and install the JRE from the Oracle website. If you still run into problems once installed or you have already installed the JRE you may need to check your PATH system variable.
The help section on the Oracle website Here
Will take you through this process.

See all the Java versions installed on Mac

How can I get all the Java versions installed on my Mac?
Is there a terminal command for this?
When I run java -version, I get the current JRE version that is in use in my system, but I want to list all the JREs installed on my Mac.
/usr/libexec/java_home -V
lists one line per Java environment installed (and known to the /usr/bin/java command).
You can still have other Java distributions which are not registered. They are typically downloaded as ZIP files without an installer, or using another package manager like homebrew.
The accepted solution didn't work for me.
The results it returned didn't include all the Java versions installed.
For example on my machine there are currently 5 installations, but the accepted solution only returns 3.
What eventually did work for me is:
mdfind -name 'java' | grep '/bin/java$'
It finds all java installations on the system regardless of how they were installed. This way I found the specific java installation which I was looking for.
Explanation of how it works:
mdfind is a native tool in MacOS to search for different files by given query, it's very fast (usually way faster than find)
The given command is looking for everything called java and then filter only the results that end with /bin/java which is the typical suffix of java installations

Installing Java Runtime with Saltstack

I'm using Salt to configure a bunch of Centos machines (rpm-based) and I need to install the Java runtime. I've seen some discussion of doing this with Ubuntu-based machines but I wonder if anybody has done it on Redhat-based distros. The problem is getting past the "accept license" dialog without user intervention.
You can actually pre-seed the answers to those interactive questions. Here's a thread from the salt-users mailing list showing how: https://groups.google.com/d/msg/salt-users/95Q707FFWYo/CdcJN7FPpRAJ
There is this nice saltstack-formula/sun-java-formula
Formula to set up and configure Java JREs and JDKs from a tarball archive sourced via URL.
It can be installed using formulas documentation. I did not test this on a centos installation, but it uses tarball installation so maybe it would work. If someone tests it on a rvm based system, please comment here! ;)
I successfuly installed this on a debian machine with the following pillar:
java_home: /usr/lib/java
java:
source_url: http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jre-7u79-linux-x64.tar.gz
jce_url: http://download.oracle.com/otn-pub/java/jce/7/UnlimitedJCEPolicyJDK7.zip
version_name: jdk1.7.0_79
prefix: /usr/share/java
dl_opts: -b oraclelicense=accept-securebackup-cookie -L
It installed java-jdk successfully, but it failed to install jce. I created issue #20 for this just in case, but I don't actually need jce (at least, not now).

solr installation issue

Hi I'm a fairly new programmer whos trying to install Solr on Mac osx 10.6.8.
I'm following this tutorial: http://lucene.apache.org/solr/4_1_0/tutorial.html
The only two requirements are a Solr release and Java 1.6 or better. I have installed Solr, and used java -version to see what my java version is, which is 1.6.0_33.
I have cd'd into the solr/solr/example folder, which works fine. Then I use java -jar start.jar as it says in the tutorial but get:
Unable to access jarfile start.jar
Why is this doing this? My java version is as up to date as it says it should be?
Thanks for any help.
If you're already in solr-4.1.0/example directory and you can't find any start.jar, there is a big chance that the solr copy on your machine is incomplete. Try to download it again and redo the steps.

Restoring Apple's JavaAppletPlugin.plugin after Java Update 2012-006

So, I've discovered that some of my Java web apps have stopped functioning after applying the java update released by Apple on October 16th, 2012.
The tech notes indicate that Apple has removed the web app plug-in from OS X and that you need to download it from Oracle directly.
The problem with this is that Oracle only offers a 7x version of the plug-in and my apps require a 6x version, which I haven't been able to find.
So, can anybody point me to where I could find a copy of JavaAppletPlugin.plugin that I believe existed in /Library/Internet Plug-Ins/ prior to being destroyed?
And no, there is no chance that the vendor will be providing an updated version of the software which is compatible with Java 7 anytime soon.
Thanks All.
Same problem, google chrome for mac is 32-bit and do not support Java 7.
Try this:
sudo ln -s /System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
It took a while to find this, but the solution to this issue can be found via this helpdesk article from Apple: http://support.apple.com/kb/HT5559
Here something important to note. I've found that even after following these steps I still have problems when attempting to open a .jnlp file from within the Mac OSX user interface. To successfully load a java web start program, you'll probably have to switch to the terminal then execute the following code (username$ is just the prompt for terminal newbies):
username$ javaws /path/to/file.jnlp
Feel free to contact me with any questions.
Have you tried http://sourceforge.net/projects/javaplugin/
You could also try manually copying the old version of the plugin package over the new one.

Categories

Resources