I have been googling on this but I can't find the answer.
Can anyone tell me if you can put a Java application on the windows 8 start screen?
According to java.com
When will Java be supported in Windows 8? Windows 8 is officially
supported with the release of Java 7 Update 10. Java will only be
supported in Desktop screen. Java will not run in the Start screen.
I am not sure how to interpret this since I do not know the startscreen of Windows 8 and they talk about internet explorer 10 on the same page which makes me think they may only be talking about the browser.
Basically I want to have a tile to act like a classic windows icon. Is this the way it works and is this the way you can run a java application? Or do you need to go to the desktop interface first?
No. You can't.
All the apps on the Windows 8 start screen are the apps downloaded from the Windows Store.
All the other Java applications that you develop will run in the desktop environment, but not in the start screen.
As per this source, you can look forward towards creating apps for Windows Store using Java and then you can maybe think of putting a Java application on the Windows start screen.
You cannot put directly a Java application in the start screen in windows 8 (just as you couldn't create shortcut icons on the Desktop in Windows 7), however notice this is rarely what you want with a Windows desktop application.
Most of the times you will want to wrap your Java desktop application with a windows installer which will put the start screen icon on windows 8.
Your Java code will then be launched by the installer executable which might do some house cleaning jobs like checking what compatible version of Java is installed in the computer and if required install a newer one.
Related
For a while I've been developing JavaFX applications in Java 8 and I recently upgraded to Java 10 which still includes JavaFX. Attempting to run my previously created applications leads to uglier-looking applications. The window is much larger than what it should be and everything is bigger than normal. To demonstrate with one of my GitHub applications:
I am able to reproduce this by uninstalling (and installing Java 8) running the application and then reinstalling Java 10 and running the application. Were there changes to JavaFX in 10 that could cause this? Is there anyway to fix it or do I just recommend users to stay on Java 8?
We have a set of Java applications that have been working fine on OS X for years. They work fine on OS X 10.10.
A few people just upgraded to 10.11, and one of the apps no longer runs. It gets a:
com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.oneshot.0x10000004.OSXJavaLauncher[395]) Service exited with abnormal code: 1
Error in the console, and never starts at all. (icon shows on the taskbar for just a second.)
Our other app starts just fine. It is built with the same Java Launcher code.
Is there any way to find out what OS X doesn't like about the app that fails to start?
I was having the same problem, basically even with Java for OS X 2015-001 installed my app wouldn't start. In researching this problem, I came across information on this github page, which does a really good job of explaining the issue. In short, Java apps built into native executables for mac using older tools will no longer work because of incompatibilities in the plist format, and applicationstubs. Apps built for Apple's java are not running with Oracle's java and vice-versa.
Using the information from the referenced page, I rewrote our ant build using this ant task, and this application stub. I now have a native app that runs on both Apple's Java 6 and Oracle's Java 8 and runs in testing on OSX 10.9-10.11.
Java is no longer installed by default on OS X, but fortunately if a user tries to launch a Java app, they receive the following message:
I really like this, as is clearly explains that Java is required and provides a one-click way to install it. It's simple and painless for end users.
However, this prompts to install Java SE 6 rather than Java SE 7, which has been out for some time. This even happens on OS 10.9.1, the latest version as of this writing. I'm considering making my app require Java SE 7, but I want to ensure that users will be downloading the proper version (I'm aware I can bundle the JRE, but I would prefer not to add it since it would quadruple the app size). Ideally, I'd like for the dialog box shown above to continue to be shown, but instead of downloading Java SE 6, it downloads Java SE 7.
I tried changing the JVMVersion key in the Info.plist file of my application to 1.7+, but that didn't make any difference and it still prompted to download Java SE 6 (which if it actually did require it, would result in an incompatibility).
So is there a way that I can get OS X to prompt the user to download Java 7 when they launch my app? To be clear, I want this to be something on the user side. I know that I can install Java, but I want it so that it is as painless as possible to the end user.
There is no way to automatically download Java 7 on OS X. This is by design. When you deploy an OS X application, you are expected to put everything that is required for the app to launching into the app bundle — inclusive of the JRE or JDK if you need it. If you find that the size of the JRE or JDK is unacceptable, you can prune out any components you don't need (JavaFX, AWT, JObjC, etc).
This is the most painless user experience you can offer. Download, double-click, and go.
I'm working on a little Java app and I'm currently putting the installer together. This checks for perquisites, such as Java being installed, and prompts the user to download anything that's required.
I need to set a requirement for the minimum Java version I support (I'm building with 7). Is there a simple way I can detect what this would be? So if I'm using any classes etc. not available in earlier versions. BTW I'm using IntelliJ.
I'm not sure if the entire 'system tray' complicates things, but..
For deploying Java desktop apps., the best option is usually to install the app. using Java Web Start. JWS works on Windows, OS X & *nix.
The best way to deploy a JWS app. or applet is to use the Deployment Toolkit Script. (That script will do the 'version checking').
I'm relatively new to programming, I've been developing a lot lately in the eclipse environment and had the idea to build a small application for windows 7 that when I remove the power cord from my laptop it will enable my touch-pad and when the power is reconnected disable the touch-pad.
My question is how exactly do I go about building such an application?
Is there a package I can import that gives me access to the Windows 7 API?
And is it possible to compile a java application so I can have it run at startup?
I agree with Andrew that java is probably not the best choice for such kind of application but anyway here is what you can do.
Java 7 file API is able to listen to file system. You should listen for the changes is root folder of your card. I guess you will get exception when card is disconnected.
Touch pad may be invoked as an external application. Take a look on this discussion for details: Java - invoke on-screen keyboard
Alternatively you can use JNI, JNA or one of java-to-windows libraries (JaWin, Jintegra, Jinterop). But I think this is much more complicated. I'd recommend you to start from the first solution.