I'm used to run (for testing purposed) java applications from IDE. Start, verify, stop execution in output window in Netbeans. This works flawlessly under linux and windows but under mac osx for reasons beyond me the despite execution being stopped (red stop button greyed out, etc.) the java process persists in the background.
It this some inherent property of mac osx? (most of the applications stay running but I would assume that when I stop java from IDE it should basically kill it)
It is a bug in NetBeans way of launching apps - https://netbeans.org/bugzilla/show_bug.cgi?id=232322
Related
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.
I created a program using javaexe, a wrapper for Java programs that allows them to be launched by an exe file. This program contains a service part, a taskbar part (they send messages one to another). The program purpose is to send SMS and the list of the SMS sent is available from the taskbar icon.
The program has been working since a few years on a Windows XP computer, but I would like to launch it from my Windows 8.1 laptop computer, and when I launch the EXE, the splash screen is displayed, the service is installed, but the icon in the taskbar does not appear, and the serviceInit method does not seem to be run.
Where does the problem come from? My computer uses Windows 8.1, with Avast! as antivirus and the Comodo firewall. I obviously tested my program having disabled these 2 security programs (Avast! and Comodo) but there is still the same problem.
I use also JavaExe for an interactive service and I tested it on Windows 8.1 Pro (32bits)
with JRE 1.7 and 1.8....and it works fine, manually and automatically (after reboot) : the service running and the taskbar running also and communicates.
My .exe isn't fixed to run always as admin. When I install the service, I right-click and run it "as admin".
But, if I fix the .exe to always run as admin, I just double-click on .exe to install the service, but the taskbar doesn't run automatically after reboot : Windows 8.1 block the applications that automatically run as admin when the user log on.
I tested also the examples of JavaExe (example8 and 23) and it also works.
Have you the same problem with JavaExe's examples ?
All of a sudden, after years of using OS X Java without any problems, now, when starting ActiveMQ from the commandline a 'bin' application window appears. 'About bin' -> 1.0. When starting tomcat from the commandline an org.apache.catalina.startup.bootstrap window appears. Frustrating as they steal focus from the terminal. Never happened before. Just wondering if anyone knew why they might be suddenly appearing. I've seen lots of references to headless but this is the OS doing this for no apparent reason, rather than the java apps.
Well who knows what happened to Java but this answer provides the solution:
How to set java system properties globally on OS X?
i.e.
~/.profile
export _JAVA_OPTIONS=-Djava.awt.headless=true
I am developing a java server in eclipse which don't have any visible output.
I hit ctrl+F11 to start my java server software, and then it starts fine, but if I then edit the source code and start it again eclipse starts a second copy, and I don't want there to be 2 versions of my server running at the same time while I am doing development.
Is there a way to get eclipse to kill the old version, so there always only is one version of my server running.
On my Windows 7 x64 machine, I'm having problems launching my remotely deployed Web Start app (the Web Start app launches correctly on another PC as expected). In IE or FF, I click on the web start launch link, the JNLP is downloaded, it seems to get executed and nothing happens. I see javaws.exe processes running. I don't see a java.exe running.
I don't know if it's related but I also can't get the java console to run. In the Control Panel Java applet settings, I have have enabled "Show console" and "place Java icon in the system tray". I don't see the Java icon in the system tray either.
I'm running Java 1.6.0_21 (32 bit). I'm able to run Netbeans so the it appears as if Java is installed correctly on my machine. Why isn't web start working?
A firewall on my corporate joined domain was the problem. It was preventing web start as well as other types of apps from working correctly or even launching. Opening ports resolved it.
Are you absolutely certain that your Windows browser is binding the JNLP suffix to the javaws executable?
If you download the file, and double click, does it open correctly? If not, then right click, and investigate what is presented under Open With...
I had the same symptoms when I switched JNLP specifiction to 6.0. So I simply solved it by going back to 1.5, which I think is default in NetBeans, at least up til 6.7.
<jnlp spec="6.0+"...