error after uploading MIT AI2 project which uses sensor components into basic Ai2LiveComplete

96 views
Skip to first unread message

Taifun

unread,
Jan 13, 2014, 9:58:06 AM1/13/14
to appto...@googlegroups.com
I'm using Windows 7, Firefox Nightly and Java 7u40

AI2LiveComplete starts fine and I'm able to start new projects
however importing projects using sensor components from MIT AI2 results in an error 
The blocks area did not load properly. Changes to the blocks for screen 6192449487634432_Screen1 will not be saved.

example project using orientation sensor http://puravidaapps.com/snippets.php#2compass
example project using accelerometer sensor http://puravidaapps.com/snippets.php#2accelerometer
other projects load fine

Taifun

M. Hossein Amerkashi

unread,
Jan 13, 2014, 10:00:18 AM1/13/14
to appto...@googlegroups.com
Thanks for reporting this..
I'll check into it.

-Hossein.

M. Hossein Amerkashi

unread,
Jan 13, 2014, 10:17:21 AM1/13/14
to appto...@googlegroups.com
I have multiple version of java with default JAVA_HOME set to jdk1.6.0_45
Ran WinStartAIServer.cmd and got console error on UnsupportedClassVersionError
Then updated WinStartAIServer.cmd and udpated like below
Stopped the server and started with the updated jdk path. Worked with no problem and was able to import your compass.


@echo off
@echo "Your Java path: " %JAVA_HOME%
echo "Starting AiLiveComplete App Inventor..."
"C:\Program Files\Java\jdk1.7.0_40\BIN\java" -cp "%~dp0\AppEngine\lib\appengine-tools-api.jar" ^
     com.google.appengine.tools.KickStart ^
        com.google.appengine.tools.development.DevAppServerMain %*  --port=8888 --address=0.0.0.0 AIServer
foo.png

Taifun

unread,
Jan 13, 2014, 11:11:15 AM1/13/14
to appto...@googlegroups.com
I'm a little bit confused now
Are you saying, I have to run Java 7u45 instead of 7u40?
Or are you saying you do not get errors with 7u40?
Taifun

M. Hossein Amerkashi

unread,
Jan 13, 2014, 11:17:34 AM1/13/14
to Taifun, AppToMarket
I was saying that I don't get errors when using java 7u40. 
Sometimes problem could occur if you have multiple java versions.
Can you update your WinStartBuildServer.cmd like below (update path below) and give it a try?
Also, please see if you get any type of errors in the log (DOS window).

WinStartBuildServer.cmd
@echo off
@echo "Your Java path: " %JAVA_HOME%
echo "Starting AiLiveComplete App Inventor..."
"C:\Program Files\Java\jdk1.7.0_40\BIN\java" -cp "%~dp0\AppEngine\lib\appengine-tools-api.jar" ^
     com.google.appengine.tools.KickStart ^
        com.google.appengine.tools.development.DevAppServerMain %*  --port=8888 --address=0.0.0.0 AIServer

--
For Java Bridge (sdkBridger), visit http://code.google.com/p/apptomarket/
---
You received this message because you are subscribed to the Google Groups "AppToMarket" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apptomarket...@googlegroups.com.
Visit this group at http://groups.google.com/group/apptomarket.
For more options, visit https://groups.google.com/groups/opt_out.

Taifun

unread,
Jan 13, 2014, 12:23:59 PM1/13/14
to appto...@googlegroups.com, Taifun
ok, I understand, btw. up do now I only had 7u40 installed...
I have seen now, that the compass project works fine on Chrome, only on Firefox Nightly I get the error... let's forget this, it's a browser issue...
Taifun
Reply all
Reply to author
Forward
0 new messages