Unable to Run Open Refine

3,255 views
Skip to first unread message

DireldaKitsune

unread,
Dec 9, 2015, 5:10:24 AM12/9/15
to OpenRefine
I am unable to get Open Refine to run on my computer. I downloaded the Java Development Kit just in case I needed more than just the Java Runtime Environment, but that made no difference. I set an Environment Variable for JAVA_HOME, but that didn't help. I tried version 2.5, 2.6 beta1, and 2.6 rc2 only to find all of them giving me the same results.

If I try running openrefine.exe using the command prompt I receive the following message: "Error: Could not find or load main class com.google.refine.Refine" And when I try running refine.bat from the command prompt, I get "The system cannot find the file refine.ini. Error: Could not find or load main class com.google.refine.Refine"

If I put cmd /k at the end of refine.bat and run the file I am able to see what flashes by on the command prompt. And it says, "failed SocketC...@127.0.0.1:3333: java.net.BindException: Address already in use: JVM_Bind"

I am running 64bit Windows 10 with 16GB of RAM and an Intel i7-4771 CPU @ 3.50GHz.

I have attached a screenshot showing the top level folder for versions 2.5 and 2.6 rc2 as well as the command prompt windows.

Any help solving this would be greatly appreciated!

Blessings and peace!
~Direlda
Screenshot (2).png

Kingdon Barrett

unread,
Dec 9, 2015, 9:20:41 AM12/9/15
to openr...@googlegroups.com
If something is already listening on port 3333, maybe you did run OpenRefine successfully, but just didn't get a browser window popping up on successful start... the only reason I can think of why you would get this message starting Refine is because it was already started.

I know I have issues where the browser doesn't launch for me.

Tried visiting http://127.0.0.1:3333 ?




-- 

https://content.metrixmatrix.com/images/logo.png

Kingdon Barrett
IT Manager
785 Elmgrove Rd.
Rochester, NY 14624
585-231-1542 x 203


Philadelphia, PA – Lehighton, PA – Pottsville, PA 
– Rochester, NY – Sacramento, CA


--
You received this message because you are subscribed to the Google Groups "OpenRefine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrefine+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thad Guidry

unread,
Dec 9, 2015, 10:12:08 AM12/9/15
to openrefine
Direlda,

Try to run OpenRefine on a different port from 3333.

Our FAQ describes how to do this, as well as other issues you might run into :

--

DireldaKitsune

unread,
Dec 10, 2015, 3:27:05 PM12/10/15
to OpenRefine
When I try to open http://127.0.0.1:3333 in Firefox it gives me an error message (see screenshot). When I try to open it in Chrome it makes it a download and asks me which program to open it with.

When I try a different port by using the /p command for either openrefine.exe or refine.bat I get the same command prompt errors as before. If I modify refine.ini to give #REFINE_PORT a different value and then run refine.bat the same thing happens as before. And if I modify refine.bat with cmd /k to keep the command prompt window from disappearing I get the same JVM_Bind message.

If I try to open one of the different ports I tried, I get an "unable to connect" page in Firefox and a "this webpage is not available" page in Chrome.

I did get OpenRefine to work on my wife's Windows 7 laptop, which can be a temporary solution until it works on my desktop.
Screenshot (3).png

Thad Guidry

unread,
Dec 10, 2015, 4:16:41 PM12/10/15
to openrefine
Direlda,

You have a .NET app already running on port 3333, so you cannot use that port.

I noticed that you did not uncomment the refine.ini line for the port.

Instead of this...

#REFINE_PORT=3334

it should look like this

REFINE_PORT=3334

you have to remove the hash or # comment mark.

Refine.ini and Refine.bat work together.

You can alternatively use the Windows command line to launch OpenRefine, like so...

C:\Users\Thad\OpenRefine>refine.bat /p 3334 /m 1400m

DireldaKitsune

unread,
Dec 10, 2015, 5:14:59 PM12/10/15
to OpenRefine
The refine.ini line for the port was like that when I opened the file for the first time to make alterations, so I had assumed it needed to stay like that. Removing that hash has enabled me to run the program.

And I have tried to run it via the Windows command line, but that has done no good.

So thank you very much for your help!

ja...@haleapp.co

unread,
Jun 3, 2016, 7:09:05 AM6/3/16
to OpenRefine
hello Thad,

I am having the exact same issue, however, the FAQs are unclear how to move openrefine to another port I have gone to your FAQs and have ran multiple command lines; the FAQ gives abbreviated command lines and for those of us who run things in CMD no more than once a year (;)), its unclear the exact commands needed to solve this. I attach a screenshot of the CMD i am running

Thanks,
James
CMD OPENREFINE.png

Owen Stephens

unread,
Jun 3, 2016, 9:37:46 AM6/3/16
to OpenRefine
Hi James,

To use the command line options on Windows you need to use 'refine.bat' rather than refine.exe.

So you should find 

openrefine.bat /p 3334

works?

I don't have a Windows machine handy to double check this on, but it should work.

Alternatively you can set the port in a file called 'openrefine.l4j.ini (or refine.l4j.ini for older versions of refine).

Add to this file the line:

-Drefine.port=3334

Then run openrefine.exe as usual and that will then work - this will save you having to remember the command line syntax each time

Owen

Owen Stephens

unread,
Jun 3, 2016, 9:38:53 AM6/3/16
to OpenRefine
btw in case others find  this thread, I did document the various options on Mac, Linux and Windows recently at http://stackoverflow.com/questions/36601256/openrefine-changing-the-port-and-host-when-executable-is-run-directly/36623223#36623223

Thad Guidry

unread,
Jun 3, 2016, 10:24:18 AM6/3/16
to openrefine
James,

I've made the FAQ more clear for changing the IP and Port to use on Windows, Linux, Mac.


ja...@haleapp.co

unread,
Jun 6, 2016, 12:35:01 AM6/6/16
to OpenRefine
Cheers all, ye are legends. Went through the steps and no other issues. (I did have to set the JAVA_HOME variable, but the bitly that appeared in the cmd prompt window (https://confluence.atlassian.com/doc/setting-the-java_home-variable-in-windows-8895.html) was easy to follow.)

All set, and thanks again!

James

David Weisz

unread,
Jul 26, 2016, 1:27:49 PM7/26/16
to OpenRefine
Thanks everyone, you saved me from a minor heart attack.
Reply all
Reply to author
Forward
0 new messages