mjljt2.0.2 error on WIN2K & J2RE 1.4.2

Information and announcements on updates to the Megajolt firmware and PC software

Moderators: JeffC, rdoherty, stieg, brentp

Post Reply
Luca Lagonigro
Posts: 0
Joined: Sun Feb 29, 2004 9:23 pm

mjljt2.0.2 error on WIN2K & J2RE 1.4.2

Post by Luca Lagonigro »

While I'm fighting to get the commapi that I belive now is only available in/for the J2EE (JDK)version, I've tried the mjljt_2.0.2 on my 2 WIN2K/J2RE machines. The program does not start, get the following error: Fatal exception occurred. Program will exit.

No problem with mjljt_1.0.0, the program starts but report the following errors when hitting GET CONFIG:

javax/comm/UnsupportedCommOperationException

java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException

at org.megaJoltLiteJr.presentation.MegaJoltLiteJr.readConfiguration(MegaJoltLiteJr.java:565)

at org.megaJoltLiteJr.presentation.MegaJoltLiteJr.getConfigButtonActionPerformed(MegaJoltLiteJr.java:442)

at org.megaJoltLiteJr.presentation.MegaJoltLiteJr.access$200(MegaJoltLiteJr.java:20)

at org.megaJoltLiteJr.presentation.MegaJoltLiteJr$3.actionPerformed(MegaJoltLiteJr.java:309)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

I assume this is related to the infamous Commapi.

Brent what are you running?

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

I think I know what your prob

Post by brentp »

I think I know what your problem is- Try putting the comm.jar in the same directory as the mjlj-2.0.2.jar file.

the 2.0.2 jar file will try to read the config right away, so that's probably why you're seeing the error right away.

Actually I just replicated your problem when I removed the comm.jar from that directory on my computer.

Let us know if that works for you-
Brent
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

Luca Lagonigro
Posts: 0
Joined: Sun Feb 29, 2004 9:23 pm

Yes!!! placed the comm.jar fi

Post by Luca Lagonigro »

Yes!!! placed the comm.jar file in the same directory now 2.0.2 works on the office PC!

I've tried also on the Notebook on a fresh J2RE installation with no commapi.

MJLJ_2.0.2 reported: Unknown com port

After commapi files being copied in the right directories the message changed in a glorious: Could not commect to controller

No CLASSPATH thing done.

I found usefoul to create a .bat file that looks like this:

copy c:\commapi\win32com.dll c:\jdk1.4.2_04\bin
copy c:\commapi\comm.jar c:\jdk1.4.2_04\lib
copy c:\commapi\javax.comm.properties c:\jdk1.4.2_04\lib


I've the MJLJ at home I'll try again this evening.

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

great!

Post by brentp »

You should have a red message saying "could not connect to controller" at the bottom.

Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

Luca Lagonigro
Posts: 0
Joined: Sun Feb 29, 2004 9:23 pm

Great!

Post by Luca Lagonigro »

I was editing my original post when you posted yours.


Thanks Brent!!!!


Luca Lagonigro
Posts: 0
Joined: Sun Feb 29, 2004 9:23 pm

Yes!!!!

Post by Luca Lagonigro »

Mr. Runtime Display says: it's running.

Yes!! Yes!! Yes!!!

Anders Wenblad
Posts: 0
Joined: Wed Mar 17, 2004 1:31 am

same prob

Post by Anders Wenblad »

I can't connect .I moved all the files to the same dir.And
now I get in red letters (unable to open port com1;unknown serial
port)I know it's something simple that I'm not seeing.

Luca Lagonigro
Posts: 0
Joined: Sun Feb 29, 2004 9:23 pm

There is still something wron

Post by Luca Lagonigro »

There is still something wrong with the commapi installation. Take your time, find the correct JAVA installation path on your hard drive and copy the 3 files in the correct directory:

COPY win32com.dll TO ..\java\J2RE1.4.2_x\bin

COPY comm.jar TO ..\java\J2RE1.4.2_x\bin AND IN YOUR MegaJoltTuning software folder!!

COPY javax.comm.properties TO ..\java\J2RE1.4.2_x\bin

You're done.

If you want to check where your Java installation folder is, you can run Java Web Start from the program louncher, then FILE > PREFERENCE > JAVA ... in the COMMAND tab you should see the base path.

I think it's better to start a new topic...



Post Reply