Mac java app hangs on start when accessibility enabled - java

I have a javafx application which i launch with the help of a .app bundle (created with install4j). The .jar launch perfectly in command line or in eclipse but when i use the .app, it hangs for at least 1 minute (the computer freeze) and finaly finish booting after many other hangs. My app require to be added in Security->Accessibility (assistive device). If the app is not added, it will boot perfectly until it ask for the security clearance. Once i add it, it hangs at the very start even before the splashscreen. Any ideas?
Edit : It works when i launch the javaApplicationStub directly.

If you haven't already resolved this, this will probably have happened due to Java (FX) bugs with Mac OS 10.14 Mojave: https://bugs.openjdk.java.net/browse/JDK-8213793
There were 2 or 3 related bugs and they affected all Java versions up to 11.0.2, which was finally released in February 2019.
Upgrading to 11.0.2 or higher or downgrading to Mac OS 10.13 would probably solve this issue. It is not an install4j issue or related to anything other than the use of Java FX on Mojave.

Related

Java 64bit install doesn't work; only 32bit does?

This isn't coding related, I hope that's fine. I've been trying to run a modpack through techniclauncher, but I can't get the launcher to even open.
If I have java 64bit installed, anything I open that uses java just stays in the taskbar/task manager for about 3 seconds, then closes with no error message. 32 bit java works, but I need 64bit so I can dedicate more than 1GB of ram to a modpack.
I am on Windows 10 x64 build 1903, my java version is JRE 8u231 but no matter which version of java I install the problem persists.
Things I've tried:
uninstalling/reinstalling
Using revouninstaller from Britec's tutorial
Installing an old version of java (Java 6 had the same problem, same with older versions of java 8)
jarfix
updating graphics drivers (gtx 1070 currently on 441.41)
I have no idea what caused it; it worked fine a few months ago and when I tried to launch a modpack yesterday the launcher wouldn't start. Even the java control panel doesn't work. Any help would be appreciated, thanks in advance!
[EDIT: screenshots of event viewer]
https://gyazo.com/70c9b5599fe3331e927171a6ac279e25
https://gyazo.com/1786c8011182933e3671481966394507
https://gyazo.com/da029d89cfdf0da6a3af4cb5a4c9b083
https://gyazo.com/a0a377129d51ee7b51a4b2aefce8723f
https://gyazo.com/4ad84929c5f1c0e93834289616f4afb2
This all happened at about the same time when I tried to open the Java control panel
The error message seems to indicate the crash has something to do with graphics / Direct3D. Finding the root cause might be difficult, but one thing to try would be updating your graphics drivers.
Another thing to try would be to disable Java's graphics hardware acceleration. The System Properties for Java 2D Technology page has instructions on how to do this. Under Windows, to configure globally for all launched Java applications, set the environment variable _JAVA_OPTIONS to -Dsun.java2d.d3d=false to disable Direct3D acceleration.

How to run Android Studio on Win XP? [duplicate]

I have been trying to download Android Studio for the past week or so and haven't been able to. I'm still running windows XP on a Dell d430 (If it helps). The error happened when it was extracting a file. If you could provide a link which can download android studio for Windows XP on a Dell d430, please do. Thank you for your time (by the way I know that this question doesn't have much to do with programming).
Check this page
Wiki
Version 1.X only supported for Windows XP
The self-extraction that the installation binary performs has definitely nothing to do with what version of Studio you try to install or whether it supports XP or not, the installation shall start and tell you if there's a problem.
Actually, you can run Android Studio fine on Windows XP, I do it on a Dell Inspiron 9200 (Intel Pentium 1.7GHz 2GB RAM). I even installed the latest version 2.3.2 and Java SDK 8(which is required: make sure it's not just JRE 8 but both). Java SDK 8 complains about XP being old but installs fine. There's a snag in Studio tools with an XP dll but that can be fixed, read on.
The downloading doesn't involve extracting as your question implies, if it does you haven't got the right download. When downloading is done and the installation is started, that's when the extraction begins.
If you didn't download from developer.android.com/studio/ it might contain malware. You could scan it but being a huge file(approx. 2GB) you have to download a scanner, e.g https://www.bitdefender.com/support/how-to-install-bitdefender-on-windows-xp-and-windows-vista-1453.html
For Windows versions newer than XP / Vista refer to www.bitdefender.com/toolbox/freeapps/desktop/
After the download is done (and verified if needed), your problem with the installation program might be one or more of, but not limited to:
The file you downloaded is corrupt. Try downloading another copy.
Corruption on your hard drive, however less likely if the same file fails to extract again and again.
Your Memory or CPU is failing. Very unlikely if the same file fails even twice.
Corruption in the current directory data block or a problem with the directory path. Try creating a folder at the root with no spaces in its name ( e.g. C:\Download ), move the installation file to it and run it from there.
About support/compatibility: it's not unpermitted trying to install and run, and I for one am all for it. But if it's not supported and you run into problems, another way to go rather then upgrading your system is to downgrade your software. Here you have suggestions, but take care scanning them for malware. For smaller files(current max 128MB) you can upload to Google owned www.virustotal.com/
How to install an older version of Android Studio
Finally, the dll problem in Android Studio 2.3.2 is with the adb program requiring a newer version of WS2_32.dll (it's technical: never mind). A work around is to download an older version of adb:
forum.xda-developers.com/nexus-5x/general/psa-fix-adb-doesnt-winxp-t3403955
Or, as the suggestion here says: if you're feeling adventurous, you can always grab the new WS2_32.dll, then scan it by uploading to www.virustotal.com/, and register it with the command regsvr32 WS2_32.dll (google regsvr32 for more info on that).
coderanch.com/t/667002/Android-ADB-find-entry-point
/z
Most likely, Windows XP is not supported. You should find a way to update your operating system. Consider installing Linux on your old machine. Recent distributions will work albeit very slowly.

Javapackager deploy IOException on second time

i noticed that i can not deploy a JavaFX application with javapackager two times without closing the IDE / commandline. I want to create a native image of my application on a Windows 10 machine.
After the second deploy I get Exception: java.io.IOException: Access denied. After closing and reopen it works for one deploy again.
I can reproduce this Issue with Netbeans (create a JavaFX Application, enable Native Packaging, and then package as "image only") on 3 different PCs with Oracle JDK 8u121 and Windows 10.
I also get this error in a gradle project in eclipse trying to deploy it with the official ant task (https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/javafx_ant_tasks.html)
Also tried it on an Ubuntu VM and OpenJDK. There is no problem.
Can somebody of you reproduce this error on Windows 10, too?
Is there a workaround or offical bug report for this?
Thanks in advance
Joey
This is a known problem, the cause is a file-handle leak and already got reported by me: https://bugs.openjdk.java.net/browse/JDK-8148717 It is only windows-specific, as the file-locking on the JRE-folder works on windows-systems, other OS don't lock.
This bug got worked around inside the JavaFX-Gradle-Plugin, as gradle starts daemons, which hold up the JVM, the JavaFX-Maven-Plugin didn't need it, because the JVM is always closed.
Disclaimer: I'm the creator of the JavaFX-Gradle-Plugin and maintainer of the JavaFX-Maven-Plugin.

STS 3.6.4 on Mac OS X Crashes on Launch

I have a fresh download of spring-tool-suite-3.6.4.RELEASE-e4.4.2-macosx-cocoa-x86_64.tar.gz & JDK 8u45 on either Mac OS X 10.9.5 or 10.10.3 that crashes after launch. STS loads, asks me where to create a workspace, the interface loads, then crashes about 15 seconds later.
Due to IT Security policies, I have to use Java 8, so downgrading the JDK to a lower version is not an option.
Does anyone have any suggestions on how to troubleshot/fix this issue?
Note, I'm a System Admin preparing the package for deployment, not a developer. I don't have any previous workspaces or old versions of the software installed on my machines.
Thanks!
Did you actually let it load your previous workspace, for example from STS 3.6.2 or something? If so, please make sure that you create a new workspace and then give it a shot.
I have been using STS 3.6.2. But after I saw your post, I decided to give it a tried. Downloaded it, unarchived it and ran it.It has been running for good 5-10 mins so far. So, I don't believe anything is wrong with the pack.
OS: MacOSX 10.10.3
I don't really know why this fixed it, but if I install the JDK 7 update 79 and then install JDK 8 update 45 everything runs. I haven't done any real deep dives to see what parts 7u79, if any are being left behind after 8u45 gets installed, but it's working.

Java stopped working in Firefox. Works in IE

Some Java applications recently stopped working in Firefox. I believe there was a recent upgrade to Firefox (it is now on 38.0.1), and this may have brought about the issue. My Java version and settings did not change, so I think that it must have been a silent upgrade. Also, the same applications still work in Internet Explorer, so I know that Java itself is still working.
Now, even if I go to the "Verify Java Version" page on java.com through Firefox, I only get a grey box after I click Agree and Continue.
When this issue first came up, I had both Java 6R27 and Java 7R11. I've tried upgrading Java to the latest version 8, but even with that as the only installed Java version, I am not able to run the Verify Java or my other application.
When I launch my main application that needs Java, I get "ClassNotFoundException" for "PasswordDialog.class." How can I troubleshoot why this does not work in Firefox while it does work in Internet Explorer?
Download the jxpiinstall installation not the JDK one.
The best way to install Java and run FireFox is to get the JRE running not the JDK, I found out that installing each on separate folders did the trick for me.
So I have my JDK in : C:\jdk1.8.0_60
And my JRE in C:\Program Files (x86)\Java\jre1.8.0_60
First, you need to remove java from your pc, uninstall FF and reinstall FF then Java

Categories

Resources