I must have something misconfigured - a missing library perhaps?
I get this error when trying to play a .wav sound in the simulator.
I have jfxrt.jar in the build path.
Exception in thread "JavaFX Application Thread" java.lang.UnsatisfiedLinkError: com.sun.media.jfxmediaimpl.platform.gstreamer.GSTMediaPlayer.gstGetAudioSpectrum(J)J
at com.sun.media.jfxmediaimpl.platform.gstreamer.GSTMediaPlayer.gstGetAudioSpectrum(Native Method)
at com.sun.media.jfxmediaimpl.platform.gstreamer.GSTMediaPlayer.<init>(GSTMediaPlayer.java:57)
at com.sun.media.jfxmediaimpl.platform.gstreamer.GSTMediaPlayer.<init>(GSTMediaPlayer.java:62)
I'm guessing that you are running on one VM while having the jfxrt.jar from another VM in the path. Try making sure that you are running on Java 8 where this should "just work". Make sure that in the "Library" section in netbeans JDK 8 is selected.
Related
I am using Lazarus 1.0.6 and FPC 2.6.0 and running it on PCLinuxOS Linux OS.
Every time I open Printers Dialog by calling printerdialog1.Execute, compiler raises the following error, "Project xxxxxx raised exception class 'Ereaderror' with the message: Unknown property 'Caption'." Then, my whole program crashes and had to restart the program for it run properly.
What do you think is the problem and how do you fix it?
This dialog is from Printers4Lazarus package.
I solved my exception problem. As they say, there is always a simple solution to every problem.
Being that I was in the middle of setting up my IDE, I have gone through many tool installation and uninstallation and different version of it too. Somehow things got mixed up and my IDE was pointing to a printers4lazarus version that didn't work with the IDE. So, I simply uninstalled and deleted the folder it was pointing to and then restarted Lazarus IDE. It then pointed to the right folder for Printers4Lazarus component which was /usr/bin/lib64/Lazarus/components/.
So, if you are having similar problem, simply start from scratch. remove or uninstall the component from your IDE. Then, rename the folder where the component is located if you have to. Restart your IDE. If you are still having problem, then you need to check to see where your IDE is pointing to for this package. The idea is to start from scratch, install the package and then see if you still having problem.
Good Luck.
I'm trying to package Unison (not really my program) into an easy to use installer. Tl;dr: a screenshot.
When I install and run it on the test machine, it says This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem.
The event log reveals that it can't find Dependent Assembly Microsoft.VC90.CRT.
Search reveals that the "missing" dll is in fact in C:\Windows\WinSxS
So what's wrong?
I need to distribute a javafx 2.1 application but the client doesn't want to be asked if he wants to install javafx 2.1. It should be automatically installed. Does someone know how to wrap it in a dmg and in an exe package??
Thank you very much in advance.
There is a tutorial here: http://fxexperience.com/2012/03/packaging-javafx-applications-as-native/
and there (although for 2.2): https://blogs.oracle.com/talkingjavadeployment/entry/native_packaging_for_javafx
Finally I got it !!!!
I'm going to explain how I got it from my perspective. Sorry if it sounds a little bit dummy but I'm not used to build desktop applications and with a new technology as javafx is even more difficult for me.
Download the latest version of the jdk (in this case the 7.0 one).
Follow the steps from the tutorial and include your .jar and the jfxrt.jar
As a main class I set com.javafx.main.Main
Create the application and now, the most important part:
Once the application has been created, open it (right click on the app and "show package content". Go to the folder: Content/Resources/Java.
Do the same operation with the vm: go to /Java/JavaVirtualMachines and right click on the 1.7.0.jdk to open the Contents folder.
Copy ALL the .jar and .dylib from the jdk to the java resources in your application
Run the application and it will work :)
I wrote a program on Windows 7 with Delphi Prism. I took the executable and try to run it on Linux under mono. At which point, mono raised the following error. Is this mean RemObjects components are only meant for windows environment? If not, how do you resolve this exception?
Could not load file or assembly 'RemObjects.InternetPack, Version=2.0.47.845, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098' or one of its dependencies.
Unhandled Exception: System.TypeLoadException: A type load exception has occurred.
Thanks in advance,
You need to deploy and register RemObjects InternetPack on the Linux machine. It's not part of the default runtime.
Think of it like building a Delphi Win32 app with runtime packages. When you deploy the application to other machines, you also have to deploy the runtime packages.
Deploying .NET packages is a totally different question (and not really Delphi or Prism related). You might want to search here on SO first, and if you don't find an existing answer then post a new question.
I have set up an OpenVPN port for WindowsCE on my device (CHD Five) with WindowsCE 5.0, but on .exe startup it pops out:
Cannot find 'ovpncmgr' (or one of its components). Make sure the path and filename are correct and that all the required libraries are avilable.
Same error for main app exe file, but no more error messages, that would allow to understand, where is problem.
The question is, how to debug/find/explore on WinCE what is it, what it is missing, which library/component is missing, like possible in WinXP and other WinOS.
Use Depends.exe to look at the dependencies of the application. It ships with Visual Studio and is also available for download here.