From reading a post by Kermit on Sep 24, 2011; 1:04pm
"Another example - GCJ can turn Java source code into native binary executables which should allow NetRexx programs to run on machines that don't even have Java (I confess I have not tried this yet.)." 1) Created a shared library from the jar shipped with NetRexx gcj -shared -fjni NetRexxR.jar -o NetRexxR.so 2) /put/the/new/library/somewhere/NetRexxR.so 3) Tell ld where to find it. On Ubuntu : create NetRexxR.conf in /etc/ld.so.conf.d/ in it add where you put it: /put/the/new/library/somewhere/ Update 4) sudo ldconfig 5) Take the compiled java from nrc -keepasjava GuiApp.nrx (Used a example shipped with NetRexx) 6) gcj -fjni GuiApp.java --main=GuiApp NetRexxR.so 7) Run it. ./a.out GNU know this stuff works without the real Java. GNU, I sleep now. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
On Sat, Oct 6, 2012 at 12:29 PM, Jason Martin <[hidden email]> wrote: should allow NetRexx programs to run on machines that don't even have Java (I confess I have not tried this yet.)." Since OpenJDK is now on all Linux distros, there´s little point. But hey, it´s a nice exercise... I guess it makes more sense on Windows and commercial unixes FC _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Jason Martin
It is still not everywhere by a long shot. I have used this in places where there was no official Java, no OpenJDK. BSD's come to mine a few years ago.
On Sat, Oct 6, 2012 at 11:29 AM, Jason Martin <[hidden email]> wrote: From reading a post by Kermit on Sep 24, 2011; 1:04pm _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Jason Martin
Great news Jason!
Not to disparage Tom's good work, but I wonder if this could build a native installer for NetRexx. It is always good to have NetRexx source code for our stuff. -- Kermit On 10/6/2012 5:29 AM, Jason Martin
wrote:
>From reading a post by Kermit on Sep 24, 2011; 1:04pm _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Jason Martin
On Sat, Oct 6, 2012 at 8:01 PM, Jason Martin <[hidden email]> wrote: It is still not everywhere by a long shot. I didn´t say ´everywhere´ I said "all linux distros" and by ´all´ of course I didn´t mean the several hundred niche distros, I meant all the mainstream distros, the "big 4-5" which have most of the market/mindshare: Fedora/RHEL, SUSE, Ubuntu, Debian. http://wiki.debian.org/Java "OpenJDK A GPL2 version of Sun's JDK . Available on most archs. Installed by default where available." https://fedoraproject.org/wiki/Java/FAQ?rd=JavaFAQ#I_didn.27t_get_Java_at_install_time.2C_but_I_want_to_install_it_now._How_do_I_do_that.3F "On Fedora 9+ [last Fedora version is 17] the OpenJDK runtime and development packages are installed by default during any large-media install, such as from the Fedora DVD". http://en.opensuse.org/Features openSUSE 12.2 ships OpenJDK 7 (java-1_7_0-openjdk). https://help.ubuntu.com/community/Java "OpenJDK:The primary goal of the OpenJDK project is to produce an open-source implementation of the Java SE Platform (6 and 7). This is the default version of Java that Ubuntu uses" But you´re correct I shouldn´t have said ´all distros´ actually "all distros that actually matter". ;) Best regards, FC _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Kermit Kiser
On 10/06/2012 08:45 PM, Kermit Kiser wrote:
> Not to disparage Tom's good work, but I wonder if this could build a > native installer for NetRexx. Disparage away! I haven't done a thing except feel guilty about "my" installer for a month or more. The development team is roaring toward the release/finish line, and I've been dawdling about. While the IzPack installation process is reasonably painless to configure and use, it does required at least a JRE on the target system -- at least in the one I produce (an executable JAR). If there's a better way, or a better fit for the user community, I'm all for it. Tom. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
On Sat, Oct 6, 2012 at 11:15 PM, Tom Maynard <[hidden email]> wrote: While the IzPack installation process is reasonably painless to configure and use, it does required at least a JRE on the target system -- at least in the one I produce (an executable JAR). I´d package it via Java Web Start (JNLP). Then place a link on the netrexx.org page "click and install NetRexx" (you need a Java runtime enabled). The .jar for download could be offered as a second option "manual install (needs JRE installed)" For semi-religious reasons, I´m very much against native installers for cross-platform Java apps, negates the whole idea of Java... But that is just me. When/if my opinion is that of a minority, I duck and cover and shut up. ;-) FC _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Kermit Kiser
I would have to spend some time on that. I see some older builds for Mac and Windows but others I am not sure.
On Sat, Oct 6, 2012 at 9:45 PM, Kermit Kiser <[hidden email]> wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Jason Martin
And even I agree to stick with the current route with the installer.
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Fernando Cassia-2
On 10/06/2012 09:22 PM, Fernando Cassia
wrote:
That option may be possible. I confess that I've done no investigation in that direction. The .jar for download could be offered as a second option "manual install (needs JRE installed)" And that's what I generate ... and what IzPack produces. For semi-religious reasons, I´m very much against native installers for cross-platform Java apps, negates the whole idea of Java... Agreed. I'm using IzPack primarily because it was suggested by René, and partly because a brief survey of alternatives at the time was unsatisfying (or not free). Again, if something better exists I'll gladly switch. I don't have any money invested in IzPack, it's just what I've been working with -- when I actually work on it, of course. duck and cover and shut up Which is an excellent practice in general. "Better to remain silent and be thought a fool than to speak out and remove all doubt." [Abraham Lincoln] Tom. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
I like Java Web Start (JNLP) alot but most linux distro's now package their own java and when you go to page like Apache Pivot with no Java
then its takes you to the Oracle site. Installing from there is not always easy or the recommended way the distro wants it installed and you have to go through hoops usings the jars they may have already packaged for you. On Sun, Oct 7, 2012 at 12:09 AM, Tom Maynard <[hidden email]> wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
On 10/06/2012 11:28 PM, Jason Martin
wrote:
I like Java Web Start (JNLP) alot From the IzPack website: So there is a bit of a snag. RexxLA is working on getting a certificate, but it isn't ready yet, and I'm not sure that it covers this case at all. Tom. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Jason Martin
After thinking about it, do the installer but really only focus on Windows,
Mac, and maybe [OS/2 / ecomstation]. Also, keep providing the Zip file. Most Unix, Linux and BSD's are going to want to check the source out of svn and build their own. They want to see it and know what they are getting. They want to know what they can make it do and where it should go. The ultimate solution because of it size and track record is that one day it becomes a part of OpenJDK and makes it to Oracle or whoever as a standard. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Tom Maynard
On Sun, Oct 7, 2012 at 1:09 AM, Tom Maynard <[hidden email]> wrote:
I think JWS is one of Java´s hidden gems. With a Java enabled browser visit this URL for instance (it´ll launch mu-Commander from www.mucommander.com) http://ho.io/mu-Commander Here´s some docs to explore if you want to go the JWS route: http://sourceforge.net/projects/lopica/ Lopica is a collection of scripts, code snippets, extension installers, FAQs, how-tos, and other goodies for Java Web Start/JNLP. Deploying an Eclipse based app with JWS (even if you app is not Eclipse based an interesting read nonetheless) http://www.ibm.com/developerworks/opensource/tutorials/os-eclipse-jws/index.html http://rachel.sourceforge.net/ Since I´ve been a happy JWS user, not developer, happy reading ;) FC -- During times of Universal Deceit, telling the truth becomes a revolutionary act - George Orwell _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Jason Martin
On Sun, Oct 7, 2012 at 1:28 AM, Jason Martin <[hidden email]> wrote:
I´m not sure I´m following. I´ve got Fedora 17 Linux installed, which comes with OpenJDK as the JRE and Icedtea (the FOSS version of the Java browser plug-in) as plug-in which also handles Java Web Start functionality). I´ve never had a problem launching JWS apps from the browser either by following web page JNLP links or by manually typing redirector URLs that I´ve created for such purpose (ie http://ho.io/mu-Commander http://ho.io/JShot etc). Of course, having Java installed and enabled is a prerequisite for JWS. But that I guess can be detected via client side Javascript to show or hide the JWS button/link. Or, failing that, a notice telling users that the JWS based installer needs Java should suffice, specially when the .jar download is available as a secondary option. Just my $0.02 FC -- During times of Universal Deceit, telling the truth becomes a revolutionary act - George Orwell _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Tom Maynard
On Sun, Oct 7, 2012 at 1:36 AM, Tom Maynard <[hidden email]> wrote:
Yes, code signing is a bit of a pain. I once approached the author of Java Image Editor http://www.jhlabs.com/ie/index.html asking why don´t he offer JIE as a Java Webstart App, his answer was that being a Mac OSX based developer he had a fair amount of hair-pulling trying to understand how the app signing was supposed to work, until he gave up. By then I had pointed to him the availability of this tool, but he told me very politely "no thanks" .... "the mental scars still linger" were his words... ;) I hope I can save you from that nightmare Tom... check this out http://www.codeproject.com/KB/java/KeyGuard.aspx?msg=1072354&display=Mobile "In your work with Java and the Web, you may have had to sign a JAR. Most likely, it was a JAR containing an Applet. There are several ways to sign JAR files, especially those that contain Applets. However, for some bizarre reason, most ways involve command-line tools, or scripts. Since I'm currently developing a Web Project which requires me to deploy at least two signed Applets, each with its own tasks, I realized I would be doing a lot of signing and re-signing of my JAR files. Since software projects are usually quite dynamic, I decided to create a GUI that will not only let me sign a JAR file, but also manage the Java Key-Store used for signing the JAR files in my project. " FC -- During times of Universal Deceit, telling the truth becomes a revolutionary act Durante épocas de Engaño Universal, decir la verdad se convierte en un Acto Revolucionario - George Orwell _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
That is a neat keytool utility. I recently had trouble with the
keystore I use to sign my NetRexx Android applications and I
actually considered writing a tool like that. Unfortunately, the
author of the codeproject one will not provide source for some
reason, so we need to write one in NetRexx anyway (If I can't see
the source, I don't really trust it with my keys and passwords.).
-- Kermit On 10/7/2012 1:24 AM, Fernando Cassia
wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
On Sun, Oct 7, 2012 at 3:40 PM, Kermit Kiser <[hidden email]> wrote: Unfortunately, the author of the codeproject one will not provide source for some reason, so we need to write one in NetRexx anyway JAD is an evil tool. You should never use it to decompile something to get inspiration on how things work, and then do a cleam room implementation. Please don´t. FC _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
On 10/7/2012 15:59 Fernando Cassia said:
> On Sun, Oct 7, 2012 at 3:40 PM, Kermit Kiser wrote: > > Unfortunately, the author of the codeproject one will not provide > source for some reason, so we need to write one in NetRexx anyway > > JAD is an evil tool. You should never use it to decompile something to > get inspiration on how things work, and then do a > cleam This ^^^ tends to happen when you type with you tongue so firmly planted in your cheek. ;-) > roomimplementation. Please don´t. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
That one I had to look up Chip. Still not sure I actually get it. Is it about clean vs smear? - Saludos / Kind regards, David Requena NOTE: The opinions expressed here represent the opinions of the authors and do not necessarily represent the opinions of those who hold other opinions. -----Original Message----- From: Chip Davis <[hidden email]> Sender: [hidden email] Date: Sun, 07 Oct 2012 18:41:23 To: IBM Netrexx<[hidden email]> Reply-To: IBM Netrexx <[hidden email]> Subject: Re: [Ibm-netrexx] NetRexx and GCJ On 10/7/2012 15:59 Fernando Cassia said: > On Sun, Oct 7, 2012 at 3:40 PM, Kermit Kiser wrote: > > Unfortunately, the author of the codeproject one will not provide > source for some reason, so we need to write one in NetRexx anyway > > JAD is an evil tool. You should never use it to decompile something to > get inspiration on how things work, and then do a > cleam This ^^^ tends to happen when you type with you tongue so firmly planted in your cheek. ;-) > roomimplementation. Please don´t. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Free forum by Nabble | Edit this page |