How to set up a libGDX project through a proxy server

I am using the libgdx project creator ( gdx-setup.jar ) to set up a new project. However, I use a proxy connection on my Windows machine to access the Internet, and gdx-setup.jar cannot detect the settings, so I cannot download the necessary jar files and create any project. How and where can I change java proxy settings to achieve this?

PS: I already tried to edit the settings in the Control Panel-> Java-> Network Settings section, but to no avail.

+4
source share
4 answers

From the Gradle manual: 12.3. Network access through a proxy server

, $HOME/.gradle/ gradle.properties. :

systemProp.http.proxyHost=10.0.0.1
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=
systemProp.http.proxyPassword=
systemProp.http.nonProxyHosts=*.some.domain.com|localhost

: HTTPS .

systemProp.https.proxyHost=www.somehost.org
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=userid
systemProp.https.proxyPassword=password
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost

:

java -Dhttp.proxyHost=10.0.0.1 -Dhttp.proxyPort=8080 -Dhttps.proxyHost=10.0.0.1 -Dhttps.proxyPort=8080 -jar gdx-setup.jar

, HTTP-. -.

Eclipse. , - Eclipse .

+3

:

http://badlogicgames.com/forum/viewtopic.php?t=16414&p=70348

Windows 7 gradle.properties C:\Users\USER_NAME.gradle\( , )

: 1. gradle.properties

org.gradle.daemon=true
org.gradle.jvmargs=-Xms128m -Xmx1500m
org.gradle.configureondemand=true
systemProp.http.proxyHost=
systemProp.http.proxyPort=8080
systemProp.https.proxyHost=
systemProp.https.proxyPort=8080
  1. java -Dhttp.proxyHost = **** -Dhttp.proxyPort = ** -Dhttp.proxyUser = ******** -Dhttp.proxyPassword = **** -jar gdx-setup.jar

+1

gdx-setup.jar , JVM - http.proxyHost http.proxyPort.

: JVM .

:

java -Dhttp.proxyHost=10.0.0.1 -Dhttp.proxyPort=8080 -jar gdx-setup.jar
0

, Eclipse -,

→ →

, IDE Gradle ( ), , . , Project Creator , .., , Gradle.

, , , Eclipse, "Import as Gradle project", " ".
Gradle .

0

All Articles