function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Aliaksandr SatskouAliaksandr Satskou 

Unable to create project in Salesforce IDE2 (java.lang.NullPointerException)

Hi,

When I am trying to create a Salexforce DX Project, it's throws an error:

Plug-in "com.salesforce.tools.ide.languages.ui" was unable to instantiate class "com.salesforce.tools.ide.ui.wizards.sfdxworkspace.WorkspaceWizard".
java.lang.NullPointerException

New SFDX Project

Error message

Please, help.

 
Best Answer chosen by Aliaksandr Satskou
Alain CabonAlain Cabon
Hello,

Force.com IDE 2 System Requirements
Before you install Force.com IDE 2, make sure that your system meets these requirements.

Supported Operating Systems
  • Windows Microsoft Windows 7 (64-bit) or later To use the embedded browser, Windows 10
  • macOS macOS 10.11 or later
  • Linux Ubuntu 14.0.4 or later To use the embedded browser, major versions of Linux, such as Ubuntu 16.04 or Centos 7

Force.com IDE 2 Setup Prerequisites

Before you install Force.com IDE 2, make sure that you’ve installed the Salesforce CLI and the items on which the CLI and IDE depend.
Salesforce CLI
  • Each Force.com IDE 2 version depends on a matched version of the Salesforce CLI. 
  • Install the Salesforce CLI and its prerequisites before installing Force.com IDE 2.
  • For Salesforce CLI installation instructions, see “System Requirements” and “Install the Salesforce Command Line Interface (CLI)” in the Salesforce DX Setup Guide (Beta).
  • Java 8 Platform, Standard Edition Development Kit
  • Force.com IDE 2 is built on the Eclipse platform. Eclipse requires the Java 8 Platform, Standard Edition Development Kit (JDK).
  • If you don’t already have the JDK installed, install the latest version of the Java 8 JDK from Java SE Development Kit 8 Downloads.
https://developer.salesforce.com/docs/atlas.en-us.sfdx_ide2.meta/sfdx_ide2/sfdx_ide2_get_started_prerequisites.htm

For windows, there is no problem and I have installed the Salesforce CLI (+ java 8).

Regards

All Answers

Alain CabonAlain Cabon
Hello,

Force.com IDE 2 System Requirements
Before you install Force.com IDE 2, make sure that your system meets these requirements.

Supported Operating Systems
  • Windows Microsoft Windows 7 (64-bit) or later To use the embedded browser, Windows 10
  • macOS macOS 10.11 or later
  • Linux Ubuntu 14.0.4 or later To use the embedded browser, major versions of Linux, such as Ubuntu 16.04 or Centos 7

Force.com IDE 2 Setup Prerequisites

Before you install Force.com IDE 2, make sure that you’ve installed the Salesforce CLI and the items on which the CLI and IDE depend.
Salesforce CLI
  • Each Force.com IDE 2 version depends on a matched version of the Salesforce CLI. 
  • Install the Salesforce CLI and its prerequisites before installing Force.com IDE 2.
  • For Salesforce CLI installation instructions, see “System Requirements” and “Install the Salesforce Command Line Interface (CLI)” in the Salesforce DX Setup Guide (Beta).
  • Java 8 Platform, Standard Edition Development Kit
  • Force.com IDE 2 is built on the Eclipse platform. Eclipse requires the Java 8 Platform, Standard Edition Development Kit (JDK).
  • If you don’t already have the JDK installed, install the latest version of the Java 8 JDK from Java SE Development Kit 8 Downloads.
https://developer.salesforce.com/docs/atlas.en-us.sfdx_ide2.meta/sfdx_ide2/sfdx_ide2_get_started_prerequisites.htm

For windows, there is no problem and I have installed the Salesforce CLI (+ java 8).

Regards
This was selected as the best answer
Aliaksandr SatskouAliaksandr Satskou
Thank you, Alain.

The issue was with Salesforce DX CLI. 


Regards, Aliaksandr Satskou