This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 55248 - Build it on Mac ... and it won't run
Summary: Build it on Mac ... and it won't run
Status: CLOSED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: Macintosh Mac OS X
: P1 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-19 02:50 UTC by ringsoft13
Modified: 2008-12-22 23:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ringsoft13 2005-02-19 02:50:10 UTC
Our company has been developing applications for
Mac for many years. 

We recently found a troubling problem and thought
Apple / Sun may be interested in knowing about it. 

We have Java application that has a native
component tied to OS X.
http://serialio.com/products/SerialMagic/index.htm

In the past we built this app (except for the
native component) on a Windows PC and packaged it
on OS X using JAR Bundler. 

It was a bit of extra trouble, but everthing
worked reliably. In an effort to streamline
development we installed netBeans IDE 4.0 for OS X. 

After considerable effort we found that the JAR
file produced by netBeans IDE 4.0 for OS X, will
not run on OS X. 

We can move the identical Java sources to a PC and
compile the JAR there, move that JAR back to the
Mac, and use the JAR Bundler to create the
application, and it works. 

In fact the current work around to this critical
bug, is a Visual Slick Edit (VSE) project on a
WinXP Pro machine, with all the source files
mapped to the OS X machine. We then do GUI editing
on netBeans with OS X (after many crashes since
netBeans seems quite unstable on OS X) and then
use VSE java builder on the Win XP machine, then
we test on OS X. 

So in short
Build it on Mac ... and it won't run

We will be happy to share the JAR files output
from the two environments if a netBeans guru wants
to fix this serious bug

Dave Boydston
805.964.4868 x115
Comment 1 Jan Chalupa 2005-02-19 16:14:10 UTC
This is strange, but without additional info and/or jar files produced
in the two different environments, it's impossible to tell what's
wrong.  I've never heard of any problems with building jars using
NetBeans on Mac.

Did you try to compare the listings (jar -t) of contents of the jars
built on Windows and on Mac and look for any differences? What do the
Manifest files look like? What do you mean by "JAR file won't run on
OS X"? Does the application crash? Does it fail to start? Are there
any error messages?

I understand you may not want to put the jars into an open bug
tracking system, but if you are willing to send them to me privately
for further investigation, feel free to do so.
Comment 2 Milos Kleint 2005-02-21 07:22:21 UTC
yes, please send me the jars along with the errors you are getting
when running on OSX.
Given that since 4.0 we rely on ant and JDK for building the project,
I can't imagine it is a problem of netbeans. 
I build netbeans itself and other applications on macosx and never
experienced a problem.

Please send me also aditional information about the crashes of
Netbeans. I'm using the macosx on a daily basis as well and I don't
experience any crashes. I know that some garbage collection related
JVM switches can bring the java on mac to the knees however. Please
attach your etc/netbeans.conf file.

Thank you.
Comment 3 Jan Chalupa 2005-02-21 09:00:03 UTC
Milos, I've already received the zip file privately. No need to attach
the same file to IZ.
Comment 4 Milos Kleint 2005-02-21 09:43:42 UTC
are you building your sources on windows and macosx using the same
build script?
does the error occur also when building from the command-line (using
ant targets) without invoking netbeans at all?
Comment 5 Jan Chalupa 2005-02-21 16:40:30 UTC
Dave, thanks for all the information you've provided so far, but I
think we still need to learn more about the exact work flow in both
scenarios.

Let me recap and correct me if I'm wrong:

1. Windows based scenario:

* build app on Windows (using what tools? NetBeans? VSE?)
* copy files (jar + native libs?) to Mac
* package the app using JAR Bundler
* execute the app on Mac

This works without problems, right?

2. Mac based scenario

* build app on Mac using NetBeans (any details on the project setup?)
* execute the app using the jar generated in the previous step (?),
execute from NetBeans or as a standalone app?

* This fails. Correct?

Do you use JAR Bundler in the second scenario, or do you try to do
everything from NetBeans?

Now, you mentioned in the message sent privately that the problem gets
magically fixed when you touch the sources in NetBeans and rebuild. Is
that correct? Are you able to build and execute the app in NetBeans then?

Sorry for asking all these questions, but we're still unclear what
your work flow looks like and where it fails. Thanks.

Comment 6 Milos Kleint 2005-02-25 14:59:04 UTC
were you able to run the application from netbeans after our last
email conversion?
Comment 7 Milos Kleint 2005-03-04 10:34:27 UTC
closing as invalid, as there's no more input from the user.
Please reopen once you provide more information. thanks.
Comment 8 Tomas Danek 2005-07-27 11:41:30 UTC
User does not seem to reply any more:( - closing this (feel free to reopen)