Re: path and classpath
Re: path and classpath
- Subject: Re: path and classpath
- From: Adam Ohren <email@hidden>
- Date: Tue, 1 Oct 2002 23:45:07 -0400
I've noticed that PB doesn't seem to generate a manifest file to
indicate a .jar archive's main class. try declaring the main class in
the jar's manifest, that may help the runtime figure things out. bear
with me on HOW to go about doing that... if i remember correctly it's
something close to
%> jar cmf TEXTFILE myJar.jar
TEXTFILE should include the line:
Main-Class: theMainClassesName
somethin like that
Adam Ohren
email@hidden
On Tuesday, October 1, 2002, at 06:51 PM, Jeff LaMarche wrote:
Thanks to several of you who helped me add some directories to my path
for a terminal session. Now, I've got a little trickier situation.
I need to add to my Java classpath, and I'm not working through the
terminal.
This is slightly off-topic again, but you see, the situation is that I
have a java program called iSQL-Viewer that I use while developing
front-end applications to databases in Cocoa. iSQL-Viewer has always
worked with a double-click on the jar file. Up until a few days ago, I
was using a system that had been upgraded from PB to 10.0 to 10.1 to
10.14 to 10.15 to 10.2 and all Java Swing .jar applications worked
perfectly with no tweaking. Recently, I did a clean install of 10.2,
and lo and behold, Java is no longer quite as friendly.
In this particular case, the error seems to be happening when the app
tries to load a class in the org.xml.sax.* package (which I do not
ever recall installing on my old system, but may have). I dutifully
downloaded the appropriate .jar file and put it in
System/Java/Extensions... and it didn't change anything. I tried
launching from the terminal with the XML .jar file passed as part of
the -cp parameter, and that didn't work either.
I'm stumped. I don't even seem to have a classpath environment
variable set on my system anywhere.
Does anyone have any idea what's going on with my system? This is
driving me absolutely bonkers.
As always... Thanks.
Jeff
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.