running tuning software under Linux

General Topics for configuring, operating and tuning the Megajolt. Also see the <a href="http://www.autosportlabs.net/MJLJ_V4_Operation_Guide">Operation Guide</a>

Moderators: JeffC, rdoherty, stieg, brentp

Post Reply
vw16vt
Posts: 0
Joined: Mon Mar 01, 2004 3:20 pm

running tuning software under Linux

Post by vw16vt »

Was wondering if anyone got the tuning software running with linux, so far I got Java installed and works fine, just not sure how to run the .jar under linux, I'm used to run it with XP but my new laptop is equipped with fedora core 3. And I don't want to install anything microsoft on that one laptop.

Thanks

xflow7
Posts: 1
Joined: Sat Jan 29, 2005 12:36 am

I don't actually have the har

Post by xflow7 »

I don't actually have the hardware, but I was curious about this too, so I downloaded the .jar file just to try it the other day.

I can run it using "java -jar tuning_software_filename.jar"

When I do it I get a warning about a com error, but this may be due to not having the correct comm.jar file that is referred to on the site somwhere (can't remember where), or because I don't have hardware connected. In any case, the tuning software itself seems to run.

Dave

Edit: I'm running Slackware Current

vw16vt
Posts: 0
Joined: Mon Mar 01, 2004 3:20 pm

I get a couple errors try to

Post by vw16vt »

I get a couple errors try to run the tuning software... I will try to look at RxTx and see from there, are you able to get into the software at all?

I get error on couple of lines...


xflow7
Posts: 1
Joined: Sat Jan 29, 2005 12:36 am

Before I had installed any of

Post by xflow7 »

Before I had installed any of RxTx or comm.jar, I would get a dialog box saying "An Error Occured: There was a problem reading the configuration." (The More button yielded "javax/comm/UnsupportedCommOperationException"; not surprising as I had no comm.jar).

However, once I clicked OK for this error, the tuning program window would proceed to load as normal. It appears to function fine in terms of data entry, saves/loads of the configuration to a text file, just no comm support (since no comm.jar or RxTx installed).

I then installed the comm.jar from Sun which is talked about on the RxTx site under Download (the CommAPI link). From the Sun package I extracted only comm.jar into the same directory as mljlTune-2.0.3.jar. Doing this got rid of the initial error message, but the tuning program still can't see the com port because I haven't installed the rest of the RxTx package yet. I haven't done this because I don't have the hardware anyway, so I can't do much with it. I just wanted to see if the java tuning prog seemed to work under Linux, which it does, at least for me.

Note that on the RxTx site they have a version 2.1 which supposedly works without the Sun CommAPI. I tried downloading this to see if there was a version of comm.jar in there that would work too. There is a file called RXTXcomm.jar or something, but I couldn't get it to work with MLJL.

So for the time being, I think you're probably best off using RxTx version 2.0 and grabbing the Sun CommAPI (I think the only file you need out of CommAPI is the comm.jar file if I understand the RxTx site properly).

Brent, please comment if you have anything to add.

Dave

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Right, on linux you want to u

Post by brentp »

Right, on linux you want to use the Sun version of the comm api, but hook it in using the RXTX libraries. it should work with the original version of RXTX.

I also had problems with permissions locking the serial port- I ended up 'cheating' a bit and built RXTX with that turned off.

Brent
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

vw16vt
Posts: 0
Joined: Mon Mar 01, 2004 3:20 pm

this is what I get...

Post by vw16vt »

ok, fixed the previous problem, it just wasn't using the Sun Java version... now not sure it the problem is related to. Gtk is correct since I using MegatUnix correctly and it needed gtk to build. ok, I seem to be able to run version 1.0.0. But crashed when try to get info, well didn't have the unit connected anyway... Will try 2.0.2 tomorrow.
------------------------------------------------------------------
[root@localhost Desktop]# java -jar mjljTune-2.0.3.jar
Exception in thread "main" java.lang.NullPointerException
at org.megaJoltLiteJr.presentation.UserOutputConfigPanel.getName(UserOut putConfigPanel.java:152)
at com.sun.java.swing.plaf.gtk.GTKStyleFactory.getMatchingStyles(Unknown Source)
at com.sun.java.swing.plaf.gtk.GTKStyleFactory._getStyle(Unknown Source)
at com.sun.java.swing.plaf.gtk.GTKStyleFactory.getStyle(Unknown Source)
at javax.swing.plaf.synth.SynthLookAndFeel.getStyle(Unknown Source)
at javax.swing.plaf.synth.SynthLookAndFeel.updateStyle(Unknown Source)
at javax.swing.plaf.synth.SynthPanelUI.updateStyle(Unknown Source)
at javax.swing.plaf.synth.SynthPanelUI.installDefaults(Unknown Source)
at javax.swing.plaf.basic.BasicPanelUI.installUI(Unknown Source)
at javax.swing.plaf.synth.SynthPanelUI.installUI(Unknown Source)
at javax.swing.JComponent.setUI(Unknown Source)
at javax.swing.JPanel.setUI(Unknown Source)
at javax.swing.JPanel.updateUI(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at org.megaJoltLiteJr.presentation.UserOutputConfigPanel.<init>(UserOutp utConfigPanel.java:28)
at org.megaJoltLiteJr.presentation.MegaJoltLiteJr.initUserOutputComponen ts(MegaJoltLiteJr.java:124)
at org.megaJoltLiteJr.presentation.MegaJoltLiteJr.<init>(MegaJoltLiteJr. java:58)
at org.megaJoltLiteJr.presentation.MegaJoltLiteJr.main(MegaJoltLiteJr.ja va:631)

Anyone got a idea?

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Are you using java 1.5? I won

Post by brentp »

Are you using java 1.5? I wonder, since it's looking for the GTK libraries for the look and feel.

Just for the heck of it, try installing java 1.4.2 and see if that works better.

Brent
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

vw16vt
Posts: 0
Joined: Mon Mar 01, 2004 3:20 pm

yeah, I was using 1.5.0 JRE,

Post by vw16vt »

yeah, I was using 1.5.0 JRE, I will get 1.4.2 tomorrow, just a bit weird that 1.0.0 loads but not the newer versions. I will see from there, don't really want to run in wine... that would be my very last option.

dido
Posts: 0
Joined: Wed Jul 20, 2005 8:36 am

Still not working properly :(

Post by dido »

OK, I'm a bit confused now... I have both Windows2k and Gentoo Linux on my laptop. I somehow menaged to get the software running on Win (error is "cannot communicate with controller" or something of that kind, but it's normal since I don't have a MJLJ yet). BUT... no matter how hard I try I'm still getting that "Unable to open port /dev/ttyS0; unknown serial port" error in Linux. I've put comm.jar & javax.comm.preferences in both mjlj's directory and /opt/sun-jdk-1.4.2.08/jre/lib/ext/, tried installing RXTX by building it from ebuild (with the emerge script) and using the binaries... Still the same old ugly error. Any ideas?

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Have you been able to run

Post by brentp »

Have you been able to run the RXTX sample COMM applications? This is a good, independent test.
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

dido
Posts: 0
Joined: Wed Jul 20, 2005 8:36 am

That's interesting

Post by dido »

I tried running the SerialDemo app from the commapi package - same sort of error - did not find any ports. Now there's another thing I've found: when I start mjljTune from a shell with the "java -jar mjljTune-2.0.3.jar" command the application runs but I get some output in the shell:
<BR><BR>
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver
<BR><BR>
That's wierd, because in javax.comm.properties i have "Driver=gnu.io.RXTXCommDriver" and it's still trying to use the SolarisDriver. I guess I've done something wrong but still can't figure out what...

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

I'll see if I can get rxtx

Post by brentp »

I'll see if I can get rxtx working on my gentoo box.. it's been awhile since I configured it on Linux.

What different JVM/JDKs did you try using?
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

dido
Posts: 0
Joined: Wed Jul 20, 2005 8:36 am

Just this one

Post by dido »

Only this one, as it is the latest ebuild in the portage tree. It is JDK 1.4.2.08. Anyway, I finally (I hope) decided to use MS as ignition coontrol instead of MJLJ because if something happens to the engine (and it probably will), I'm gonna swap it with someting more recourceful and I might need custom EFI menagement. Thanks for the effort.

Flossie
Posts: 0
Joined: Wed Jan 19, 2005 4:35 am

Sounds like a lnux config prob

Post by Flossie »

Hi sorry to jon this thread late but it sounds to me that the problem you've got is with your linux setup not with the java as you mention that it's a /dev/... error however a know very little about all this so could be complety wrong :-)

Post Reply