Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'export' is not recognized as an internal or external command

Tags:

maven

I need to set Maven options in machine. I ran following command and I got 'export' is not recognized as an internal or external command

export MAVEN_OPTS=-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n 
like image 925
Damith Ganegoda Avatar asked Oct 14 '14 18:10

Damith Ganegoda


People also ask

How do you fix is not recognized as an internal or external command?

You can resolve this issue in three ways: First, use the full path of the executable file to launch the program. Second, add the program path to Windows environment variables. Finally, move the files to the System32 folder.

Why it is showing it is not recognized as internal or external command?

The “not recognized as internal command” error usually occurs because the computer cannot find the executable file it is trying to start. However, you can provide the full path to your executable and then it should run without any problem. Launch a Command Prompt window on your PC.

What is Export command in Powershell?

Description. The Export-CSV cmdlet creates a CSV file of the objects that you submit. Each object is a row that includes a comma-separated list of the object's property values. You can use the Export-CSV cmdlet to create spreadsheets and share data with programs that accept CSV files as input.


2 Answers

'export' command is valid only for unix shells. In Windows - use 'set' instead of 'export'

like image 99
aniltilanthe Avatar answered Oct 20 '22 01:10

aniltilanthe


I tried set, didn't work for me, in the end:

 $env: 

worked. But you have to put your string in quotes like:

$env:SPOTIFY_CLIENT_ID="XXXX" 
like image 23
artworkjpm Avatar answered Oct 20 '22 00:10

artworkjpm