http://www.sfu.ca/~tyuen/jelude/
thanks, Megan
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
(& 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
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
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
PS - I still have to pinch myself every so often to be sure it's real
:-)
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
cheers ~megan