Hi all,
I have written a small app for work purposes in which other users find useful and would like to use, I have created a Jar file but this cannot be run on these other machines, obviuosly somethong I did is wrong. Even though this can be asked in a Java forum the program was written in Netrexx therefore I will ask here seeing you are all a helpful bunch. 1- My app is located in dir a which contains 3 sub directores (b, c and d) What command do I need to create the Jar file seeing the app needs the dir structure in tact. 2- Does netrexx need to be installed in the other machines along with Java which is obviously needed or does the Jar created automatically include it? Thanks in advance for yr help _______________________________________________ Ibm-netrexx mailing list [hidden email] |
Paste the source in here and we can take a look. Probably a problem finding the file. 2- No. The byte code should run anywhere you have Java installed at the correct level. Try: " java -version" on both platforms. Kenneth Klein Systems Specialist 502-868-3644 859-750-5179 (Cell) 502-868-2298 (Fax) [hidden email]
Hi all, I have written a small app for work purposes in which other users find useful and would like to use, I have created a Jar file but this cannot be run on these other machines, obviuosly somethong I did is wrong. Even though this can be asked in a Java forum the program was written in Netrexx therefore I will ask here seeing you are all a helpful bunch. 1- My app is located in dir a which contains 3 sub directores (b, c and d) What command do I need to create the Jar file seeing the app needs the dir structure in tact. 2- Does netrexx need to be installed in the other machines along with Java which is obviously needed or does the Jar created automatically include it? Thanks in advance for yr help_______________________________________________ Ibm-netrexx mailing list [hidden email] _______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by Quique Britto
Quique, here is how I have
done it - Suppose that you will create
myapp.jar and use directories myclasses1, myclasses2, and myclasses3 Best is to organize
directories under com\mycompany\myclasses1 or org\mygroup\ourstuff\myclasses1 I have first expanded the
NetrexxR.jar into the \ directory and added the License.txt file to this
directory Then from the \ or c: Jar –cvf myapp.jar com\mycompany\myclasses1 Jar –uvf myapp.jar
com\mycompany\myclasses2 Jar –uvf myapp.jar
com\mycompany\myclasses3 --And to add nrx Jar –uvf netrexx If you want to make it an
executable jar, then the first line looks like this: Jar –cvfm myapp.jar MANIFEST.MF
com\mycompany\myclasses1 And the Manifest.MF file
looks like this: (AutoprobeScan is the class I want executed)
Created-by: 1.5.0 (Sun
Microsystems Inc.) Main-Class: com.mycompany.myclasses1.AutoprobeScan There are other options for
creating the jar like –C to specify the sources that may be easier for
you. Also you may find it handy to use the “package” format
in creating your classes Here is a sample jar –tvf
output C:\com\wily\introscope\epagent>jar
-tvf snmpCollector_I7_v08.jar 0
Wed Mar 04 09:21:48 CST 2009 META-INF/ 71 Wed Mar
04 09:21:48 CST 2009 META-INF/MANIFEST.MF 0
Tue Aug 26 11:54:48 CDT 2008 netrexx/ 0
Tue Dec 16 08:34:58 CST 2008 netrexx/lang/ 403 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/BadArgumentException.class 397 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/BadColumnException.class 400 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/BadNumericException.class 388 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/DivideException.class 418 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/ExponentOverflowException.class 3879 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/license.txt 403 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/NoOtherwiseException.class 406 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/NotCharacterException.class 394 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/NotLogicException.class 33224 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/Rexx.class 2239 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/RexxIO.class 426 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/RexxNode.class 859 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/RexxOperators.class 2281 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/RexxParse.class 1787 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/RexxSet.class 7311 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/RexxTrace.class 6377 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/RexxUtil.class 4930 Tue Dec 16
08:34:58 CST 2008 netrexx/lang/RexxWords.class 2884 Wed Mar 04
09:16:16 CST 2009 com/wily/introscope/epagent/snmpGetWily.class 8672 Wed Mar 04
09:16:16 CST 2009 com/wily/introscope/epagent/justGet.class If you look inside the main
class here (snmpGetWily) it uses the “package” notation in each
class import monfox.toolkit.snmp. import java.text package
com.wily.introscope.epagent class snmpGetWily …. Hope this helps. From: [hidden email]
[mailto:[hidden email]] On Behalf Of Quique Britto Hi all, _______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by kenner
no problem with versions, I use eComStation OS which uses Java 1.41 and at work we have the latest Java using XP.
thks On 26 July 2010 14:34, <[hidden email]> wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] |
Free forum by Nabble | Edit this page |