local AppInventor with Java SDK 8 ? (Mac OS X)

42 views
Skip to first unread message

Arne Mailand

unread,
Oct 3, 2016, 8:51:29 AM10/3/16
to MIT App Inventor Forum
Hi,

I am trying to build the AI2 on my local machine according to this instructions:


Right now, I am at the step with this command:

/Users/kirikiri3/Downloads/appengine-java-sdk-1.9.27/bin/dev_appserver.sh --port=8888 --address=0.0.0.0 /Users/kirikiri3/Documents/mai/appengine/build/war/ > serverlog.out &


And I get this output:


[2] 14546

[1]   Exit 127                /Users/kirikiri3/Downloads/appengine-java-sdk-1.9.27/bindev_appserver.sh --port=8888 --address=0.0.0.0 /Users/kirikiri3/Documents/mai/appengine/build/war/ > serverlog.out

kirikiri3s-macbook-pro:~ kirikiri3$ dev_appserver.sh should ideally be run using Java 7 (also known as 1.7).


The java executable at /usr/bin/java reports:

java version "1.8.0_101"

Java(TM) SE Runtime Environment (build 1.8.0_101-b13)

Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)


Running a more recent version of Java can lead to apps that are apparently

correct but do not work when uploaded to App Engine.


You can download JDK 7 from:

  http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Usage: <dev-appserver> [options] <app directory>


Options:

 --help, -h                 Show this help message and exit.

 --sdk_root=DIR             Overrides where the SDK is located.

 --server=SERVER            The server to use to determine the latest

  -s SERVER                   SDK version.

 --address=ADDRESS          The address of the interface on the local machine

  -a ADDRESS                  to bind to (or 0.0.0.0 for all interfaces).

 --port=PORT                The port number to bind to on the local machine.

  -p PORT

 --disable_update_check     Disable the check for newer SDK versions.

 --generated_dir=DIR        Set the directory where generated files are created.

 --default_gcs_bucket=NAME  Set the default Google Cloud Storage bucket name.

 --jvm_flag=FLAG            Pass FLAG as a JVM argument. May be repeated to

                              supply multiple flags.



This sounds to me that it won't work with Java 1.8. Am I right?

Evan Patton

unread,
Oct 3, 2016, 1:02:21 PM10/3/16
to MIT App Inventor Forum
You can run the dev server with Java 8. This is simply a warning from Google that you may get unexpected behavior if you deploy to App Engine because App Engine runs Java 7.

On a separate note, please keep technical questions about App Inventor development on the Open Source developers group.

Thanks,
Evan

Reply all
Reply to author
Forward
0 new messages