+ Start a Discussion
Tom Coffey 4Tom Coffey 4 

Data Loader won't open... please help (Windows 10)

Working on Windows 10.  

I've installed Zulu 11.  Proof:

User-added image

I've installed Dataloader 45.0.0

I open Data Loader using the shortcut created during installation.

This screen flashes for a second then disappears:

User-added image

And then nothing happens... no Data Loader.

I've tried reinstalling and restarting but that doesn't help.

Any ideas?
Best Answer chosen by Tom Coffey 4
Alain CabonAlain Cabon
Don't use the programs that you show above if that mimics the dataloader v45 (never, viruses? trojans?)

Here is the good way: 

SALESFORCE: Execute Data Loader => To run the Data Loader GUI, run the command

java -jar target/dataloader-xx.0-uber.jar

https://github.com/forcedotcom/dataloader

dataloader_win.zip :

User-added image



User-added image


 

All Answers

Alain CabonAlain Cabon
@Tom Coffey

Try to click directly on: dataloader-45.0.0-uber.jar  ( in  C:\<installation folder>\dataloader\v45.0.0 )

( right click on the blue icon of the new dataloader for the exact path if you have the shortcut on the desktop )

c:\project>java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) Client VM (build 25.171-b11, mixed mode)

That still works with java 1.8 by clicking directly on the uber jar. I had the same error with the zulu.
Alain CabonAlain Cabon
When you click on the blue icon, you launch this dataloader.bat
 
@echo off
setlocal

echo.
echo *************************************************************************
echo **            ___  ____ ___ ____   _    ____ ____ ___  ____ ____       **
echo **            ^|  \ ^|__^|  ^|  ^|__^|   ^|    ^|  ^| ^|__^| ^|  \ ^|___ ^|__/       **
echo **            ^|__/ ^|  ^|  ^|  ^|  ^|   ^|___ ^|__^| ^|  ^| ^|__/ ^|___ ^|  \       **
echo **                                                                     **
echo **  Data Loader v45 is a Salesforce supported Open Source project to   **
echo **  help you import data to and export data from your Salesforce org.  **
echo **  It requires Zulu OpenJDK 11.0.x to run.                            **
echo **                                                                     **
echo **  Github Project Url:                                                **
echo **       https://github.com/forcedotcom/dataloader                     **
echo **  Salesforce Documentation:                                          **
echo **       https://help.salesforce.com/articleView?id=data_loader.htm    **
echo **                                                                     **
echo *************************************************************************
echo.

:CheckOpenJdk11
    REM: Todo, we need to improve this to better detect JAVA 11+, rather than depending on default zulu installed folder.
    echo Data Loader requires Zulu OpenJDK 11. Checking if it is installed...
    for /F "delims=" %%a in ('powershell -Command "foreach($path in (Get-ChildItem Env:Path).value -split ';') { if($path -like '*zulu*') { $jdkDir = $path -split 'bin\\' }}; echo $jdkDir"') do Set "ZULU_JAVA_HOME=%%a"
    if "%ZULU_JAVA_HOME%"=="" (
        echo Zulu OpenJDK is not installed. Download Zulu OpenJDK 11 for Windows here:
        echo    https://www.azul.com/downloads/zulu/zulu-windows/
        PAUSE
        goto Exit
    )

:Run
    "%ZULU_JAVA_HOME%\bin\java"  -jar dataloader-45.0.0-uber.jar salesforce.config.dir=configs

:Exit
    endlocal


"%ZULU_JAVA_HOME%\bin\java" -jar dataloader-45.0.0-uber.jar salesforce.config.dir=configs

"%ZULU_JAVA_HOME%" is not well resolved from the path (env). The exact value "zulu" is searched.

So just create a new  dataloader.bat​​​​​​, with just: ​
 
@echo off
setlocal

echo.
echo *************************************************************************
echo **            ___  ____ ___ ____   _    ____ ____ ___  ____ ____       **
echo **            ^|  \ ^|__^|  ^|  ^|__^|   ^|    ^|  ^| ^|__^| ^|  \ ^|___ ^|__/       **
echo **            ^|__/ ^|  ^|  ^|  ^|  ^|   ^|___ ^|__^| ^|  ^| ^|__/ ^|___ ^|  \       **
echo **                                                                     **
echo **  Data Loader v45 is a Salesforce supported Open Source project to   **
echo **  help you import data to and export data from your Salesforce org.  **
echo **  It requires Zulu OpenJDK 11.0.x to run.                            **
echo **                                                                     **
echo **  Github Project Url:                                                **
echo **       https://github.com/forcedotcom/dataloader                     **
echo **  Salesforce Documentation:                                          **
echo **       https://help.salesforce.com/articleView?id=data_loader.htm    **
echo **                                                                     **
echo *************************************************************************
echo.

:Run
    "< exact path for your java bin >\bin\java" -jar dataloader-45.0.0-uber.jar salesforce.config.dir=configs



<your exact path for the java bin>\bin\java" -jar dataloader-45.0.0-uber.jar salesforce.config.dir=configs

"C:\Program Files\java-11\bin\java" -jar dataloader-45.0.0-uber.jar salesforce.config.dir=configs

 
Tom Coffey 4Tom Coffey 4
Alain, thanks for the reply!

When I go to my installation folder I don't see the file dataloader-45.0.0-uber.jar 

User-added image

I downloaded Data Loader from the link found in Setup > Data Loader yesterday.  It came as a zip file.  I unzipped package and then clicked on install.bat and proceeded with the standard / default install. 

While that didn't get dataloader-45.0.0-uber.jar in the installation folder, I do see it in the .zip and uncompressed folder where the installer.bat resides.  

I tried opening this file as you suggest but that didn't seem to work.  Windows asks me which program I want to use to open .jar files.  I navigated to the Zulu folder and picked that but nothing seems to happen (technically not nothing: a blank CMD window appears for a fraction of a second then disappears and then nothing).  

User-added image


Any other ideas?
Alain CabonAlain Cabon
Don't use the programs that you show above if that mimics the dataloader v45 (never, viruses? trojans?)

Here is the good way: 

SALESFORCE: Execute Data Loader => To run the Data Loader GUI, run the command

java -jar target/dataloader-xx.0-uber.jar

https://github.com/forcedotcom/dataloader

dataloader_win.zip :

User-added image



User-added image


 
This was selected as the best answer
Tom Coffey 4Tom Coffey 4
Alain, thanks again for the reply.  

I hope the files I show in my dataloader\v45.0.0 folder aren't malicious.  They're produced by the .zip file downloaded directly from my Salesforce environment.

User-added image

The contents of my .zip file look exaclty the same as yours.  And I'm able to open dataloader using the "java -jar target/dataloader-xx.0-uber.jar" command you provided - thank you!

Confused as to what installer.bat is supposed to do.  It produces those files you told me to avoid.  And they seem unnecessary - I deleted the folder than installer.bat produces and I can still run DataLoader from the .jar contained in the .zip using the command line.
Robert KaratzasRobert Karatzas
I have the exact same thing (after trying twice), with version 49
Jen Li WongJen Li Wong

I was having the same problem with v49, it resolved after I changed from zulu 8 to zulu 11. The reason I installed 8 was because my Jave version is 8 in my server but still my data loader wont open. I then noticed when I open data loaded, it says "data loader requires Zulu OpenJDK 11", I changed to 11 and it works.