From a web search with a bad answer....
The problem ...
The root cause for the problem is that a program has stolen the .jar
association. If you have installed the Java Runtime Environment the first
time, the file type called "jar" is assigned to javaw.exe correctly. "jar"
is an abbreviation for "java archive" and javaw.exe is the correct program
to execute a .jar. However, on Windows any program can steal a file type at
any time even if it is already associated with a program. Many zip/unzip
programs prefer to do this, because a jar is stored in the .zip format. If
you doubleclick on a .jar, your pack program opens the file, rather than
javaw runs the program, because your pack program ignores the meta
information which are also stored in a .jar. In the Oracle bug database
there is the low-priority report 4912211http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4912211"add mechanism to restore hijacked .jar and .jnlp file extensions", but it
has been closed as "Closed, Will Not Fix".
The workaround ...
Open a Windows Explorer (file browser).
Navigate to ODK Briefcase...jar
Right-click on it,
Choose "Open with..."
Click on "Browse" button in lower right corner
Navigate to your javaw.exe file within your Java install directory's bin
folder.
Select the javaw.exe file and click OK to exit out of the file picker
(titled: "Open with..."), back to the "Open With" dialog
Make sure the "Always use..." checkbox is checked.
Click "OK"
Now, you should be able to double-click on ODK Briefcase and have it start.
I'm not sure what is happening with the Java 7 Windows installer, but it
sometimes does and sometimes does not set up this file association (and I
don't know why). I've seen it go both ways (and, for me, uninstalling Java
and reinstalling it has generally set everything right).
Mitch
On Wed, Mar 13, 2013 at 4:49 PM, Samantha Elghanayan < samantha.elghanayan@gmail.com> wrote:
OK I just followed the steps in this
http://wiki.answers.com/Q/How_do_you_stop_the_error_'java'_is_not_recognized_as_an_internal_or_external_command_operable_program_or_batch_filepost
and it looks like it helped with the first step in your post. i get this in
the command window:
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode)
But I still can't open Briefcase. Could the "mixed mode" be a problem?
On Wednesday, March 13, 2013, Samantha Elghanayan wrote:
Hi Mitch, I'm not sure what I'm doing wrong, but whenever I open the
command-line window and enter java -version, I get this:
'java' is not recognized as an
operable program or batch file.
I've uninstalled and reinstalled java a couple times in the past week,
I've restarted my computer countless times, but I still get this problem.
I see "Java 7 Update 17" here: Control Panel\Programs\Programs and
Features. I've even downloaded Briefcase again, but it still doesn't open
when I double click it. It looks like it's trying to open (I get a blue
swirl where my mouse should be for the first few seconds after I double
click the Briefcase Icon, but then it just stops and nothing opens.
What could I be doing wrong?
On Friday, March 8, 2013, Mitch Sundt wrote:
Briefcase and FormUploader are never 'installed' -- they are just runnable
'jar' files (Java software ARchives), so you won't see them in the Control
Panel's Add/Remove programs.
If you are having trouble launching them, it is likely there is something
wrong with java on your computer.
Go to the Start menu, and search and open the 'cmd' program.
This opens a command-line window.
Type 'java -version' at the prompt (no quotes).
You should see something like:
C:\Users\Administrator\Downloads>java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
If you don't, then java is either not installed or is installed in a way
that is not directly accessible on your computer. In either case, try
uninstalling Java via the Control Panel / Programs and Features (if you
find it there), then go to
http://www.oracle.com/technetwork/java/javase/downloads/index.html to
download and install the latest Java JRE (you only need the JDK if you are
running a server or are a developer).
After installing, if you close the 'cmd' window then open a new 'cmd'
window, the new window should produce output similar to what is shown above.
You should then be able to double-click Briefcase and have it launch.
This problem may have been caused by your anti-intrusion or anti-virus
security software, as there are known critical weaknesses when browsers run
Java applications. The correct way to prevent that is to go into the
settings page of your browser and disable the launching of Java (there will
be a checkbox for that on one of those settings pages).
If, after you are able to get 'java -version' to display a message, you
still cannot double-click Briefcase and have it launch, then you can run
Briefcase manually from within the cmd window to see what errors are being
reported. To do that, you would type
java -jar Briefcase.jar
Where you replace Briefcase.jar with the full path to your Briefcase jar
file. E.g., "C:\Users\Administrator\Downloads\ODK Briefcase v1.2.3
Production.jar"
This will spew a bunch of text into the 'cmd' window. If you can then
either screen-capture the text or mark-and-copy it, and send it to me, I
can debug further.
Mitch
On Fri, Mar 8, 2013 at 9:19 AM, Sam samantha.elghanayan@gmail.com wrote:
I downloaded ODK Briefcase about a month ago and had been using it
regularly since. Howe
You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/XBsaW5ojjcg/unsubscribe?hl=en
.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com <javascript:_e({}, 'cvml',
'opendatakit%2Bunsubscribe@googlegroups.com');>.
For more options, visit https://groups.google.com/groups/opt_out.