Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
This question has been asked various times across this forum but none of these seem to be stemming from the same issue I'm having. So here is my issue...
I have multiple runnable jar files I use for various projects, these are Selenium projects if that makes more sense. I've not had any issues with any of these jars in the past and I have two servers running all the jars. I am able to run the other jars just fine so can't figure out what the issue is. Only thing that is new is I added some new dependencies in this specific project. On two of my machines this jar works fine. I stored the jar on the network and ran it from these two machines - works fine. Run it from the server machine and I get "Invalid of corrupt jarFile xxx.jar". Since this error is so generic I have no idea what to go on...
Run the jar by using "java -jar xxx.jar [params]".
I did notice that the java version on my two machines is 1.8 and the server is 1.7 however the project is built on java 1.7.
Any idea on this?
I would use a comment for you but I don't have the reputation to comment yet so here goes:
The java version is very possibly an issue. I know that I have had some serious issues very much like what you are explaining because I was using 1.8 (while the project was a 1.6 or 1.7). So using 1.7 instead of 1.8 could definitely be an issue.
I know this doesn't answer your question completely but if possible I would try upgrading your server (probably not an option I know).
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
i've got an error in java because i had to reinstall windows.
Error occured during initialization of VM
I tried in CMD to use java and the exact same error occurs!
I reinstalled java jre and removed jdk, still nothing helped. Any idea on how to solve this?
To make sure that it was not working i searched for Bukkit and tried to run the server, the exact same thing happens.
When i tried java -version
According to the comments, the problem was with the PATH.
Go to your environmental variables and check if there is a variable pointing to java.exe in jre directory. Reinstalling jre should solve the problem but to avoid it you can try the following:
The variable pointing to C:\Program Files (x86)\Java\jdk<version> should be called JAVA_HOME and the path variable should be extended with %JAVA_HOME%\bin\ and %JAVA_HOME% itself. Then somehow it might have the advantage to javapath
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a JAR file of a project which im creating for a business. It will be places on their network drive and ran from there by several people throughout the company.
I will be leaving the business soon but would like the ability to remotely update the JAR file with small bugfixes if anything is reported.
Ideally its as simple as placing a new JAR in a folder on server and current JAR will check for update on launch and update if necessary. The same effect with an Android App or Firefox.
Whats the most common way of doing this?
I think what you are describing is a JNLP
It is a file that points to a .jar on a server. When it is updated Java Web Start will download the latest .jar and run it.
As #Dominick mentions, if you have SSH access, you could write a script to send the update via the uf option. See this tutorial.
jar uf jar-file input-file(s)
EDIT
Would version control be an option for you? you could do the bug fixes on your local machine, push them to a repository the company has access to, then have them update the jar files whenever there's a new version.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have downloaded this early preview, I know that it's not stable and everything but I see no one complaining on the most populated forums and my copy of Android Studio doesn't even starts.
I have tried with both JDK 1.6 and 1.7 from Oracle in the PATH but it always fails ( i have JAVA_HOME set too )
and this alert shows up 3 times and the startup just freezes, this is the complete output of about the failed start.
there is also 0 real practical documentation for this SDK, so I don't even any idea what the requirements for this suite are.
Strange fact: there is this file Install-Linux-tar.txt in the root of the android studio folder that suggest to run this ./android studio.sh command from the bin sub-directory but there is no ./android in that subdir and the instructions make no sense at all.
Make sure that java is installed in /user/java and not another directory.
I had same issue and simply moving Java directory fixed this issue
(I found a Google answer in a few seconds..)
For the second remark, that's totally true: forget./android studio.h and simply use ./studio.h
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm in a computer science class and have used this site as a reference from time to time.
I apologize that this isn't inherently a "programming" question, but I'm really in a panic and need some help here.
I use Eclipse Java 32 bit on the computers at school, but the lab is closed today and I have a programming assignment due. How could I get Eclipse on my PC for writing java? I would need windows 32 bit.
I know this isn't what this site is fore, but please help as I am really panicking right now and I know you guys know your stuff on here
Simply download eclipse and unzip into a directory. There is no installer, just a dump. Run eclipse.exe from the base folder and enjoy coding :-)
Its basically very simple as Eclipse is open source IDE.you should go to www.eclipse.org/download/ and get a copy of eclipse from there according to your requirement. I would recommend eclipse classic if you are beginner and programming platform is Java.
Eclipse is available for free at http://www.eclipse.org.
More specifically, all latest Windows versions are available from http://www.eclipse.org/downloads/?osType=win32.
The 32bit version for Java EE Developers can be found at http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR2/eclipse-jee-juno-SR2-win32.zip.
Included in this .zip is an installer package for your PC.
Edit: Read First
Wait. Are you talking about actually installing Java?
Original Post:
As the good guy I am, I countered that negative vote for you, but it might not last.
As a IT/CS student myself, I thought you'd be capable of programming without Eclipse.
You can use Notepad++ just as easily http://notepad-plus-plus.org/
Otherwise Netbeans https://netbeans.org/ is just as good and installs much quicker than Eclipse IMO. But eclipse can be run just from the package itself - but it is a much larger download if you're pressed for time.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I want to download and try an Open-Source OS (Emulation) written in Java. So, I searched and download the, arguably, most famous one I found, which was NACHOS 5.0j.
I have just installed a fresh Ubuntu 10.04 LTS and installed the open-JDK 1.6 through apt-get and then installed eclipse in a similar manner.
After following the readme in NACHOS, I fired terminal, and used gmake (make), and got a bunch of errors and warnings. The one that's bothering me the most is:
as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
(use -source 1.3 or lower to use 'assert' as an identifier)
Debug.assert(isReadyForApply);
Problem is, I tried downloading another open-source OS called JX, and had a similar problem.
Any help in this issue is appreciated! Any other ideas on where to start learning about operating systems and Java is even more appreciated! (But something practical.)
I think you need to add a argument -source 1.3 while compiling or running that OS
I found following information from web, basically, you should use java 1.3.1. it is open source, and you can modify the source code to make it run under JDK1.6 if you like.
The Java version of Nachos only
supports Java 1.3.1, as the security
manager and set of reserved keywords
has changed in later versions.
Instructional machines already have
1.3.1 installed. For remote users, you can download 1.3.1 here:
http://java.sun.com/j2se/1.3/download.html
. If you are curious to see what
version of java you are using you can
run the following command "java
-version". We cannot stress strongly enough that you should not use java
1.4 or java 1.5. You might run into transient errors that will not show up
as warnings or errors during compile
time.