sireum / archived-v2-amandroid

34 stars 16 forks source link

About Amandroid setup -- Java compiler version #45

Closed lannan closed 8 years ago

lannan commented 8 years ago

After I imported the Sireum repositories and Amandroid repository , there are many errors mark, The tutorial ("http://amandroid.sireum.org/docs/tutorial.html") says that "Just make sure you are using correct Java compiler version, and then clean all projects."

I am not sure which Java compiler version is correct?

Thanks.

fgwei commented 8 years ago

Now by default it will use the correct version which is 1.8. Or you can make a scrren shot to me to show your problems.

lannan commented 8 years ago

I tried version 1.8, 1.7. But still did not work...

screenshot from 2015-12-02 00 06 04

screenshot from 2015-12-02 00 07 49

lannan commented 8 years ago

It seems only Sireum Parser is successfully imported. But others are not.

fgwei commented 8 years ago

This is some problem with scala dependence. You can delete all the projects (don't delete from disk, just from eclipse). Than re import in order of prelude, parser, core, jawa, amandroid

lannan commented 8 years ago

Thanks! I import them orderly.

But there is only one project not work. see the screenshot. Others are fine now.

screenshot from 2015-12-02 09 22 31

lannan commented 8 years ago

the jawa project cannot successfully imported. others are fine now.

fgwei commented 8 years ago

Can you show me the error description page?

lannan commented 8 years ago

screenshot from 2015-12-02 11 56 09

I am not sure whether this is the error description you want to check...

lannan commented 8 years ago

The log file is quite long...

Untitled.txt

fgwei commented 8 years ago

No, I means the Problems view :D

lannan commented 8 years ago

Is it this one?

screenshot from 2015-12-02 12 11 14

lannan commented 8 years ago

screenshot from 2015-12-02 12 12 16

fgwei commented 8 years ago

Are you using eclipse provided by sireum?

lannan commented 8 years ago

Yes. I followed the instruction in "http://amandroid.sireum.org/docs/tutorial.html#setup-sireum-cli"

and use "sireum launch sireumdev -j "-Xms256m,-Xmx2048m" --args -clean" to launch eclipse.

lannan commented 8 years ago

The way I set up the sireum-ide is: (1) download Sireum Shortcake; (2) set up the path in .bashrc as the website says; (3) run sireum, what I get is:

screenshot from 2015-12-02 12 25 00

After that, I executed "sireum launch sireumdev -j "-Xms256m,-Xmx2048m" --args -clean".

Then download all the repos.

fgwei commented 8 years ago

for jawa and amandroid, you can pull the new code. It should remove some errors. And if there still some error showing, you can run: sireum list installed, and give a screen shot to me.

lannan commented 8 years ago

I pulled the two repos. But still did not work. screenshot from 2015-12-02 13 04 56

This is the screenshot after running "sireum list installed". Thanks!

screenshot from 2015-12-02 13 06 07

fgwei commented 8 years ago

Now I see the problem. You are using sireum stable version. But that is 7 months old, and the current amandroid uses a lot of new libs in the dev version. (I will update the documentation soon and sorry for the confussion.)

Now you can follow my following steps:

  1. Download http://sireum.org/software.html#vanilla "dev" version for your machine os.
  2. You can replace your current sireum with the newly downloaded one.
  3. run: sireum install "Sireum Amandroid Cli"
  4. run: sireum launch sireumdev -j "-Xms256m,-Xmx2048m"
  5. Set work space points to your current amandroid workspace.
lannan commented 8 years ago

Thanks a lot for your patience. I did the instructions you said. And there is only one project (sireum-jawa-test, under jawa repo) cannot be imported successfully.

screenshot from 2015-12-02 16 38 23

How to solve it? Thanks a lot!

fgwei commented 8 years ago

Just do a pull again on jawa and amandroid :P

lannan commented 8 years ago

Great! solved! Thanks so much for your help and patience!

fgwei commented 8 years ago

Normally I will work on develop branch or some topic branches. So if you want to contribute something please follow https://help.github.com/articles/fork-a-repo/

lannan commented 8 years ago

great. I will follow it.