Author Topic: Compiling and running Airline self  (Read 188 times)

kaurna

  • Newbie
  • *
  • Posts: 4
    • View Profile
Compiling and running Airline self
« on: May 21, 2019, 03:46:29 am »
Hello!

I am trying to compile and run on my localhost to test out several idea on Airline,
I am NOT a programmer neither web developer, so I lack knowledge.

I followed git page instruction, installed JDK 11, MySQL.
And on stage of

6. airline-web has dependency on airline-data, hence navigate to airline-data and run activator publish-local

So when I did activator publish-local, command downloaded bunch of jar files and start to compile something and I get this error.
What am I doing wrong?


DaProf

  • Jr. Member
  • **
  • Posts: 54
  • More than another butt in a seat at Dairy Air!
    • View Profile
Re: Compiling and running Airline self
« Reply #1 on: May 21, 2019, 11:24:12 am »
Scala being Scala .. it wants JDK 8 to run right ...

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

That should fix most of the errors

Also should point out that also due to java connector issues, you need mysql 5.7 to run it on windows, mysql 8 has problems connecting.
« Last Edit: May 21, 2019, 06:04:14 pm by DaProf »
You're not flying by the seat of your pants .. You're flying Dairy Air!
Like Like x 1 View List

kaurna

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Compiling and running Airline self
« Reply #2 on: May 21, 2019, 06:28:24 pm »
Scala being Scala .. it wants JDK 8 to run right ...

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

That should fix most of the errors

Also should point out that also due to java connector issues, you need mysql 5.7 to run it on windows, mysql 8 has problems connecting.

EDIT: I just read your added comment MySQL 5.7, I will try now.  I am following this instruction https://blog.zedfox.us/install-mysql-5-7-windows-10/

EDIT: I now have MySQL 5.7 and still same result.


On installing MySQL 5.7, should I type in port number 9000 instead 3306?




And should I check MySQL server as a Windows Service?




I am on next step of

7. You would need to initialize the DB and data on first run. In airline-data, run activator run, then choose the one that runs MainInit. It will take awhile to init everything. If it runs to the part that is getting images from wiki, you might terminate it (cause it will take hours to get all images) - just that not airport will have images (not a big deal shrug)

When I ran "activator run" then chose "MainInit" then It couldnt connect to SQL server I reckon.
What should I do with MySQL?

« Last Edit: May 21, 2019, 08:08:35 pm by kaurna »

DaProf

  • Jr. Member
  • **
  • Posts: 54
  • More than another butt in a seat at Dairy Air!
    • View Profile
Re: Compiling and running Airline self
« Reply #3 on: May 21, 2019, 10:45:34 pm »
Port 3306 is correct .. the issue may be setting up the user and the database in mysql.

In order for the game to connect to the database:
1. A user in mysql must be created with the login/pass which I believe defaults to (sa/admin)
2. A database must be created called "airline" (default collation utf8_general_ci works)
3. The user must be granted access to the created database

After all that fun, the game should be able to connect. Isn't development fun!

BTW I use a tool called heidisql to administer and perform these tasks. If you need detailed instructions lemme know and I'll write some up.
You're not flying by the seat of your pants .. You're flying Dairy Air!

kaurna

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Compiling and running Airline self
« Reply #4 on: May 22, 2019, 02:18:01 am »


Thanks,

I got through MainInit now working but getting some other error while on MainInit.




DaProf

  • Jr. Member
  • **
  • Posts: 54
  • More than another butt in a seat at Dairy Air!
    • View Profile
Re: Compiling and running Airline self
« Reply #5 on: May 22, 2019, 07:14:33 am »
Thats an odd one, but it got to the part where it was creating AI airlines, you can go ahead and run the main simulator now and the front end server and be fine.
You're not flying by the seat of your pants .. You're flying Dairy Air!

kaurna

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Compiling and running Airline self
« Reply #6 on: May 23, 2019, 04:11:29 am »
Thats an odd one, but it got to the part where it was creating AI airlines, you can go ahead and run the main simulator now and the front end server and be fine.

Hey, 

I’m still unable to run server myself.

Could you please explain step by step process how to compile and run Airline Club self on localhost?
Gig page instruction is may good for user with server experience but like me it’s not so detail what to do.