Page 1 of 1

How to compile the dev console

Posted: Tue Oct 28, 2014 1:38 pm
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

Re: How to compile the dev console

Posted: Tue Oct 28, 2014 1:56 pm
by puff
neat! seams there is InelliJ for Mac!

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

Re: How to compile the dev console

Posted: Tue Oct 28, 2014 2:14 pm
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.

Re: How to compile the dev console

Posted: Tue Oct 28, 2014 3:35 pm
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

Re: How to compile the dev console

Posted: Tue Oct 28, 2014 3:37 pm
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

Re: How to compile the dev console

Posted: Tue Oct 28, 2014 6:29 pm
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...

Re: How to compile the dev console

Posted: Fri Nov 05, 2021 3:20 pm
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

Re: How to compile the dev console

Posted: Fri Nov 05, 2021 3:22 pm
by AndreyB