-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot get distribution to work on Windows #5
Comments
Hmm! Neither the simulator nor the assembler use the JNI. Therefore it can only be a problem with the Java installation. Have you ever tried to run the program from the command line?
|
Maybe it is this or a similar problem? |
There is no Assembler.jar in the local asm3 directory. When I issue: java.lang.UnsupportedClassVersionError: de/neemann/assembler/gui/Main has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0 |
Yes, the name of the jar file is "asm3.jar". The error message is due to the fact that i had to migrate to JDK 9 due to problems with checkstyle. |
I'm having the same problem as @SirClickALot. Note that I am not a programmer, and so am unfamiliar with Java. I'm running Windows 10 and if I type "java -showversion" on my command prompt, it says "java version "1.8.0_281" Java(TM) SE Runtime Environment (build 1.8.0_281-b09)." I am able to run Digital v0.26, but when I try to run asm3.exe, I get exactly the same error as SirClickALot. I install Java SE Development Kit 15.0.1. (It doesn't remove Java 1.8.0.) Digital works, but asm3 doesn't. If I type "java -showversion" on my command prompt, it says "java version "1.8.0_281"." I uninstall Java 1.8.0. asm3 now works, but Digital now doesn't. Digital shows an error window "This application requires a Java Runtime Environment 1.8.0" and clicking OK leads to the installation of Java 1.8.0. Reinstalling Java 1.8.0 leads me back to the beginning, with Digital working and asm3 not working. Mr. Neemann, could you tell me what exactly is your set-up so that you are able to run Digital and asm3 at the same time? |
There is maybe a problem in the Digital.exe that starts Digital on a Windows machine. There is already a open issue in the Digital issue tracker. I'm on it, but since I don't use Windows myself and haven't even installed it, it takes a little longer to fix. But the Digital.exe is just a convenient wrapper that allows launching when Java is not correctly associated with jar files.
this means that you can start both applikations like
If your system is setup correctly it should also be possible to start the files by simpliy double clicking on the jar files. |
Thank you very much for your prompt response. You are correct that digital.exe in Windows is the problem. I uninstalled Java 1.8.0. So now if I type "java -showversion" on my command prompt, it says "java version "15.0.1" 2020-10-20." Now when I click on asm3.jar, it works, and when I click on digital.jar, it works. Digital does now look a little different (the components now seem to appear in a lower resolution). But the two programs are now working at the same time. (Perhaps in the future, the error with digital.exe in Windows will be fixed.) (I am directly mentioning @SirClickALot so that he knows that a solution to the problem has been found.) Thank you again! |
The whole problem arises only because there are some ZIP programs for Windows out there that link themselves to jar files during installation. (Technically a jar file is a zip file) Then Java programs don't start anymore, but instead the zip program asks where to unpack the jar file. Just to avoid this, there is a file Digital.exe, which still works when a zip program has linked itself to jar files. Which jdk do you have installed? |
I used to have Java 1.8.0 installed, but now I only have Java 15.0.1 installed. I'm using BreeZip 1.3.18 and although it is set to open zip files, it is not set to open jar files. (My jar files have a Java icon, not a BreeZip icon.) I just performed an experiment. When I downloaded and unzipped Digital v0.26.1 (a few days ago, I think), I had only Java 1.8.0 installed. But now that I have only Java 15.0.1, I downloaded and unzipped Digital v0.26.1 again. digital.jar still works when I click on it, but clicking on digital.exe still gives the same error "This application requires a Java Runtime Environment 1.8.0." |
There are several java 15 versions out there, Oracle Java, OpenJDK or AdoptOpenJDK. Could you please post the complete console output of |
java version "15.0.1" 2020-10-20 |
Oops! My fault! What I meant was:
|
|
I was able to solve the issue after reading through the previous comments. I can run Assembler from a different Java SDK (12.0) and Digital still runs under Java 1.8. I put a copy of the asm3.jar file in the 12.0 SDK/bin directory, created a shortcut which runs the command java -jar asm3.jar, and changed the icon to the asm3.exe icon. Seems to be working. |
@rcrist |
I am trying this again now some 18m months after my initial post and I still cannot run asm3 on Windows. I've read through all the various responses above and do indeed make good sense but I think the problem really does stem from some kind of Java version incompatibility issue when using Windows. I can confirm the following that I hope is useful to help solve this issue:
I was hoping to the use the combination of Digital and ASM3 in Windows when teaching the elements of Assembly language to young student so it would be most useful if someone can help solve this issue for us all. I am using Java version .... |
RE the above ^^^^, my full Java info is... ` java version "1.8.0_301" |
Hmm! |
Thanks @hneemann! I think I understand now; when I looking around the web for ONLY the JRE (as opposed to the full JDK) , I am repeatedly directed back to https://www.java.com/en/download/ where I only seem to have access to JRE 8. However, following your recommended link () I now have Java 16 in place, I can straight away run the Assembler. Great stuff! Next hitch is actually how to use it; I'm not sure that you instructions are complete/up-to-date or just plain clear enough for a baboon like me! I've detailed my questions in a another issue -> #7 |
Hello,
This looks great for what I am trying to do but for some reason, I cannot get the distribution to work on my Windows 10 Pro (Intel(R) Core(TM) i5-6300U CPU © 2.40GHz 2.50 GHz 8.00 GB)
I have expanded the latest distribution archive into a local folder as directed.
I am able to run multiple other Java based projects but on trying to run the .exe on this one I get a message...
"Java Virtual Machine Launcher
Error: A JNI error has occurred, please check your installation
and try again"
I wondered if you might have any suggestions.
Thank you
The text was updated successfully, but these errors were encountered: