Submitting Jar file to app store - java

Do anyone has bundled a jar file to make an mac os app which is being accepted by app store.
I have converted an inellij generated standalone jar file to macOS native app. It is working fine on my Mac OS after requiring java installation . But as apple require security singing certificates and it deny any third party installations.
So i was looking for some resource to sign my app without xCode. I have already generated and downloaded the certificate for mac app from my developers account but i don't know how to sign my app.
I ll' thankful if someone could help me to find a resource on this matter.
i am using the following apps for bundling and wrapper but it's not working.
for bundling- https://sourceforge.net/projects/jarappmaker/
for wrapper- http://www.ohanaware.com/appwrapper/appWrapper3update387.dmg

It is impossible to sign your app without xCode. Welcome to the world of Apple. Do not pass go, do pay us $100.

Related

Moving/Porting Production Android Apps from Windows 7 to Linux Based Systems Correctly

Sorry in advance, there are a lot of questions in this post. I was not able to find much good information on this online so far (maybe I missed the correct search term).
The idea of this post is to migrate Android applications (that can potentially be production level on the Play Store) from Windows 7 to Linux based machines and document it correctly (like I said above I haven't found any good articles about it yet). If I find the solution myself I will post the answer.
Short background: Currently Windows 7 support ends in 2020, looking to move/port production level Android Studio applications to a Linux based system moving the following.
Code for each project.
Moving keystores and other important Android Studio production level files not inside of the project folder.
My main question is what is the best way to do this:
Copy all of the files on an external drive and move them that way?
Use Git to upload the app and redownload on the Linux PC?*
*I understand that Keystores and other non application settings for Android Studio will need to be moved manually with a copy to the external drive since Git generally only loads on the project level.
So far I am looking to see if anyone has experience already with this process and if they have run into any roadblocks or difficulties doing this?
Also what keystore files are necessary to copy? I understand they are in the directory below.
Is the debug.keystore the correct keystore to use for production level keystore applications?
Directory: C:\Users\username\.android
File 1: debug.keystore
File 2: default.keyset
No. The debug.keystore and debug.keyset keystore files shouldn't be used in production, and only in development. If they are missing, they will be generated on your next build, so you won't have to worry about moving them - building the project in Android Studio on your Linux will create these for you.
To generate release keys used in production, please see this.

Running JAR on iPad/iPhone

I have a JAR (java application), which I want to run on my iPad. Is that possible, How to do this? If possible through Appstore, (I know the process of Appstore and I have Apple Appstore account), please let me know is it possible to upload jar in Appstore and download from there?
No, it's not possible to run jar file into iOS or upload to App store. but Oracle ADF Mobile uses a native container that runs applications on both iOS and Android from a single source base. One part of that native container is a headless/lightweight JVM, but it's definitely not a .jar file
http://java.dzone.com/articles/oracle-gets-java-running-ios
http://www.infoworld.com/t/java-programming/java-ios-just-keeps-getting-easier-204543
That's impossible. Apple doesn't support Java. Apple uses Objective-C as its main language. If I'm not mistaken, Safari on iOS doesn't support Java too so you can't run applet on iOS too.

How to run Java app in Android

Is it possible to run java app (jar) in my android application? Because I need to create PDF, the problem is if I generate PDF in android, only can show with small image, if it contains large image in many pages, it will be error. So I think, I can generate PDF in java and then included to android app.
Concernig the mentiones app JBED:
Well honestly, I could not find any credible source for this tools JBED, so I would really be very cautious (e.g. who is the developer?)
In the manifestfile (in Androidmanifest.xml, where every app has to state what rights it needs to run, see How to view AndroidManifest.xml from APK file?) there are many rights mentioned (what could be necessary, as the app wants to run as an emulator), so a java application might want to send an SMS, record audio, take pictures and place calls -- so the emulator would need those rights as well.
But then the app also registers the "android.intent.action.BOOT_COMPLETED" event (i.e. autostart after boot) and this would go against every description of the tool.
Ah yeah and giveaway: The apk has a folder "certs" that has some (root-)certificates. But those are not the real certificates of the authorities, e.g. Versign. If one installs the app and by that those certificates the trust you might have in https-connections is lost because those who made the fake certificates can create own, false certificates that your phone would trust.
I assume (or am pretty sure) this is a spy tool, but I could be wrong. The (rare) testimonials that claim the tool ran perfectly will probably be the same person that posted the tool under a different name.
Andreas
You can import java Third-party libraries into Android app, follow the steps here.
I am not sure whether it will work,but just try.
If your program is a console program, the answer is yes.
Install Jvdroid from Google play. Click terminal and then write this command: java -jar YourJarFileName.jar
The simplest way would be to some install terminal emulator and then install java and then you can run java apps on standard java. You can even install full Linux distro with x server without rooting the phone, then connect to it from x client and you have Linux desktop on android. Once I've even installed eclipse for java development on it and everything worked. I tested this setup last time in 2014, but I'm pretty sure you can do this nowadays as well. The app with Linux I get from play store as well app for the x client. The app I used back then was "Debian no ROOT" or smthg like this. You need to check what's currently available to make this setup in Google Play store according to your android version and your preferences. Last time I've checked there was a lot of different tools for this kind of task. Lastly I've even successfully installed TF and keras on my android phone using terminal emulator.
You can use JBED. JBED is an .apk Android application which run java games and app on your android Device. JBED is a java android emulator, by using
this application we can install .JAR/.JAD/Java/J2ME/MIDP app on android phones.
You can do it quite easily as there are many ways to run java apps on android. Specific application called Java Emulators can do it quite easily.
These are four most popular java emulators for android viz, JBED, PhoneME, Jblend and NetMite. These are arranged in order of their preference. You can use phoneme for non rooted device, however if your device is rooted try any of the remaining three applications.

How to submit a JavaFX app to MAC App Store?

I have packaged my JavaFX application as a self-contained application using simple JavaFX Deployment steps on MAC. According to link Packaging a Java App for Distribution on MAC , only the last step is remaining which describes submitting an app to mac store . But unfortunately links that lead us to help page are redirecting to the same page and that information is not clearly define steps required to submit a JavaFX app to mac store. Why I need XCode to submit my Java Application to App store? Do I need go through signing steps again, as my app is already sign with valid certificate issued by COMODO? Can I get any help link which guide me to submit my JavaFX app to MAC app store?
Steps so far I have done-
Create a JAR File
Bundle the JAR File into an App Package
Bundle the JRE with the App Package
Sign the App
Now what next to submit a JavaFX app to MAC App Store?
The Apple page says you can use Application Loader (productbuild) rather than XCode.
You must use a certificate from Apple for the product signing.
After sign the App, you need package the App to XXXX.pkg like this: "productbuild --component XXXX.app /Applications -s "3rd Party Mac Developer Installer: Your Name (Your Team ID)" XXXX.pkg". Then upload XXXX.pkg using "Application Loader" program.

How to Sign a Cross-Platform Java App

I have an application that is written in Java and is going to be distributed on Mac OS X, Windows, and Linux. Currently, I am packaging the app for each platform as follows (but I'm willing to change it if an alternative is needed):
Mac OS X: Using Eclipse, go to "File" -> "Export…" and choose Mac OS X Application bundle
Windows: Bundle the jar file into an exe file using Launch4j
Linux: Bundle the jar file into an sh file using Jnix
The trouble is, I'm starting to run into problems with my programs not being trusted. Google Chrome reports that beta versions of my app are not from a trusted source and Windows 8 Smartscreen filter does the same. It's my understanding that the only way to get these security measures to trust my app (which will definitely be necessary if I want to distribute it for real) is to have the app signed. However, I'm finding precious little documentation about how to do this and most of it is for one platform (e.g. this tells me about signing for Windows 8).
My question is: is there a way to sign my Java code once and automatically have the executables I create be signed? Or do I have to sign each executable file separately? If it's the latter, is there one code signing authority that I can use or do I have to get it signed separately with different groups?
With the suggestion from ParrotMac, I wound up doing Digicert's livechat and asked some of these questions to "David". Here is what he had to say (edited for clarity):
Do I authenticate the Java code or the end product executable or both?
You'll want to sign the end product.
Do I purchase one certificate and use it for other platforms or do I purchase them separately?
You can purchase a code signing certificate, download it for a platform of your choice (e.g. Java jar files), then re-key it for another (e.g. authenticode for Windows .exes), if you would like. Re-keying is free and you can re-key your certificate for different platforms as many times as you would like as long as the certificate is valid. When you rekey, it does not invalidate your prior certificate, just enables you to download another one for a different platform. The platform you choose for digicert is just the platform it is initially keyed for.
One of my platform targets is Linux. Is there such thing as Linux code signing? Or is it just for OS X and Windows?
You can use the certificate in Linux, you would just use a different tool to sign it than you would for Windows or OS X.
So there you have it. At least from digicert (and I would presume other code authentication companies) you can buy one certificate and use it for multiple platforms at no charge. You then authenticate your end product; authenticating your raw jar file is unnecessary unless you're distributing it that way.
However, I did find out that if you wanted to get past Windows 8, you have to get more secure code signing.
Would code signing work to get past Windows 8's Smartscreen filter?
You would need the EV Code Signing certificate to get past the Windows 8 Smartscreen filter. The EV does cost more, but mainly due to the extra validation that comes with it. You can do the same thing with the EV as you would with the non-EV certificate.
And for good measure, I asked if a certificate was needed if it was being sent to the Mac OS X App Store or other store.
If I wanted to distribute this cross-platform app in the Mac OS X App Store or other store, do I need a certificate? If so, is it the same certificate?
For stores like Google's Apps store or Mac App Store, you'll need to have your software signed by a trusted certificate. But you would want to view that particular stores requirements to determine exactly what you need.

Categories

Resources