Article View: borland.public.jbuilder.java.api
Article #1508Re: jar - Manifest
From: Joi Ellis [TeamB]
Date: Mon, 19 Nov 2001 18:47
Date: Mon, 19 Nov 2001 18:47
60 lines
3099 bytes
3099 bytes
Klaus Kaal <klaus@kaal.de> wrote: > Really, it works fine on my W2k machine. So, it should be the rigtht place > where the file resides. > And I checked the cases of all names. Everything ok. > But my trouble is that the target machine is Linux. And there it does not > work anymore. Java is CASE SENSITIVE. It works on Windows because Windows lies to the JVM about the filenames. When the JVM asks for "MANIFEST.MF", windows finds manifest.mf and provides it. Unix (Solaris and Linux) will look for MANIFEST.MF and not find it. If you want the jar to work everywhere, you must use the correct case. Period. > "Joi Ellis [TeamB]" <joi@aravox.com> schrieb im Newsbeitrag > news:3bf9032b_1@dnews... >> Klaus Kaal <klaus@kaal.de> wrote: >> > When I start my application on the target-machine, I get >> >> > "Failed to load Main-Class manifest attribute from ..." and then my > jar-file >> >> > In JBuilder, I looked into the maifest.MF file and it contains: >> >> Is that the correct case? Java is pretty particular about the location > and >> name of the manifest file, including its case: >> >> META-INF/MANIFEST.MF >> >> Did you build your jar manually and tell the jar command where to find the >> manifest file? Or did you create one and drop it into the jar's input >> directory yourself? >> >> > "Manifest-Version: 1.0 >> > Main-Class: ParserMain.Parser " >> >> > The class exists and works in JBuilder. >> >> > I have no idea about the manifest thing. Can anyone help me? >> >> What level of JBuilder are you using? Does it have the Archive Wizard? >> >> -- >> Joi Ellis (TeamB) http://www.teamb.com/ >> No direct email, please. >> For best results, post on news server newsgroups.borland.com! >> Newsgroup Guidelines: http://www.borland.com/newsgroups/guide.html >> Only posts which violate the rules in guide.html are subject to > cancelation. -- Joi Ellis (TeamB) http://www.teamb.com/ No direct email, please. For best results, post on news server newsgroups.borland.com! Newsgroup Guidelines: http://www.borland.com/newsgroups/guide.html Only posts which violate the rules in guide.html are subject to cancelation.
Technical Details
Message-ID:
<3bf953cd_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!not-for-mailReferences:
<9tanm3$r1p$05$1@news.t-online.com> <3bf9032b_1@dnews> <9tbcb0$lgo$03$1@news.t-online.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,fcecdc6f3db94b2a
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-11-19 11:01:07 PST
Message-ID: <3bf953cd_2@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: jar - Manifest
Newsgroups: borland.public.jbuilder.java.api
References: <9tanm3$r1p$05$1@news.t-online.com> <3bf9032b_1@dnews> <9tbcb0$lgo$03$1@news.t-online.com>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))
NNTP-Posting-Host: 209.46.41.66
Date: 19 Nov 2001 10:47:41 -0800
X-Trace: dnews 1006195661 209.46.41.66 (19 Nov 2001 10:47:41 -0800)
Lines: 60
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!not-for-mail