jar file cant run after compiling by netbeans - netbeans

I developed an application in java (video player by vlcj),
all conditions:
my windows: 8.1
jdk: 8.1 (update 11)
it has been run successfully in netbeans(fine) but when created .jar file is executed it reported a long error that summarized below
The required native libraries are named "libvlc.dll" and "libvlccore.dll".
it is not possible for a 64-bit Java Virtual Machine to load 32-bit native libraries.
what is the solution?
plz help comrades.

You installed the x64 version of the JDK. Go to sun Java and download and install the x86 version and set it up in the systems environment settings like you did for the x64 version.

I was Facing Same Problem today But I try Running it as Administrator. Some UAC Permission are in my Java Program.
Even output Jar File not running after compiling.I convert it in An exe file with Launch4j. And run it As Administrator. Its Running.

Related

0xc000007B application was unable to start

I am trying to run EasyPHP on Windows 10 (64 bit) system. Initially the error was regarding msvcr110.dll missing, which I resolved somehow. Now its showing the error of 0xc00007b unable to start program correctly. I have tried to run the compatibility troubleshoot as well as run as administrator option. Its just not working. Any other effective solutions ?
This usually happens when you have mix of x86 and x64 libraries installed. You should probably uninstall all x86 versions of Microsoft Visual C++ Redistributables and install their x64 bit counterparts (just google them and make sure you download 64 bit version of that library).

Issue with Netbeans

I have installed netbeans in my PC (windows 7), wrote a javaFX application program and generated executable jar file
I finally need the executable jar file to be working on Raspberry pi linux and I want to use only openjdk since oracle java for Rpi doesn't support AWT and Swing and my application majorly includes that.
When i tried to execute the jar file using openjdk, i am getting an error - you need to install newer version of JRE to execute this file. I have also tried to execute the same file in ubuntu to verify if there is something wrong and its showing the same error
But, the jar file was executed properly through oracle java in ubuntu. I also tried using Oracle java on RPi, but it opened but didn't work properly.(expected, because it doesn't support AWT and Swing)
So, I think i have an issue opening the file using openjdk. Can somebody help me with this
Thanks in Advance
I am in the process of buying my Raspberry Pi but have already started looking at the development environment I will need. You may find what you are looking for in these very clear resources I found:
http://adf4beginners.blogspot.co.uk/2013/04/how-to-get-java-embedded-suite-running.html
http://docs.oracle.com/javame/config/cldc/rel/8/rpi/html/getstart_rpi/toc.htm
As Ryanteck mentioned, you will probably have to be running Raspbian (item number 1, the tutorial, uses that OS).
Good luck
The Raspberry Pi's recommended OS does not support Java at all. The main thing to try is to test it using the Debian Soft float image which should support Java on the Raspberry Pi fine. But it is still in development so may not work.

Eclipse 4.2, Mac OS X 10.8 (ML), and Java 6

I'm trying to run Eclipse 4.2 (latest from website: eclipse-SDK-4.2-macosx-cocoa-x86_64) on Mac OS X 10.8 (Mountain Lion).
I have Java 7 installed, but I keep getting prompted to install Java 6. When I choose to forgo the install by clicking "Not Now", Eclipse exits.
$ java -version
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
$ whereis java
/usr/bin/java
Any ideas on how to get Eclipse to work with the latest version of Java? README is lacking any useful information (and even claims Eclipse was tested with Java 7 on some platforms).
UPDATE:
Running sudo /Applications/.Eclipse/Eclipse.app/Contents/MacOS/eclipse works fine. After running under sudo and then switching back to lowly me with /Applications/.Eclipse/Eclipse.app/Contents/MacOS/eclipse results in a lock file error (permission denied).
It appears I have two problems:
Running through icon click results in "Need Java 6"
Running from command line results in "Permission Denied"
UPDATE: It appears to be more junk from Cupertino:
Apple Radar: 12082976
Here's the text that Apple wants to hide from the world:
I purchased a new Mac Book Pro. I immediately upgraded to Mountain Lion. I installed Java 7 from Sun [Oracle]:
$ java -version
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
$ whereis java
/usr/bin/java
$ /usr/libexec/java_home
/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
When I attempt to run the Java Preferences (in /Applications/Utilities) and Eclipse, I get prompted to install Java (see attachment).
This outdated article was no help (adding environment.plist): https://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html. I thought the problem might be $JAVA_HOME was not set, but I was wrong.
I think I got more useful information from Stack Overflow rather than the vendor (Apple), but its still not solved. https://apple.stackexchange.com/questions/58203/mountain-lion-with-java-7-only and https://apple.stackexchange.com/questions/57986/multiple-java-versions-support-on-os-x-and-java-home-location.
Please fix this. I spends thousands on Apple hardware and hundreds on Apple software, and this sort of thing is not acceptable. I have personally wasted hours on this issue, as have others. How can the Apple QA department miss another gapping hole?
From here.
JDK 7 will be installed under /Library/Java/JavaVirtualMachines/1.7.0.jdk, JDK 6 under /System/Library/Java/JavaVirtualMachines.
To trick OS X to accept Java 7 instead of proposing to install Java 6 a simple symlink is enough:
sudo mkdir /System/Library/Java/JavaVirtualMachines
sudo su ln -s /Library/Java/JavaVirtualMachines/1.7.0.jdk /System/Library/Java/JavaVirtualMachines/1.6.0.jdk
Most Java Programms will run with this little hack without the need to install Java 6.
Note that the OP in the above question specifically talks about Eclipse not working with Java 7.
Also this might be worthwhile read.
I'm rather embarrassed but one of my students helped me solve this issue.
If you have Java 7 installed then you should be using the 64 bit version of Eclipse. I had downloaded the 32 bit version and it was asking me to install Java 6 when I had version 7 installed. Downloaded the 64bit version and it works like a dream. I run Mac os 10.8
Installing this update from apple fixed it for me:
http://support.apple.com/kb/DL1572
Note that's the update that's trying to install automatically.
Can you imagine that? You have to install a JDK 1.6 to get eclipse ran properly, even if you already have jdk 1.7 installed, and set the JAVA_HOME properly.
To resolve your issue, you just need to download the jdk1.6 from http://support.apple.com/kb/DL1572?viewlocale=en_US, and install it, later you will be able to run eclipse, and you can set the JAVA_HOME to JDK1.7, and you will be able to find the JDK1.7 from eclipse "Preferences".
The MAC OS offers the Java Preferences tool under Applications.
If you don't have this tool you can edit the eclipse.ini and manually specify the JVM that you want to use.
Of course remember that Java 7 is the only Java official release for MAC and is probably not the best for developing applications. I would go for the 1.6 release but you are forced with this one due to OS restrictions if you want to stick with the standard.

Java App started as service on 64bit environment, but doesn't work

I have installed 64bit jre on my pc (starts in mixed mode), then i compiled my Java application in 64bit mode. It starts prefectly and works fine as stand alone application.
Then I install it as service using a JSL.EXE (with jsl.ini) and it starts again fine, BUT doesn't work: doesnt answer (this is a small server) and writes nothing into a log-file.
The same application works fine as a service if i compile it with jre 32bit and install as a service in 32bit environment.
thanks
Solved. I have just run jsl.exe -debug and saw everithing, what has been happen. The wrong JRE was taken by jsl... and i schould also define a jvmtype parameter in jsl.ini.... and i didn't know that jsl64.exe schould be used for 64bit java apps (apps with 64bit SWT)
[java]
jvmtype=server,client,hotspot,classic
thanks

install4J, windows 2008R2 and java 6 permission issues

We are using install4j to install our application on Windows 2008R2. With Java 1.4 installed the install4j effort works fine. with Java 6 installed the install4j effort results in permission issues with C:\Program Files(x86).
Can anyone comment on the different permissions Windows 2008 might require for an install4j executable when using java 6 compared to java 1.4?
FYI Windows 2008 64bit, java 32bit, install4j 32bit
thank you
There are no differences in permission handling between Java 1.4 and Java 6. Permissions in install4j are handled by the "Request privileges" action which is typically located in the "Startup" node of your installer. For installing into C:\Program Files (x86), you need elevated privileges.
If your installer works with Java 1.4 and does not work with Java 6, there must be some other error. I would suggest to look at the file .install4j/installation.log for more information.