November 26, 2024, 05:03:48 AM

ODS: No java found

Started by derguteweka, March 10, 2016, 02:18:10 PM

Previous topic - Next topic

derguteweka

Hi everyone,

Trying to do the first steps on a E407-Board, so i downloaded Olimex-ODS-9.0-revK.exe on my Win7 machine and installed it. Did not see any problems during this.
But when i try to start eclips, i get this message:

A Java Runtime Environment(JRE) or Java ...yadayada...
No Java virtual machine was found after searching the followning locations:
C:\OlimexODS\eclipse\jre\bin\javaw.exe
javaw.exe in your courrent PATH


OK, i didnt have any java on my machine yet, but i thought there's java included in the Olimex-ODS?
Yes, there is a tick in the beginning of the installation at "Java Runtime Environment".
But the "Space required" doesnt change, if i untick it or tick it again. Always 332.9MB.
Also there's no directory c:\OlimexODS\eclipse\jre

In the Installer i can see this line:
Execute C:\OlimexODS\utilities\jre\jre-7u7-windows-i586.exe
no suspect lines before or after.

But also no directory C:\OlimexODS\utilites\jre on my Machine...

Any help would be appreciated.

Cheers,
WK

Update: Hmmm - when i use 7z to extract the contents from the different Versions of the OlimexODS-installer, it looks like the file jre-7u7-windows-i586-p.exe is just not packaged in the 9.0J and 9.0K Versions and the installer script doesnt care about this at all.

In the 8.2 Version there's at least some jre-6u7-windows-i586-p.exe, but this was also not installed automatically, but deleted at the end of installation. So i had to be quick and start it manually, changing the installationpaths, removing Java for Browsers and crapping my pants not get any toolbars or other types of unwanted software, which usually can be expected by installing java and not taking extreme care.
Also Version 8.2 seems to lack support of the E407 Board, propably cause it's even older than the 9.0 Versions.

Am i really the first person who has this kind of problems? Does anybody else use OlimexODS at all?


JohnS

You might be the only one with the particular setup you have.

No-one else may be reading who knows a fix.

At a guess it will involve the way mickeysoft dick around with every new release and break things.

John

LubOlimex

Hey,

The problem is probably the JDK and the Eclipse both need to be either x86 or x64. I remember that I had trouble configuring the software tools with x64 JDK in the past, so I used x86

Try if it works with x86 JDK.

The OpenODS is just an implementation of few tutorials we stumbled upon in the past. It is pretty outdated now (the OpenOCD version is older, the Eclipse is ancient, etc). In a long run it might be a better idea to configure the Eclipse from scratch (and use Olimex OpenODS as a helping hand for some of the configurations). There are numerous guides available online on configuring Eclipse for OpenOCD.

I would highly recommend you to use these QEMU extensions for Eclipse: http://gnuarmeclipse.github.io/qemu/ - there is support for Olimex STM32-E407 out-of-the-box and the information is well structured for a beginner.

Alternatively, you can use these Eclipse extensions (which are frequently updated). You can find it here: http://sourceforge.net/projects/gnuarmeclipse/reviews

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

derguteweka

Moin,

Thanks for the feedback. Maybe it would be not the worst idea just to drop a line at the ODS download page, that there's no java packaged within ODS-9.0, so it's more clear, that java is needed to be installed on the PC as prerequisite.

I personally do not like java or eclipse at all but prefer good ol' make & vim. It was just curiosity to get some working projects for the E407 board, which made me trying to install ODS on my Windows machine.

After manually extracting the Files from the ODS-Installer (on my linux machine) i also recognized, that i just have to execute a "make" in the right directory and upload the file via openocd to get the Blinky Example running on my E407 board ('cause on my linux machine i already have the cross-toolchain & openocd up&running).

Currently i'm still a little bit confused about the lots of different include directories and their creative namingstyles like e.g.: Src, src, source, Source, source, preferably in the same project, which seems to be quite normal in the STM32-Projects world.
Also i'm still confused, which driver layers are really needed, and which driver layers are just the same crap, called different - CMSIS vs. CUBE..., things like that, which just will require me to read more doc ;-)
The usual Beginners problems...

Cheers,
WK

JohnS

There are lots of STM32 sample makefiles etc for Linux on the net.  Easy to change from chip to chip as they're quite similar (see ST doc).

A couple - for this board - to get you started
https://www.guiduc.org/wp/tag/stm32-e407/
http://mynewt.apache.org/os/get_started/project1/

This is for the similar H407 https://github.com/mimaki/stm32-mruby

You might find the dissection etc useful here http://fun-tech.se/stm32/OlimexBlinky/

John