[info] How to compile the dev console

It's all about the code!
Post Reply
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

How to compile the dev console

Post by AndreyB »

Click here for info on how to compile the firmware

The dev console is written in Java. The source code comes with a IntelliJ IDEA project and ANT build script.

1) You can download Community free open-source edition of IntelliJ IDEA from https://www.jetbrains.com/idea/download/

2) Install it :)

3) Download & install Java JDK (Java Developer Kit. The regular JRE - java runtime environment - would not be enough) version 7 or later

4) Start IDEA and point Open Project at your local folder where you've checked out http://sourceforge.net/p/rusefi/code/HEAD/tree/trunk/java_console

5) If you get a yellow 'Project SDK is not defined' warning, click on 'Setup SDK' and point at your JDK installation from step #3
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: How to compile the dev console

Post by puff »

neat! seams there is InelliJ for Mac!

don't know tho why would I need it :D
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: How to compile the dev console

Post by AndreyB »

Image

Here you can see that file names are brown, that means that SVN integration is not set properly. File names should be black for unmodified files under SVN control.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
Tambralinga
donator
donator
Posts: 174
Joined: Wed Jun 18, 2014 8:36 am
Location: Bangkok, Thailand

Re: How to compile the dev console

Post by Tambralinga »

Additional for a beginners guide?
- After installed the IntellJ, We would like to import the project in the subversion like this link http://sourceforge.net/p/rusefi/code/HEAD/tree/trunk/

- Imported the source project... below.
Image

- Ignore Externals update.
Image

then
Image

- Test compiling.
Image

* It is on the Windows 8.1 64bit.
Have a nice project.

For more information please asking for RusEFI.com.
Thanks for RusEFI.com.

Mr.X
;-x
Skype : shiva-p
+66 8 5357 5159
User avatar
Tambralinga
donator
donator
Posts: 174
Joined: Wed Jun 18, 2014 8:36 am
Location: Bangkok, Thailand

Re: How to compile the dev console

Post by Tambralinga »

puff wrote:neat! seams there is InelliJ for Mac!

don't know tho why would I need it :D

How can I run on Mac osx Lion (7.5), Could you please me how it is step ??
Thanks
;-x
Skype : shiva-p
+66 8 5357 5159
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: How to compile the dev console

Post by puff »

okay
I haven't try compiling it on OSX yet (no need so far), but I managed to run the dev console (although it's a bit tricky - I also have 7.5 here)
The tricky part is according to russian, it needs ire 1.7, while my mac says:

Code: Select all

java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
Generally speaking, mac os x tracks versions itself, and for some reason it doesn't want to upgrade to 10.7.
So I went to oracle site, downloaded and intalled the parallel version of java runtime environment (if i am not mistaken), and to launch the dev console I am using the following .sh script:

Code: Select all

#!/bin/bash
cd /path/to/java_console_binary
/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -jar rusefi_console.jar /dev/tty.usbmodem261 
FIY:

Code: Select all

 /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
now, when I launch the dev console I start getting some error messages (just on some tabs), but after a while they disappear, so it's probably okay...
ssmith
Posts: 92
Joined: Sun Oct 17, 2021 10:21 pm

Re: How to compile the dev console

Post by ssmith »

I was having trouble compiling the configuration parser. I got:

Code: Select all

    [javac] /home/scott/src/rusefi/java_console/inifile/src/main/java/com/rusefi/tune/xml/Constant.java:3: error: package javax.xml.bind.annotation does not exist
    [javac] import javax.xml.bind.annotation.XmlAttribute;
    [javac]                                 ^
...
This is with openjkd javac 11.0.11 on Ubuntu 18.04. According to the internets, the class layout changed with 9, and I need to downgrade to 8: https://github.com/AuthorizeNet/sdk-java/issues/175

Once I installed openjdk-8, I was able to compile:

Code: Select all

sudo apt install openjdk-8-jdk-headless
sudo update-alternatives --config javac
sudo update-alternatives --config java
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: How to compile the dev console

Post by AndreyB »

Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Post Reply