Jelude

34 views
Skip to first unread message

megan

unread,
Jun 13, 2005, 5:04:30 PM6/13/05
to cfever...@googlegroups.com
For anyone who is more java enlightened than I am (which means almost
everyone) - is this something we can make use of for our cfeverywhere
apps?

http://www.sfu.ca/~tyuen/jelude/

thanks, Megan

megan

unread,
Jun 13, 2005, 5:15:19 PM6/13/05
to cfever...@googlegroups.com
PS - at the bottom of the page they listed these other similar
products:

jexec: http://www.ucware.com/jexec/ [shareware]

jexepack: http://www.duckware.com/jexepack/ [shareware]

executor: http://mpowers.net/executor/ [shareware]

exej: http://www.sureshotsoftware.com/exej/ [freeware]

javalauncher:
http://www.rolemaker.dk/nonRoleMaker/javalauncher/marner_java_launcher.htm
[freeware]

Javarunner: http://thor.prohosting.com/~dfolly/java/index.html
[freeware]

jsmooth: http://jsmooth.sourceforge.net/ [GPL]

jstart32: http://jstart32.sourceforge.net/ [GPL]

jstub: http://www.roxes.com/produkte/rat.html [GPL]

~megan

Ron Mast

unread,
Jun 24, 2005, 2:39:52 PM6/24/05
to cfever...@googlegroups.com
Hi Megan,
Have you tried implementing Jelude?

if so, did you get it to work.

megan

unread,
Jun 24, 2005, 3:38:33 PM6/24/05
to cfever...@googlegroups.com
no, I've been messing around with the trial version of nativej and
still cannot get it to work because (I am guessing) I don't know the
right file to designate as the main class file which is why even if a
full blown part 3 tutorial is not to be I wish some basics would be
posted so I don't keep banging my head against this last thing :( ~megan

megan

unread,
Jun 24, 2005, 6:29:22 PM6/24/05
to cfever...@googlegroups.com
Well I've downloaded and installed several these on the list and not
been able to get any to work. I know aboolutely zero java, but I did
think that we might need to write a java class that starts the jetty
server and then opens the default browser pointed to the correct url.
and then create the jave exe useing that file - anyone else got any
other ideas since it appears we have been left to work this out for
ourselves??? thanks, megan

megan

unread,
Jun 25, 2005, 1:41:38 AM6/25/05
to cfever...@googlegroups.com
Ok, I am still fooling with nativeJ and have made a little progress,
mainly because I emailed nativej support and they were very gracious to
answer my newbie questions. Here is where I am as of tonight

an exe to start jetty can be generated by nativej using the following
settings

executable panel - set the application type to: console (for now)
application panel - set main class: org.mortbay.start.Main
javaruntime panel - set the classpath to:

start.jar;
ext;
extra;
lib

if you generate and run the exe at this point, the console will open (I
know we don't want to see the console but this is where I was starting
from to see if I could get an exe to start jetty

as for opening a browser pointing to the designated url, nativej
support pointed me to a BrowserLauncher class over at source forge:
http://browserlauncher.sourceforge.net/BrowserLauncher.html

I will keep posting my successes and failures but if anyone wants to
jump in and help me figure this out, it would be great as I am really
not a true "geek" - I just do the best I can ~megan

Phil Cruz

unread,
Jun 25, 2005, 2:11:28 AM6/25/05
to cfever...@googlegroups.com
Here are some quick pointers. 

1.  Download Eclipse (www.eclipse.org) so you can compile some simple java class files (attached).
2.  Create a java project in Eclipse and include the .java files in the project.
3.  Make sure these jars are in the project build path
<cfeverywhere-folder>/server/lib/org.mortbay.jetty.jar  
<cfeverywhere-folder>/derby/lib/derbynet.jar
4.  compile the .java files and you will end up with .class files
5.  Use Eclipse to create a jar file that includes the .class files. (Right-click in the project pane and click export)
6.  Use nativeJ.  Attached is a sample nativeJ project file.  It is a text file so you can see the values. Change it to nativeJ extension (njp?) and nativeJ should recognize it. Or just create a new nativeJ project by looking at the values in the text file.

Hope that helps.

-Phil
cfe_temp.zip

megan

unread,
Jun 25, 2005, 2:54:44 AM6/25/05
to cfever...@googlegroups.com
Thanks! yes it definately helps a lot, at least I will be on the right
track now and not waste time beating my head against the totally wrong
wall :D much appreciated, megan

megan

unread,
Jun 25, 2005, 10:17:45 PM6/25/05
to cfever...@googlegroups.com
Hi again Phil - ok I followed your instructions and it took a day or so
to figure out how to do what was needed in eclipse (figuring out how to
correctly make sure the needed jars were on the build bath, also my
project is different since I am using railo and hsqldb etc but was able
to create the class files and export the jar but when it came time to
create the exe in nativej I keep getting the following "error
java.lang.NoClassDefFoundError: cfeverywhere" - even tho the
cfeverywhere jar is right there etc.

(& to all) At this point I guess I am going to have to take a break -
too many hours working in pretty much absolute ignorance. If anyone is
willing and able to take a look at my project first hand and direct me,
so I can learn to do this I would be thrilled (of course I realize
everyone is incredibly busy with their own stuff so no hard feelings if
noone volunteers) anyway, I am at a point where unless inspiration
strikes from above, looks like I am not going to be able to work this
java exe thing out. :( ~megan

Phil Cruz

unread,
Jun 25, 2005, 11:28:56 PM6/25/05
to cfever...@googlegroups.com
rename the NativeJ project file with a .txt extension and open it in notepad.  copy the contents and post it back to the list and I'll take a look.

-Phil

Phil Cruz

unread,
Jun 25, 2005, 11:32:00 PM6/25/05
to cfever...@googlegroups.com
Attached is a sample NativeJ project file.  Note the classpath looks like

Classpath=.;server/lib/org.mortbay.jetty.jar;server/ext/commons-logging.jar;server/ext/xercesImpl.jar;server/ext/xml-apis.jar;server/lib/javax.servlet.jar;server/lib/org.mortbay.jmx.jar;server/ext/jasper-compiler.jar;server/ext/jasper- runtime.jar;cfeverywhere.jar

-Phil
cfeverywhere.njp

megan

unread,
Jun 25, 2005, 11:49:23 PM6/25/05
to cfever...@googlegroups.com
Thanks, yes, mine is very similar and I do have "cfeverywhere.jar" on
the classpath at the very end just like your example. and the
cfeverywhere.jar is right there, not in any subfolder - I would say the
main difference is that I have more jar files on the class path because
I didn't want to accidently through ignorance leave any necessary jar
files out. below is my current njp - thanks, megan

my njp looks like this:

[NativeJ Project Definition]
ApplicationType=0
AllowAsService=0
AppIcon=WFicon.ico
TargetExe=cfwireframe.exe
EmbeddedJars=
RedirectStdOutType=1
RedirectStdErrType=1
RedirectStdOut=stdout.log
RedirectStdErr=stderr.log
ProcessPriority=3
JvmVersion=2
JvmOptions=-Djetty.home=WireFrame
JvmSearchOrder=01234
Classpath=.;lib/org.mortbay.jetty.jar;webroot/WEB-INF/lib/javax.jar;webroot/WEB-INF/lib/commons-logging.jar;webroot/WEB-INF/lib/commons-logging-api.jar;webroot/WEB-INF/lib/commons-codec-1.3.jar;webroot/WEB-INF/lib/commons-email.jar;webroot/WEB-INF/lib/commons-fileupload-1.0.jar;webroot/WEB-INF/lib/commons-httpclient-2.0.2.jar;webroot/WEB-INF/lib/commons-lang.jar;webroot/WEB-INF/lib/eclipse-compiler-jdt.jar;webroot/WEB-INF/lib/jasper-dummy.jar;webroot/WEB-INF/lib/lucene-1.4-final.jar;webroot/WEB-INF/lib/kjc-2.1B-bin.jar;webroot/WEB-INF/lib/jakarta-oro-2.0.8.jar;webroot/WEB-INF/lib/xerces-2-6-2.jar;webroot/WEB-INF/lib/xalan.jar;webroot/WEB-INF/lib/jug.jar;webroot/WEB-INF/lib/w3c-dom.jar;lib/javax.servlet.jar;webroot/WEB-INF/lib/jtds-1.0.2.jar;lib/org.w3c.jar;webroot/WEB-INF/lib/railo-beta-2-007.jar;webroot/WEB-INF/lib/hsqldb.jar;cfeverywhere.jar
DeleteJars=0
AllPathsRelative=0
StayInCurrentDir=1
ConsoleAppClass=cfeverywhere
ConsoleAppOptions=server.xml

Phil Cruz

unread,
Jun 26, 2005, 2:22:02 AM6/26/05
to cfever...@googlegroups.com
I wonder if your cfeverywhere.jar got bundled correctly.  Rename it to cfeverywhere.zip and expand it.  Do you see the three class files?
Do you see a META-INF directory that contains a manifest.mf file which contains:

Manifest-Version: 1.0
Main-Class: cfeverywhere

-Phil

On 6/25/05, megan <meg.ga...@gmail.com> wrote:

Thanks, yes, mine is very similar and I do have "cfeverywhere.jar" on
the classpath at the very end just like your example. and the
cfeverywhere.jar is right there, not in any subfolder - I would say the
main difference is that I have more jar files on the class path because
I didn't want to accidently through ignorance leave any necessary jar
files out. below is my current njp - thanks, megan

my njp looks like this:

[NativeJ Project Definition]
ApplicationType=0
AllowAsService=0
AppIcon=WFicon.ico
TargetExe=cfwireframe.exe
EmbeddedJars=
RedirectStdOutType=1
RedirectStdErrType=1
RedirectStdOut=stdout.log
RedirectStdErr=stderr.log
ProcessPriority=3
JvmVersion=2
JvmOptions=-Djetty.home=WireFrame
JvmSearchOrder=01234
Classpath=.;lib/org.mortbay.jetty.jar;webroot/WEB-INF/lib/javax.jar;webroot/WEB-INF/lib/commons- logging.jar;webroot/WEB-INF/lib/commons-logging-api.jar;webroot/WEB-INF/lib/commons-codec-1.3.jar;webroot/WEB-INF/lib/commons-email.jar;webroot/WEB-INF/lib/commons-fileupload-1.0.jar;webroot/WEB-INF/lib/commons-httpclient-2.0.2.jar ;webroot/WEB-INF/lib/commons-lang.jar;webroot/WEB-INF/lib/eclipse-compiler-jdt.jar;webroot/WEB-INF/lib/jasper-dummy.jar;webroot/WEB-INF/lib/lucene-1.4-final.jar;webroot/WEB-INF/lib/kjc-2.1B-bin.jar;webroot/WEB-INF/lib/jakarta- oro-2.0.8.jar;webroot/WEB-INF/lib/xerces-2-6-2.jar;webroot/WEB-INF/lib/xalan.jar;webroot/WEB-INF/lib/jug.jar;webroot/WEB-INF/lib/w3c-dom.jar;lib/javax.servlet.jar;webroot/WEB-INF/lib/jtds-1.0.2.jar;lib/org.w3c.jar;webroot/WEB-INF/lib/railo- beta-2-007.jar;webroot/WEB-INF/lib/hsqldb.jar;cfeverywhere.jar

megan

unread,
Jun 26, 2005, 10:40:01 AM6/26/05
to cfever...@googlegroups.com
"wonder if your cfeverywhere.jar got bundled correctly" - that is a
distinct possibility - will do what you said, thanks megan

megan

unread,
Jun 26, 2005, 10:45:41 AM6/26/05
to cfever...@googlegroups.com
bingo! - there's nothing in the mf except "Manifest-Version: 1.0" - so
I am messing up in eclipse somewhere - thanks again, megan

megan

unread,
Jun 26, 2005, 12:09:18 PM6/26/05
to cfever...@googlegroups.com
Well for some reason eclipse is not building class files from the java
files even tho I do Project->Build All, no class files are being
generated - any ideas? thanks, megan

Phil Cruz

unread,
Jun 26, 2005, 3:35:42 PM6/26/05
to cfever...@googlegroups.com
Did you download/install a Java SDK?  I didn't mention that in my quick note the other day but do in the article.

-Phil

megan

unread,
Jun 26, 2005, 3:58:08 PM6/26/05
to cfever...@googlegroups.com
nope - that was the problem - ok now class files are being created but
when I peek at the mf , still just says, "Manifest-Version: 1.0" & is
missing the Main-Class: cfeverywhere line, I will try to monkey a bit
and get back to you later, thanks for your help, megan

megan

unread,
Jun 26, 2005, 5:07:13 PM6/26/05
to cfever...@googlegroups.com
Eureka! It's Alive! It's Alive! er - um I got it to work :D , in
eclipse, I missed the step in the export wizard where you select the
"main" class - that, and having the SDK installed really helps ;P
later, Megan

PS - I still have to pinch myself every so often to be sure it's real
:-)

Ron Mast

unread,
Jun 27, 2005, 10:32:41 AM6/27/05
to cfever...@googlegroups.com
Megan is nativeJ something I can download for free? I want to give
this a try. I'm just like you, I know nothing about java. But i'm
willing to give it try and see if I can come close.

On 6/25/05, Phil Cruz <phil...@gmail.com> wrote:

Ron Mast

unread,
Jun 27, 2005, 10:47:52 AM6/27/05
to cfever...@googlegroups.com
The only hang up i'm having about CFEverywhere is the JRE existance
and installation. The client has to have the right JRE installed
based on what OS and OS version they have. After looking at Jelude it
checks to see if JRE is installed and if not it directs the client to
sun.com to download and install JRE, which means the client has to
have an internet connection. What if the client doesn't have an
internet connection? Now you can't run your application. Please
explain the work around JRE. From my understanding JRE are different
for all OS, and if so one has to check for the correct OS version, and
if the client has to determine what OS they have and make the decision
to which version of JRE they need there are going to be some
frustrations. Any explanation will be appreciated. Thanks!

megan

unread,
Jun 27, 2005, 11:39:02 AM6/27/05
to cfever...@googlegroups.com
Ron - the way I understand it, no matter what, jre 1.4x MUST be
installed for cfeverywhere to work. if jelude checks and then directs
if it is not found, then it is giving the user some need-to-know info
in case they did not read the install requirements or misunderstood
them.

The only other option would be to include the necessary jre in your
own install package and 1. I don't know what the sun distribution
license involves if that is even an option, and 2. it would make your
own app's download size a LOT bigger.

So I guess the trick is to make your software SO irristable that users
will do whatever it takes to be able to install and use it.

I know of course this depends on who your target user is, how computer
savey (geeky) etc.

sorry, not to have a real answer for you, Megan

megan

unread,
Jun 27, 2005, 11:46:58 AM6/27/05
to cfever...@googlegroups.com
PS - forgot to add no, NativeJ is not freeware, but you can use the
free trial to see if you like it enough to pay. I know what it's like
to hunt for free software because funds are tight (I'm there now) but I
also try to keep in mind that just like I hope to someday see a little
profit for all my midnight and beyond hours, I am sure the developer of
NativeJ needs to feed his/her kids, or dogs, or be able to make the
monthly house payment. anyway, the link is
http://www.dobysoft.com/products/nativej/

cheers ~megan

Reply all
Reply to author
Forward
0 new messages