Developing Java desktop applications on Microsoft Surface Pro/Pro 2 - java

I have a working Java SWING-based desktop application, and I'm being asked if it can be run on the Microsoft Surface Pro or Pro 2. As I understand it, these are using stock Windows 8/8.1 and will be able to run any Windows app normally, is this correct?
Are there any caveats or special considerations when running my app on these devices?
Edit: If it matters, the JRE would be distributed together with the application, so installing Java isnt an issue.

... will be able to run any Windows app normally, is this correct?
You will be able to run Java programs, but only in Desktop mode after installing the JRE. Java 7 Update 10 added official support. See Java on Windows 8 FAQ.
By default, Java is not installed on the Surface Pro. There is no java.exe or javac.exe when attempting to run from the command line. You have to go to Oracle and fetch it.
I was able to install the JRE on my Surface Pro. The package was installed in C:\Program Files (x86)\Java\jre7\bin. After the install, java.exe -version worked from the command line (after fixing PATH). The install also included an IE plugin, and it appears to have worked with IE 10 from the tablet. I was also able to install the x64 JRE. I did not try to install the JDK.
There may be something offered on the Windows App Store, too. But I don't use the store, so I don't know.

Related

IBM i Access doesn't start on Fedora

Here is my setup:
System76 Gallago Pro
Fedora 30
OpenJDK 1.8.0_201 (I did try Oracle as well)
I installed per IBM's instructions, using the installer script from the command line. I went through the installer menu and got to the success screen. I have done this a half dozen times on other machines and with OS upgrades on this same machine.
When I use the super key to find the program it is there; I click on the icon and my box returns to the desktop - but i Access doesn't start.
If I start via the command line using the start script, I get MSGGEN045 - A graphical user interface is not available.
If I run the java program directly
java -Xmx1024m -jar /opt/ibm/iAccessClientSolutions/acsbundle.jar I get the same message as when using the start script.
How can I get past this error? Or,what else can I do to track down what is happening?
I've had two issues when running iACS on Fedora. The first was the OS had a headless JVM installed by default. The second was something to do with sound.
Based on "MSGGEN045 - A graphical user interface is not available", I'd suspect a headless JVM.
HTH
Edit:
I checked for the headless JVM at the direction of IBM support. I don't remember the exact wording, but the name of the installed package was a dead giveaway. A simple "rpm -qa" was all it took.
I don't have anything Fedora specific but it seems that you either didn't install a Java Runtime Environment or just a headless version of it (jre-headless). Install a full JRE and everything should be fine.
You could check this with yum:
yum list installed | grep jre
Fedora is running wayland and not X11. Java doesn't play nice with wayland as of yet. As far as I know there are no plans yet to fix that. This is a good place to start https://www.ibm.com/developerworks/community/forums/html/topic?id=1b366edf-0e70-40d5-8d92-30d401edd97a

Oracle java SE runtime Env 8 - 111 instalation fail [installer blank screen][Windows]

Hi,
java SE runtime Env 8 - 111
I get screen like that when I'm trying install or remove old versions of Java
Was trying to fix that in many ways:
it is said that is because of AntiAliasing function of Nvidia card - Not true, after uninstaling display drivers, and using to delete all nvidia packages
http://www.guru3d.com/files-details/display-driver-uninstaller-download.html
there is no effects even on clean primary windows display driver
rebuilding services, WMI, permissions to registry keys, default permissions to services, and system files by
http://www.tweaking.com/
several times,
trying to install by internet setup, full package, 32bit, 64bit
system checked by several tools for viruses, malware, spyware, etc..
cleaning temp folders (system and user), browsers cache,
cleaning registry keys by CCleaner.
yes, windows update works like a charm.... (like no windows update.. ; -)
I have also linux (Fedora) system for programing, but it is for other purpose. So please don't make a comments in style "instal linux"...
I still need Windows 7 machine for php 5 & 7 MySQL/Postgres/M$ SQL and Android apps enviroment...
Solution for this issue is
https://www.raymond.cc/blog/easily-install-all-versions-of-net-framework-plus-hotfixes-with-aio-runtimes/
https://www.computerbase.de/downloads/systemtools/all-in-one-runtimes/?download
It removes all M$ Visual C++ Redist (a really big mess always) and replace them with curent fresh versions.
You can't keep them fresh just by M$ Windows update.
After that your Java Runtime Enviroment - will work.
You can get around the Java 8 install by installing silently.
An older Java 8u11 works to install but any newer versions won't install you will see a blank screen when trying to install.
To silently install:
Download Java 8 to your C:\ then run Navigate to the C:\ via cmd prompt
Enter the following command (using the name of the file you downloaded): jre-8u271-windows-i586.exe /s
Press Enter

How to make installer on Linux, Mac, and Windows?

I have developed a program using Java SE on Windows 7.
I build this app and it runs well on Windows.
I tried to run on Linux, so it runs but after some steps of:
Removing OpenJDK app.
Install Java JDK from terminal
Run jar file from terminal.
I need to make an installer on Windows - Linux - Mac, which installs JDK package and make the program run by double clicking.
Try using JarSplice. It is a nifty tool for converting Jar files into runnables for different systems. There are lots of tutorials on the internet on how to use it, although it is very well labelled and I found it simple enough to use.

failing to install JDK 7

I don't know if it is the right place to ask, if not tell me I will migrate my question elsewhere.
I am using OSX (Maverick) and I am trying to install the JDK 7 in order to use javaFX. So I downloaded the .dmg package from oracle and when I double click on the package, I get the error message can't found mountable file systems. In the documentation I found this alert:
If you download Java 7, you will not be able to run Java content in Chrome on Mac OS X and will need to use a 64-bit browser (such as Safari or Firefox) to run Java content within a browser. Additionally, installing Java 7 will disable the ability to use Apple Java 6 on your system.
So how can I properly install the JDK 7? and Is it dangerous to install it? Could it mess up all my settings, knowing that I only want to use the JDK 7 to run some java project ?
I believe the error message you are getting just indicated a corrupt dmg file.
Try downloading and installing it again and it should work fine.
So how can I properly install the JDK 7?
You can only install the 64bit version of Java 7, the only real downside is that it will not work with things like the crome browser, you can install it the same way as you first tried, download and install it from here: JDK Download
Is it dangerous to install it? Could it mess up all my settings
No, installing the JDK should not make any noticeable change, even if you run apps on it instead of your previous JDK/jar, they should still work. If you have older JDK's installed you can still use/select them in an IDE. If you do use crome then it should continue to work as normal using the existing/old JRE/JDK that you have installed.
knowing that I only want to use the JDK 7 to run some java project ?
The Java 7 JDK is backwards compatible, meaning it should run all existing java apps.
If you were worried about swapping between Java 6&7 then this thread may help: https://superuser.com/questions/490425/how-do-i-switch-between-java-7-and-java-6-on-os-x-10-8-2
You can download on another system. And unzip the contents to a folder. Then you can copy that onto your Mac and try. I guess that is what he meant by the folder.

PC is configured properly but .jar files still won't run

When I make a .jar file using BlueJ, it runs fine on both of my PCs (Notebooks)-one is running Windows Vista the other Windows 7 -but not on a different PC running Windows XP. This third PC does have the correct file association and a JRE. No error is displayed, the critical stop sound plays but there is no other activity.
The real question here is why did a standalone JRE work in Windows 7 but not Windows XP?
How can I be sure that people I write programs for can run the jar file without having to install a JDK? A JRE was sufficient for my Windows 7 pc, why is this not always the case?
if more than one jdk is installed,you must remove its.Then you install lastest version of jdk.
A standalone JRE allowed excution of jar files by double clicking on Windows 7 but not Windows XP. Based on this, some JREs perform differently than others on different O/Ss.

Categories

Resources