RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 21, 2026 10:16 pm

All times are UTC





Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Fred's Random Stupid Questions (and hopefully answers!)
PostPosted: Tue May 01, 2012 8:08 pm 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 7:44 am
Posts: 385
I figure that there will be a few of these... so... here we go! :-)

I noticed a .so library appear in the lib dir after I ran the program. Is the library loading process a "from disk" one? What is the app structure in terms of runtime packaging? One giant jar with everything expanded inside? just the RR jar referencing a lot of on-disk files? Please explain if you have time. If not, I'll suss it out eventually. It's just not a priority right now. Currently working on mvn stuff :-)

Fred.

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: Fred's Random Stupid Questions (and hopefully answers!)
PostPosted: Tue May 01, 2012 8:38 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
RomRaider itself runs from the RomRaider.jar. Supporting libraries are in the lib directory. The .so and .dll (on Windows) are typically supporting native code for the Java libraries with the same name and are usually extracted from within the library Jar at run time if not already present.
Did that make sense?


Top
 Profile  
 
 Post subject: Re: Fred's Random Stupid Questions (and hopefully answers!)
PostPosted: Tue May 01, 2012 8:47 pm 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 7:44 am
Posts: 385
Yes it does. Are you saying that the jars containing native libs extract them themselves? The rest of it is clear :-)

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: Fred's Random Stupid Questions (and hopefully answers!)
PostPosted: Tue May 01, 2012 9:27 pm 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 7:44 am
Posts: 385
Dale, does your current work involve reworking these to not use the jinvoke stuff anymore? It looks like jinvoke.com is gone and the only references to this jar on the internet in 3.0.3 version are from romraider and a 2 year old nissan fork. That makes me nervous about using it. Thoughts?

Code:
src/main/java/com/romraider/io/j2534/op20/OpenPort20.java:22:import com.jinvoke.JInvoke;
src/main/java/com/romraider/io/j2534/op20/OpenPort20.java:23:import com.jinvoke.NativeImport;
src/main/java/com/romraider/io/j2534/op20/SConfig.java:22:import com.jinvoke.NativeStruct;
src/main/java/com/romraider/io/j2534/op20/PassThruMessage.java:22:import com.jinvoke.Embedded;
src/main/java/com/romraider/io/j2534/op20/PassThruMessage.java:23:import com.jinvoke.NativeStruct;
src/main/java/com/romraider/io/j2534/op20/SByteArray.java:22:import com.jinvoke.NativeStruct;
src/main/java/com/romraider/io/j2534/op20/SConfigList.java:22:import com.jinvoke.NativeStruct;

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: Fred's Random Stupid Questions (and hopefully answers!)
PostPosted: Tue May 01, 2012 9:34 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
These I can confirm do self extraction:
com4j
jinvoke
jna (which I will be adding in the near future to replace jinvoke)


Top
 Profile  
 
 Post subject: Re: Fred's Random Stupid Questions (and hopefully answers!)
PostPosted: Tue May 01, 2012 10:18 pm 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 7:44 am
Posts: 385
Awesome news on replacing JInvoke!!! :-) Looking forward to that commit. It's kinda a road block for me, but I've got lots of other things to do in the mean time, so no pressure :-)

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: Fred's Random Stupid Questions (and hopefully answers!)
PostPosted: Tue May 01, 2012 10:20 pm 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 7:44 am
Posts: 385
Do me one favour, please include the exact source of the jar you commit such that I don't have to dig to find out what it is. I've been digging all afternoon. Making steady progress.

New question: Do you know if the FreeTTS text to speech stuff is used, and, I've gotta ask: What for? :-)

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: Fred's Random Stupid Questions (and hopefully answers!)
PostPosted: Wed May 02, 2012 2:09 pm 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 7:44 am
Posts: 385
Another stupid question, if you don't know off the top of your head, I will dig for it:

What (and why) is put into or pulled out from the windows registry when running on windows? Something to do with seeing if other stuff is installed so as to use the libs that they provide?

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: Fred's Random Stupid Questions (and hopefully answers!)
PostPosted: Wed May 02, 2012 2:55 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
Fearless wrote:
Do me one favour, please include the exact source of the jar you commit such that I don't have to dig to find out what it is. I've been digging all afternoon. Making steady progress.

Of course, RR is a complete self contained installation, nothing for the user to go find and add to get it to work and/or break functionality.

Fearless wrote:
New question: Do you know if the FreeTTS text to speech stuff is used, and, I've gotta ask: What for? :-)

This relates to audible warnings that can be defined in the Logger and triggered on a user set threshold (yes Windows-centric).


Top
 Profile  
 
 Post subject: Re: Fred's Random Stupid Questions (and hopefully answers!)
PostPosted: Wed May 02, 2012 3:00 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
Fearless wrote:
Another stupid question, if you don't know off the top of your head, I will dig for it:

What (and why) is put into or pulled out from the windows registry when running on windows? Something to do with seeing if other stuff is installed so as to use the libs that they provide?

It's used to find the J2534 compliant native library installed on a Windows system. It will (when I get it finished) by used to select which cable is connected to the computer just like if you were selecting a serial port to communicate through. Again this is Windows-centric and when/if a native library exists on non-Windows OS that supports J2534 the library will need to be defined manually or discovered through other means (or supplied with the RR installation).


Top
 Profile  
 
 Post subject: Re: Fred's Random Stupid Questions (and hopefully answers!)
PostPosted: Wed May 02, 2012 5:14 pm 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 7:44 am
Posts: 385
dschultz wrote:
Of course, RR is a complete self contained installation, nothing for the user to go find and add to get it to work and/or break functionality.

You've missed the point, but that's OK. Just make sure you put JNA jar 1.2.3 downloaded from http://some.site.com/downloads/path/jna.jar otherwise it increases the work I have to do in determining what exactly the jna jar is.

Quote:
This relates to audible warnings that can be defined in the Logger and triggered on a user set threshold (yes Windows-centric).

Those jars don't appear to be windows-centric, but that's OK. That's all sorted for the time being anyway.

Fred.

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: Fred's Random Stupid Questions (and hopefully answers!)
PostPosted: Wed May 02, 2012 7:45 pm 
Offline
Newbie

Joined: Sat Mar 18, 2006 6:14 pm
Posts: 84
Location: Auckland
dschultz wrote:
Fearless wrote:
Do me one favour, please include the exact source of the jar you commit such that I don't have to dig to find out what it is. I've been digging all afternoon. Making steady progress.

Of course, RR is a complete self contained installation, nothing for the user to go find and add to get it to work and/or break functionality.


If you install under latest Ubuntu in this way it doesn't actually work properly, you have to run it from the .jar to have any hope of having it remember your settings or find the XML files.


Top
 Profile  
 
 Post subject: Re: Fred's Random Stupid Questions (and hopefully answers!)
PostPosted: Wed May 02, 2012 7:58 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
Fused wrote:
dschultz wrote:
Fearless wrote:
Do me one favour, please include the exact source of the jar you commit such that I don't have to dig to find out what it is. I've been digging all afternoon. Making steady progress.

Of course, RR is a complete self contained installation, nothing for the user to go find and add to get it to work and/or break functionality.


If you install under latest Ubuntu in this way it doesn't actually work properly, you have to run it from the .jar to have any hope of having it remember your settings or find the XML files.

Can you post your startup commandline please?

The run.sh was missing a line to make a dir, which could cause this behaviour.
Use this and run from within the extracted ZIP RomRaider directory:
Code:
#!/bin/bash

if [ -z "$JAVA_HOME" ]; then
    echo JAVA_HOME not set.
    exit 1
fi

mkdir -p "$HOME/.RomRaider"

$JAVA_HOME/bin/java -Djava.library.path=lib/linux -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -Dsun.java2d.d3d=false -Xms64M -Xmx512M -XX:-UseParallelGC -XX:CompileThreshold=10000 -jar RomRaider.jar >> "$HOME/.RomRaider/romraider_sout.log" 2>&1
exit 0


Top
 Profile  
 
 Post subject: Re: Fred's Random Stupid Questions (and hopefully answers!)
PostPosted: Wed May 02, 2012 9:24 pm 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 7:44 am
Posts: 385
Are these used in the code at all for validation? If not, they likely should be. If so, where? If there's a reason for not doing it, I'll bang them into the docs dir.

-rw-r--r-- 1 fred fred 793 May 1 16:05 cars_def.dtd
-rw-r--r-- 1 fred fred 3679 May 1 16:05 ecu_defs.dtd
-rw-r--r-- 1 fred fred 2494 May 1 16:05 logger.dtd
-rw-r--r-- 1 fred fred 1142 May 1 16:05 profile.dtd

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: Fred's Random Stupid Questions (and hopefully answers!)
PostPosted: Wed May 02, 2012 9:37 pm 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 7:44 am
Posts: 385
log4j.properties

Is this static, or do people edit it?

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl