S32DS installer (Ubuntu 18.04.1 LTS) complains it can't find Java VM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32DS installer (Ubuntu 18.04.1 LTS) complains it can't find Java VM

8,333件の閲覧回数
Joao_Roscoe
Contributor III

Have already installed Oracle Java 11, via uprising;

>java --version works perfectly;

However, installer still complains:

--------------

Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable.  You must install a VM prior to
running this program.

--------------

Any hints?

Joao

 

タグ(2)
12 返答(返信)

6,464件の閲覧回数
Joao_Roscoe
Contributor III

I've been running S32DS for S32 platform in a Win10 VM for some time.

Now, I'd like to try to get it running in ubuntu again, using 20.04, this time, so I went through the release notes and installation guide, to get all dependency in place, as follows:

  • lib32z1
  • lib32ncurses6:i386
  • libstdc++6:i386
  • libbz2-1.0:i386
  • libc6:i386
  • libx11-6:i386
  • libxpm4
  • libncursesw6:i386
  • libmpfr6:i386 (created softlink libmpfr.so.4 -> libmpfr.so.6 in /usr/lib/x86_64-linux-gnu/)

Also, i checked that libcanberra--gtk-module, libcanberra-gtk3-module, libwebkit2gtk, tcl, python 2.7, enum34 and unix2dos are in place.

ATTENTION: as far as I could understand, ubuntu has libwebkit2gtk, not ​libwebkitgtk

Specifically regarding java support, I managed to get S32DS running by using Liberica JDK 8 with Fx (Full JDK), available at bell-sw.com/pages/downloads/#/java-8-lts, because ubuntu's openjfx defaults to openjdk-11 - opnjdk-8 is not supported.

 

With all that, S32DS installs without any complaining, and launches succesfully. However, there's a warning about not being able to load font roboto condensed regular:

>Warning: Could not load font from '<HOMEDIR>/NXP/S32DS.3.4/mcu_data/resources/fonts/RobotoCondensed/RobotoCondensed-Regular.ttf

In fact, there are no ttf files in install path. Not even the directory "mcu_data" is there.

Now I'll proceed with real testing, importing a project, building it, and running it with the debugger.

Any hints?

Best regards,

Joao

 

PS. Ubuntu LTS is now 20.04, going to 22.something soon. It would be nice having support for new ubuntu releases...

0 件の賞賛
返信

5,305件の閲覧回数
zhouwg
Contributor II

I also failed to install S32DS.3.4_b201217_linux.x86_64.bin in Ubuntu 20.04:

the installer process seems stalled and sometimes the host OS Ubuntu 20.04 will be suspended( OS not responded with keyboard or mouse)  by the S32DS.3.4 installer process.

s32ds-ubuntu20.04-2.png

 

It seems "S32 Design Studio for S32 Platform 3.4" doesn't support Ubuntu20.04 officially according to <<S32DS_Release_Notes_3.4.0.pdf>>

s32ds-ubuntu20.04.png

 

Hope this issue could be validated and fixed by NXP expert.

 

Thanks.

 

Best regards

0 件の賞賛
返信

6,240件の閲覧回数
MichaelBMiner
Contributor IV

Did you get this running in Ubuntu 20.04? I do not need the IDE to run I only need to use the command line make the project. 

0 件の賞賛
返信

6,225件の閲覧回数
Joao_Roscoe
Contributor III
0 件の賞賛
返信

6,454件の閲覧回数
Joao_Roscoe
Contributor III

Update:

I have succesfully imported my project into S32DS for S32 Platform, and built it.

Now, I'm struggling with debugging. I have created a debug configuration, but S32DS won't find PEMicro Interface - tried both "USB Multilink, USB Multilink FX, Embedded OSBDM/OSJTAG..." and "OpenSDA embedded USB interface" (I'm trying to connect to S32K144EVB-Q100 board). Tried to explicitly install PEmicro USB drivers, but there were no changes

Same configuration works with S32DS in my Windows Virtual Machine.

What could be wrong?

Beste regards,

Joao

0 件の賞賛
返信

6,438件の閲覧回数
Joao_Roscoe
Contributor III
0 件の賞賛
返信

7,293件の閲覧回数
Joao_Roscoe
Contributor III

I'm trying to install S32DS for Arm.

My system is pretty a default one (64bits). Tried installing Oracle Java 11, but as it didn't make any difference, purged it.

Here is a list of java related packages I have installed:

java-common
default-jdk

default-jre
default-jre-headless
openjdk-11-jre
openjdk-11-jre-headless

Also, java and javac binaries seem to be working:

t_62835@deathstar:~/Downloads$ java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)
t_62835@deathstar:~/Downloads$ javac --version
javac 10.0.2

Still, the installer complains I do not have a Java VM in my path:

t_62835@deathstar:~/Downloads$ ./S32DS_ARM_Linux_v2018.R1.bin  
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable.  You must install a VM prior to
running this program.

What am I missing here?

Also, I do not need to make this available to other users, so I'm not using sudo. Is that correct?

Thank you,

Joao

0 件の賞賛
返信

7,293件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

I already install S32DS for ARM on fresh installation of ubuntu 18.04 - only what I need to do is install openjdk runtime enviroment - exactly by the same way as Dimitry suggested: 

sudo apt-get install openjdk-8-jre

My java version:

pastedImage_1.png

nothing else is required for installation. Here is list of 32bit libraries required for runtime: 

pastedImage_2.png

Hope it helps. 

Jiri 

6,027件の閲覧回数
MichaelBMiner
Contributor IV

Does this not work for Ubuntu 20.04 with my current java version:

 

You need to downgrade java to java 8:

https://askubuntu.com/questions/1133216/downgrading-java-11-to-java-8

0 件の賞賛
返信

7,293件の閲覧回数
b48014
NXP Employee
NXP Employee

Design Studio Installer doesn't support Ubuntu 18. Please double check requirement in the Release Note.

Anyway, please try to use java 1.8 

7,293件の閲覧回数
b48014
NXP Employee
NXP Employee

Hello,

Please note that Java Runtime Environment 1.8 64-bit must be installed separately to install Design Studio.

sudo apt-get install openjdk-8-jre

BR,

Dmitry

7,293件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

for me is working openjdk v1.8. Anyway - what is your S32DS version - ARM/Power or Vision? 

On Linux target you also need to isntall some 32 bit libraries. Please see release notes. 

Jiri