🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1280

Re: Swing and Jar

#1280
From: pNichols
Date: Wed, 24 Dec 2003 02:53
32 lines
2219 bytes
Tiffany Tanonaka wrote:

> Hello,
> 
> I seem to have hit a road block. I don't know if others have come across
> this type of issue ... I can run my GUI application successfully while in
> JBuilder 6 but when I convert it into a jar file and attempt to run the
> jar
> file, it does not work.  I've been able to run other jar files as a self
> running app without JBuilder, but the difference has been those
> applications that did not need to access to server (internet resources)
> like this one does. (I don't know if that is thje problem)
> 
> I thought it might be a GUI thing, so I converted application to a
> commandline application and it works in JBuilder, but once again, it does
> not work if I convert to a jar file.
> 
> Any thoughts would be incredibly appreciated!
> 
> Thanks!  = P
> Tiffany

Sounds like you have dependency problems. Try running from a command line 

java -verbose -jar <yourjarfilename>.jar

Look for ClassNotFound errors. If you see these, you need to repackage your
jar file and make sure any and all resources use the option (from mthe
Wizard)

"Always include all classes and resources" for each and every package
showing up in the JList within the Wixard.
Technical Details
Message-ID: <3fe8fdaf@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fe80250@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,bf59f5d01fc03e51
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-12-23 19:09:33 PST
Message-ID: <3fe8fdaf@newsgroups.borland.com>
From: pNichols <paul@computer-logic.net>
Subject: Re: Swing and Jar 
Newsgroups: borland.public.jbuilder.java.swing
Reply-To: paul@computer-logic.net
Date: Tue, 23 Dec 2003 21:53:09 -0500
References: <3fe80250@newsgroups.borland.com>
Lines: 33
Organization: Computer Logic
User-Agent: KNode/0.7.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
NNTP-Posting-Host: 68.71.188.25
X-Trace: newsgroups.borland.com 1072233904 68.71.188.25 (23 Dec 2003 18:45:04 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail