airsquared / blobsaver

A cross-platform GUI and CLI app for automatically saving SHSH blobs
GNU General Public License v3.0
1.74k stars 148 forks source link

JavaFX? #57

Closed BartmanEH closed 5 years ago

BartmanEH commented 5 years ago

blobsaver says I need JavaFX (JDK is installed). I click OK go to download link, install the latest JDK, same problem--just get JavaFX error on launch.

This is always the case with every Java dependent application. They can never find a JDK install in my standard Win10 setup.

airsquared commented 5 years ago

Install Java8(from java.com) alongside your exisiting java installation.

BartmanEH commented 5 years ago

thanks for your help. I've tried that a couple of times. it says installation completed but the JavaFX error continues.

airsquared commented 5 years ago

Can you please post a screenshot of the error?

BartmanEH commented 5 years ago

image

SwiftWinds commented 5 years ago

Could you open command prompt and type java -version? Maybe it's not included in your PATH or the one in your PATH points to JDK 11, which does not include JavaFX. In the future, this won't be a problem because we will bundle JRE with blobsaver.

BartmanEH commented 5 years ago
C:\WINDOWS\system32>java -version java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09) Java HotSpot(TM) Client VM (build 25.201-b09, mixed mode) Ugh, I just hate Java. It's been like this for YEARS. Millions of people have to have Java and millions of people suffer these ridiculous issues that should be all but gone now in 2019. I downloaded and installed the slightly newer 202 version and now get: C:\Users\Bart_S>java -version java version "1.8.0_202" Java(TM) SE Runtime Environment (build 1.8.0_202-b08) Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode) I've installed both the 32bit and 64bit versions now but still get the "JavaFX is not installed" error.
BartmanEH commented 5 years ago

In order to avoid opening another issue just to ask for information but as invited in the Wiki for "What are blobs and why do you need them?" -> If you need more information or something isn't clear, create a new issue on github." I realize that it's not the purpose of this tool to educate noobs like me but the documentation (for which I am exceedingly grateful that there is any at all!) kinda seems to prefer beta iOS versions for reasons I can't understand. In the "Getting the required information" wiki entry, it jumps right into filling in fields but emphasizes "Saving blobs for beta versions".

  1. Can I get blobs for full GM releases? How? Do I use the ipsw link from "https://www.theiphonewiki.com/wiki/Firmware" instead? This is completely unclear.
  2. does my device need to have the firmware version installed in order to get the blob for that version? Also not clear but perhaps intuitively obvious to anyone who understands blobs.
  3. does the device have to be connected? also not obvious except to allow blobsaver to extract the ECID automatically.

Appreciate your support. Once these fundamentals become clear to me, I'm happy to help augment your wiki page with this sort of "getting started" information.

BartmanEH commented 5 years ago

I can't be the only one with this JavaFX error.

SwiftWinds commented 5 years ago
  1. Can I get blobs for full GM releases? How? Do I use the ipsw link from "https://www.theiphonewiki.com/wiki/Firmware" instead? This is completely unclear.

Yeah, you can get blobs for full GM releases. The IPSW link and everything applies for beta versions only. No need to get any required information with GM releases except your ECID and device model (which blobsaver can read from an iOS device connected to your computer).

  1. does my device need to have the firmware version installed in order to get the blob for that version? Also not clear but perhaps intuitively obvious to anyone who understands blobs.

No.

  1. does the device have to be connected? also not obvious except to allow blobsaver to extract the ECID automatically.

Only when extracting the ECID, board config, and device model.

Appreciate your support. Once these fundamentals become clear to me, I'm happy to help augment your wiki page with this sort of "getting started" information.

Thanks! I appreciate it 👍

And, to get to your point with JavaFX, I haven't had any problems with Java getting detected but JavaFX not getting detected. That is very weird. I compiled a version that doesn't check for Class.forName("javafx.application.Application"). Download it here and run java -jar <path to downloaded jar file> in command prompt. It'll probably crash, but don't worry. Just tell me what the output is.

Thanks.

BartmanEH commented 5 years ago

That version runs just fine. It will be clunky for me to launch it that way all the time though. But does result in the following error: image image

airsquared commented 5 years ago

Can you try the Linux download of blobsaver and run that with java -jar <path to jar file> and tell me if it works?

Ugh, I just hate Java. It's been like this for YEARS. Millions of people have to have Java and millions of people suffer these ridiculous issues that should be all but gone now in 2019.

I can't be the only one with this JavaFX error.

Nobody else seems to have had this error, it's just a problem with your machine/installation.

Nikostito commented 5 years ago

Have the same error on ubuntu linux 18.04 even though I have openjfx installed...

airsquared commented 5 years ago

@Nikostito Please run java -version in the terminal and tell me the output.

airsquared commented 5 years ago

Sorry, I accidentally closed this.

Nikostito commented 5 years ago

Hey I solved the problem by installing the Oracle java sdk version 8. Apparently openjfx and oracle sdk when they were split on version 10, are not recognizing one another. So I had to delete openjfx 11 and install java sdk 8. No everything gets recognized. May be you can include it in the readme for other users facing the same issue!:)

BartmanEH commented 5 years ago

I don't think installing old versions of JDK is the way to go. We have enough security concerns to worry about and downgrading Java just isn't possible for many of us. I tried to have both old and new running at the same time but that doesn't work. The solution is to make it work with the latest version of Java. That said, maybe my environment is corrupt. I'm going to uninstall all java and re-install one and see what happens.

Edit: of course that worked. I uninstalled all 64-bit and 32-bit JDKs, JREs, blah, blah and installed: java -version java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09) Java HotSpot(TM) Client VM (build 25.201-b09, mixed mode, sharing)

...which I think is 32-bit and now blobsaver works :-) (but I'm sure something else doesn't work any longer)

airsquared commented 5 years ago

@BartmanEH Java 8 is not a security problem(many commerical systems, Google's servers included, run on Java 8). It's similar to how Python2 is still being supported even though Python3 is out. Java allows you to easily install multiple versions of Java side-by-side(for example I have Java8, Java11, and Java12 all installed at the same time).

airsquared commented 5 years ago

@BartmanEH What are all the versions of Java did you have installed previously?

BartmanEH commented 5 years ago

I uninstalled 5 things but didn't record them all. 64bit JDK 11, an SE thing, JDK 8 201 and 202

airsquared commented 5 years ago

Can you try installing only the java versions you actually need, and see if blobsaver still works?

BartmanEH commented 5 years ago

Argh, I had to install JDK 11 for Net Beans and now blobsaver no longer works despite java-version reporting: java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09) Java HotSpot(TM) Client VM (build 25.201-b09, mixed mode)

BartmanEH commented 5 years ago

so.... like.... blobsaver ain't working again

airsquared commented 5 years ago

Can you try this version of blobsaver? Make sure to completely uninstall the previous version of blobsaver before trying this one.

AdrianGri commented 5 years ago

I am having this issue and just found this post now. Has anyone found a solution to this?

airsquared commented 5 years ago

@Leafs5 Can you try this version of blobsaver? Make sure to completely uninstall the previous version of blobsaver before trying this one.

AdrianGri commented 5 years ago

@airsquared I am getting a different error when I try to open that file. Here's the error message.

Edit: Nevermind I am no longer getting that error, my antivirus was messing it up Edit 2: I am still getting the JavaFX error message with that version @airsquared

SwiftWinds commented 5 years ago

ehh, try this one? https://www18.zippyshare.com/v/I8zhmlca/file.html

I just removed the check for JavaFX all together so if it doesn't find it blobsaver will just crash. Tell me if it crashes or not mkay?

If it does, then that means that launch4j starts blobsaver differently than java -jar, and @airsquared and I will have to workarounds.

BartmanEH commented 5 years ago

I uninstalled the previous version and installed this version but nothing happens when I run it. Crashing maybe?

SwiftWinds commented 5 years ago

Yep. *sigh*

To fix this, maybe we should try to temporarily switch to install4j until we can get GraalVM to work, @airsquared?

airsquared commented 5 years ago

@BartmanEH and @Leafs5 How about this version? Make sure to completely uninstall the previous version of blobsaver before trying this one.

BartmanEH commented 5 years ago

Works!

SwiftWinds commented 5 years ago

Eyy!

AdrianGri commented 5 years ago

Works for me too! @airsquared

airsquared commented 5 years ago

This issue has been fixed in blobsaver v2.3.1.