Sencha Themer 1.4.0 fat file, but missing compatible architecture (have 'i386,x86_64,unknown', need 'arm64e') - extjs

i'm using Sencha Themer 1.4.0
on Apple M1 with Monterey 12.4
java version "1.8.0_333"
Java(TM) SE Runtime Environment (build 1.8.0_333-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)
Always loading bar on open or create a theme remain at 99%.
On logs there is:
[2022-06-10 00:28:29.051] [DEBUG] [default] - Exception in thread "Thread-34"
[2022-06-10 00:28:29.051] [DEBUG] [default] - java.lang.UnsatisfiedLinkError: /private/var/folders/d9/h_t37l0x3hj1h7r4vsd50ngw0000gn/T/jna--1385014272/jna2864571768082386130.tmp: dlopen(/private/var/folders/d9/h_t37l0x3hj1h7r4vsd50ngw0000gn/T/jna--1385014272/jna2864571768082386130.tmp, 0x0001): tried: '/private/var/folders/d9/h_t37l0x3hj1h7r4vsd50ngw0000gn/T/jna--1385014272/jna2864571768082386130.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64,unknown', need 'arm64e'))
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1950)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1832)
at java.lang.Runtime.load0(Runtime.java:811)
at java.lang.System.load(System.java:1088)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:761)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:736)
at com.sun.jna.Native.<clinit>(Native.java:131)
at com.sencha.jna.mac.Carbon.<clinit>(Carbon.java:11)
at com.sencha.tools.watchers.FSEventWatchService$1.run(FSEventWatchService.java:41)
at com.sencha.util.ThreadUtil$1.run(ThreadUtil.java:65)
at com.sencha.util.ThreadUtil$2.run(ThreadUtil.java:162)
at java.lang.Thread.run(Thread.java:748)
How fix this problem?
Thanks

Related

Cordova Android build error “Cannot read property 'version' of null”

I'm trying to run the the cordova build Android command and it's failing. Error message output:
$> cordova build android
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=C:\Android (recommended setting)
ANDROID_HOME=C:\Android (DEPRECATED)
Cannot read property 'version' of null
I have the latest version of cordova, gradle and the Java 8 JDK installed. And all the environments are set. I have no idea what could be the issue.
$ gradle -v
------------------------------------------------------------
Gradle 7.1.1
------------------------------------------------------------
Build time: 2021-07-02 12:16:43 UTC
Revision: 774525a055494e0ece39f522ac7ad17498ce032c
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 1.8.0_301 (Oracle Corporation 25.301-b09)
OS: Windows 10 10.0 amd64
$ cordova --version
10.0.0
$ java -version
java version "1.8.0_301"
Java(TM) SE Runtime Environment (build 1.8.0_301-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.301-b09, mixed mode)
Removing and re-adding the platform resolved my issue.
cordova platform rm android
cordova platform add android

Installing Android SDK Manager on Ubuntu 18.04

I'm trying to install Android SDK (not Studio) following this tutorial - https://linoxide.com/linux-how-to/install-android-sdk-manager-ubuntu/
When running sdkmanager --list I was getting the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
So amended the file ~/android-sdk-tools/bin/sdkmanager and amended the following line to be:
DEFAULT_JVM_OPTS='"-Dcom.android.sdklib.toolsdir=$APP_HOME" -XX:+IgnoreUnre cognizedVMOptions --add-modules java.se.ee'
Now the error doesn't show, but when I run sdkmanager --list it just hangs without any response.
If it helps, here's my versions of java etc:
$ java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2, mixed mode)
$ javac -version
javac 10.0.2
Java version 9 and 10 are not supported for android sdk, downgrade your java version 8 or less.

Codename one BrowserComponent crash

I have been developing an app that uses a payment gateway and I tried using a browserNavigation callback to execute some Java code when the return URL is loaded. My problem is that, the app crashes just before the for containing the browser component loads.
Below is the error it reports:
Exception "java.lang.ClassNotFoundException: com/intellij/codeInsight/editorActions/FoldingData"while constructing DataFlavor for: application/x-java-jvm-local-objectref; class=com.intellij.codeInsight.editorActions.FoldingData
Exception "java.lang.ClassNotFoundException: com/intellij/codeInsight/editorActions/FoldingData"while constructing DataFlavor for: application/x-java-jvm-local-objectref; class=com.intellij.codeInsight.editorActions.FoldingData
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x54c3249e, pid=28320, tid=31852
JRE version: Java(TM) SE Runtime Environment (8.0_40-b26) (build 1.8.0_40-b26)
Java VM: Java HotSpot(TM) Server VM (25.40-b25 mixed mode windows-x86 )
Problematic frame:
C [jfxwebkit.dll+0x5d249e]
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
An error report file with more information is saved as:
C:\Users\MY_COMPUTER_NAME\IdeaProjects\My_APP_NAME\hs_err_pid28320.log
If you would like to submit a bug report, please visit:
http://bugreport.java.com/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
That's one of the many JavaFX bugs in the JVM and webkit support... You do however have a very old version of the VM. I recommend upgrading to the latest version of Java 8 as some of those crashes were resolved.

grails app deploy on google-app-engine flexible causes ClassNotFoundException in in grails.init.RunCommand

Following the guide here :
http://guides.grails.org/grails-google-cloud/guide/index.html
and using the completed project from the github link at
https://github.com/grails-guides/grails-google-cloud.git
Ran
==> gcloud init
Then
==> gcloud app create
Then
==> gcloud app deploy
The last step errors out with the following error :
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [9]
Application startup error:
-XX:InitialHeapSize=514850816 -XX:MaxHeapSize=514850816 -XX:+ParallelRefProcEnabled -XX:+PrintCommandLineFlags -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseG1GC
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-1~bpo8+1-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
Could not determine grails wrapper version due to missing gradle.properties file. Using existing jar
java.lang.ClassNotFoundException: grails.init.RunCommand
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at grails.init.Start.main(Start.java:125)
Please help with the reason for this.
I can confirm that there is a gradle.properties there with the following contents
https://github.com/grails-guides/grails-google-cloud/blob/master/gradle.properties
My local grails version is
==> grails --version
| Grails Version: 3.2.9
| Groovy Version: 2.4.10
| JVM Version: 1.8.0_77
to deploy the app you need to use:
$ ./gradlew appengineDeploy
see chapter 7 at http://guides.grails.org/grails-google-cloud/guide/index.html#deployingTheApp

Google app engine return error log: unsupported major.minor version 51.0

I've just build a sample application to test out google app engine and google web toolkit feature, using a RPC service and google app engine with JDO. The service works on local. But after i deploy it to GAE and run, it show me the error as title says.
I use JRE7 to complie the application.
Here is my error log:
Uncaught exception from servlet
java.lang.UnsupportedClassVersionError: com/gwt/myexample/server/EmployeeServiceImpl:
Unsupported major.minor version 51.0
at com.google.appengine.runtime.Request.process-e8c21a25e91f709f(Request.java)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at org.mortbay.util.Loader.loadClass(Loader.java:91)
at org.mortbay.util.Loader.loadClass(Loader.java:71)
at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:242)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at com.google.tracing.TraceContext$TraceContextRunnable.runInContext
(TraceContext.java:449)
at com.google.tracing.TraceContext$TraceContextRunnable$1.run
(TraceContext.java:455)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:695)
at com.google.tracing.TraceContext$AbstractTraceContextCallback.
runInInheritedContextNoUnref(TraceContext.java:333)
at com.google.tracing.TraceContext$AbstractTraceContextCallback.
runInInheritedContext(TraceContext.java:325)
at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:453)
at java.lang.Thread.run(Thread.java:679)
My application link: http://jdodemo02.appspot.com/
Any suggestion please ):
Compile your application with Java SE 6. GAE doesn't support Java SE 7. Locally it works, because the GAE simulator runs on top of your local JDK.
One thing is to set the JRE 6 to the Build Path and the Compiler as well.
Dont forget, once you created your GAE Web Application project with a different JRE or JDK, always check the java version in the org.eclipse.wst.common.project.facet.core.xml in your .settings folder.
instead of directly editing the org.eclipse.wst.common.project.facet.core.xml in your .settings folder It will be better review it in eclipse as bellow
Right click on your eclipse project
Select Properties
Select "Project Facets" in the left panel
Select the Java version appropriately
I've been fighting for days. I have a Mac and needed to use GCM developing an Android app. The only way I could get GAE working in Android Studio, and also compatible with the installed JVM that I had was:
Install Homebrew.
Customize it with Homebrew Cask (brew install caskroom/cask/brew-cask).
Install Java using homebrew cask (brew cask install java).
Install Android Studio using homebrew cask (brew cask install android-studio).
Update Studio to the latest version.
Go to settings of the project in Studio and change the target JDK to the one that homebrew installed (1.8 located in /Library/Java/Home, which is actually a symlink).
Hope non of you guys run in the same path as I did, One just doesn't walk into Mordor, It has been 5 long days of fighting.
Too run creatjs project from Flash devlop you must downlod:
google compiler from link:
https://developers.google.com/closure/compiler/
haxe compiler from
http://haxe.org/download
jave jre 7

Resources