How to install "javax.media" library in processing 3.3 - processing

I keep on getting the following error in processing 3.3:
The package "javax.media" does not exist. You must be missing a library.
Please suggest a solution for the same.
Thanks in advance!

The javax.media package is not a standard Java package. You can check by looking for it in the Java API.
So you have to track down the jar file that contains the javax.media package. Google is your friend here, but here are a couple promising results:
Java Media API: java media api download
Eclipse missing imports (javax.media.* and com.sun.media.*)
Once you've found the jar file, you can simply drag it onto your Processing editor to use it in your Processing code.

Related

CZKEM does not contain definition (zkemkeeper-related)

I am using the Standalone SDK from ZKTEco for a fingerprint scanner. I need to add some custom functionality.
I've downloaded the SDK along with the Demo project. Now when I try to build the Demo project, I get the following error
"Severity Code Description Project File Line Suppression State
Error CS1061 'CZKEM' does not contain a definition for 'SetUserValidDate'
and no accessible extension method 'SetUserValidDate' accepting a first
argument of type 'CZKEM' could be found (are you missing a using directive
or an assembly reference?)"
I have referenced the zkemkeeper.dll file in my project. I'm using VB 2017 on Windows 10. I've tried to look for Embed Interop Types property but I cannot find it in the properties ofzkemkeeper
How can I solve this issue? Any help would be appreciated.
Thanks
I order to make any project referencing the zkemkeeper compile, you need to register it in the windows system.
You should have received a bat file among the dll files called "Register_SDK" as shown in . This is used to register the zkemkeeper in windows. If not, then you must register it manually.
Please, read these posts:
Post 1
Post 2
There is also a starting guide for newbies already written by another member of this community, it´s written in c#.
Best regards.

Cannot iimport org.gicentre.geomap.*

I am using processing 3.And I am trying to add the gicentre geomap library to my processing libraries. I downloaded the geomap library from https://www.gicentre.net/geomap/. And extract it and move it under Processing/libraries. After this, I tried to run an example from this library. It just tells me that
import org.gicentre cannot be resolved. And GeoMap class does not
exist.
Any idea? Thanks!
See my answer here: Processing cannot find library
If you're using the Processing editor, the easiest way to install a non-standard library is to just drag the .jar file onto your Processing editor. This will move the .jar file into your sketch folder, and you can use it just like you can use any other library.

Unable to convert classes into dex format Unity

Using the google play games services and Admob plugin I cannot seem to get my back to build into an APK and I am receiving the following error message. Any help would be appreciated as I have removed some duplicate files but I am still failing to find why I cannot build my app.
I am using Unity Unity 5.6.1f1 (64-bit).
game services: https://github.com/playgameservices/play-games-plugin-for-unity Ads: https://github.com/unity-plugins/Firebase-Admob-Unity
CommandInvokationFailure: Unable to convert classes into dex format.
C:/Program Files/Java/jdk1.8.0_121\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/Jack/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzbyb;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzbyc;
2 errors; aborting
]
Some Background
When Unity builds your project for Android, it invokes several tools from the Android SDK. As part of that process, it converts all of your native (Java) code for Android into a file format called DEX (Dalvik executable).
All of your Android plugins get built up into a single package using that tool. The problems start when a few plugins have the same compiled Java code (classes) in them. This will cause the DEX tool to fail with an error like the one you're seeing:
Uncaught translation error: java.lang.IllegalArgumentException:
already added: Lcom/google/android/gms/internal/zzbyb;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzbyc;
This means that classes with those names were already included in another library, and so they cannot be added again.
Possible Causes
As explained above, this error occurs when you have duplicate plugins in your project; this can happen in different scenarios, here are some examples:
The same plugin is included more than once, under different folders of the project.
The same plugin is included more than once with different versions.
A plugin contains other dependencies "embedded" inside it, but these dependencies are already included in the project in some form.
How To Fix
You should look up duplicate Android plugins in your project and eliminate them (keep only 1 copy). From the error message you posted, the issue here is related to Google play services libraries. You should look into that (libraries named play-services-xxxx.aar).
Paid Help (Shameless Plug)
I provide a professional service for fixing this exact kind of issue. In case you (or anyone else) are not able to resolve such an issue themselves, feel free to contact me and get it solved.
I was facing the same problem after add admob in my project, here are 2 possible solutions:
Go to the file >> build settings and change the option internal to gradle
Open libs folders separately of both Facebook SDK and Google Play services and delete the matching files
It would be something like (support v4)
Google ads 11.2 has errors. It reuses certain jar classes .
On its own, it isnot an issue
Once you add in another google class, ie firebase, your done for.
There is a fix though. Google put out firebase 4.2 and ads 11.4

unable to use imported javac library files

i have installed opencv-2.4.10 and javacv according to https://github.com/bytedeco/javacv link.
I am unable to use various commands from the tutorials or resources from the internet. I am confused that if this error is due to version problem ( opencv-3.0.0) or i haven't imported the .jar files properly.
Like the code below
frame = converterToMat.convert(processedMat);
i cannot use "convertToMat" and other commands like cvCvtColor etc.
i use ctrl+shift+o for importing, how to we import the entire library before even using it?? i use eclipse IDE.
please help

3rd Party Library throws NoClassDefFoundError without giving a class name

I'm trying to integrate a 3rd party library into an existing application; it compiles and builds with no problems, but during execution gives a java.lang.NoClassDefFoundError.
The problem is that the error comes out of the library to which I don't have the source, and the error doesn't tell me what class couldn't be found.
Is it possible to debug this? Any advice?
(It's a Java 1.4, Eclipse, Ant and Tomcat set-up)
You can install JD-Eclipse (or any other decompiler), fire up your debugger, and step through until you find the error.
The plugin should allow you to step into the third party .class files as if they were attached source (assuming they're not obfuscated).

Resources