简体   繁体   中英

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

I am trying to run the convertJavaFXToAndroid from the Ensemble8 sample from the dalvik sdk, but unfortunately it throws an error saying:

C:\\dalvik-sdk\\samples\\Ensemble8>convertJavaFXToAndroid.bat

C:\\dalvik-sdk\\samples\\Ensemble8>#!/bin/bash '#!' is not recognized as an internal or external command, operable program or batch file.

C:\\dalvik-sdk\\samples\\Ensemble8># Modify the line below, point the ANDROID_SDK to the android sdk you '#' is not recognized as an internal or external command, operable program or batch file.

C:\\dalvik-sdk\\samples\\Ensemble8># downloaded. '#' is not recognized as an internal or external command, operable program or batch file.

C:\\dalvik-sdk\\samples\\Ensemble8>export ANDROID_SDK=C:/AndroidSDK/sdk 'export' is not recognized as an internal or external command, operable program or batch file.

C:\\dalvik-sdk\\samples\\Ensemble8># '#' is not recognized as an internal or external command, operable program or batch file.

C:\\dalvik-sdk\\samples\\Ensemble8># '#' is not recognized as an internal or external command, operable program or batch file.

C:\\dalvik-sdk\\samples\\Ensemble8>export HERE=${PWD} 'export' is not recognized as an internal or external command, operable program or batch file.

C:\\dalvik-sdk\\samples\\Ensemble8>export DALVIK_SDK=$HERE/../../ 'export' is not recognized as an internal or external command, operable program or batch file.

C:\\dalvik-sdk\\samples\\Ensemble8>export JAVAFX_APP_DIR=$HERE/ensemble 'export' is not recognized as an internal or external command, operable program or batch file.

C:\\dalvik-sdk\\samples\\Ensemble8>export PATH=$ANDROID_SDK/tools:$PATH 'export' is not recognized as an internal or external command, operable program or batch file.

C:\\dalvik-sdk\\samples\\Ensemble8>export WORKDIR=$HERE/android 'export' is not recognized as an internal or external command, operable program or batch file.

C:\\dalvik-sdk\\samples\\Ensemble8>export PACKAGE="org.javafxports.ensemble8" 'export' is not recognized as an internal or external command, operable program or batch file.

C:\\dalvik-sdk\\samples\\Ensemble8>export NAME="Ensemble8Android" 'export' is not recognized as an internal or external command, operable program or batch file.

C:\\dalvik-sdk\\samples\\Ensemble8>export MAINCLASS="ensemble.EnsembleApp" 'export' is not recognized as an internal or external command, operable program or batch file.

C:\\dalvik-sdk\\samples\\Ensemble8>./gradlew --info createProject -PDEBUG -PDIR=$WO RKDIR -PPACKAGE=$PACKAGE -PNAME=$NAME \\ Starting Build Settings evaluated using empty settings script. Projects loaded. Root project using build file 'C:\\dalvik-sdk\\samples\\Ensemble8\\ build.gradle'. Included projects: [root project 'Ensemble8'] Evaluating root project 'Ensemble8' using build file 'C:\\dalvik-sdk\\samples\\Ense mble8\\build.gradle'. Starting file lock listener thread.

FAILURE: Build failed with an exception.

  • Where: Build file 'C:\\dalvik-sdk\\samples\\Ensemble8\\build.gradle' line: 110

  • What went wrong: A problem occurred evaluating root project 'Ensemble8'.

    Error: Can't build Android. Path to Android SDK was not set or is invalid!

Usage: gradle createProject -PANDROID_SDK= -PTARGET= /optional/ -PNAME= -PPACKAGE= -PDIR= -DEBUG -PJFX_MAIN= -PJFX_SDK= -PJFX_APP=

  • Try: Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Total time: 4.859 secs

C:\\dalvik-sdk\\samples\\Ensemble8>

I belive that this is a Path issue. Which software should I add in the path? Im currently using windows xp..

Here's the batch file:

#!/bin/bash
# Modify the line below, point the ANDROID_SDK to the android sdk you 
# downloaded.
export ANDROID_SDK=C:/AndroidSDK/sdk
#
#
export HERE=${PWD}
export DALVIK_SDK=$HERE/../../
export JAVAFX_APP_DIR=$HERE/ensemble
export PATH=$ANDROID_SDK/tools:$PATH
export WORKDIR=$HERE/android
export PACKAGE="org.javafxports.ensemble8"
export NAME="Ensemble8Android"
export MAINCLASS="ensemble.EnsembleApp"
./gradlew --info createProject -PDEBUG -PDIR=$WORKDIR -PPACKAGE=$PACKAGE      -PNAME=$NAME  \
-PANDROID_SDK=$ANDROID_SDK -PJFX_SDK=$DALVIK_SDK -PJFX_APP=$JAVAFX_APP_DIR -PJFX_MAIN=$MAINCLASS

代替使用关键字“ EXPORT”,将其更改为“ SET”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM